Skip to main content

rAthena CVE-2025-58448

CRITICAL
SQL Injection (CWE-89)
2025-09-09 security-advisories@github.com
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach rAthena web PartyBooking endpoint
  2. Delivery
    Send crafted WorldName parameter
  3. Exploit
    Break out of DELETE SQL string
  4. Execution
    Inject arbitrary SQL clauses
  5. Impact
    Read or destroy database records

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the target to be running rAthena's optional web service component (src/web), with the PartyBooking delete endpoint network-reachable; the attacker-controlled WorldName HTTP parameter is passed unescaped into a DELETE query against the party-bookings table. Exploitation is limited to deployments that actually enable and expose this web API - rAthena installations that do not run the web server are not affected. The CVSS PR:N (unauthenticated) assumption should be validated against the deployment, since the same handler also processes an account_id and auth exposure may vary by configuration.

Impact

The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, base 9.8) describes a network-reachable, low-complexity, unauthenticated SQL injection with full CIA impact, which is consistent with the source evidence: the fix in src/web/partybooking_controller.cpp adds Sql_EscapeString() to the previously unescaped world_name value interpolated into a DELETE query. However, the real-world risk signals pull the other way: EPSS is only 0.04% (11th percentile), the CVE is NOT in CISA KEV, and no public exploit/POC is referenced - so despite the 9.8 score this presents as a theoretically high-impact but currently low-probability issue rather than a mass-exploited threat. There is a meaningful scope qualifier on the CVSS PR:N claim: the affected code lives in rAthena's optional web API component and the handler also handles an account_id, so whether the party-booking endpoint is genuinely reachable unauthenticated depends on deployment - worth verifying against the GHSA-x99j-36m7-4vv7 advisory. Net assessment: a real, patch-worthy SQLi in a niche game-server emulator, but not an urgent fleet-wide emergency; prioritize for operators who actually expose the rAthena web service.

Exploit ScenarioDerived

An attacker who can reach the rAthena web PartyBooking API sends an HTTP request to the party-booking delete handler with a crafted WorldName value containing SQL metacharacters, which is concatenated unescaped into a DELETE FROM ... WHERE world_name = '%s' statement. This lets the attacker alter the WHERE logic to read, modify, or destroy arbitrary rows in the backing database. No public exploit code is identified at time of analysis, but the single-parameter injection point is trivial to reproduce from the published patch diff.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 19, 2026

Unauthenticated SQL injection in rAthena's optional web service PartyBooking handler, where the attacker-supplied WorldName HTTP parameter is concatenated unescaped into a DELETE statement against the party-bookings table. Deployments running the src/web component with the partybooking delete endpoint network-reachable are exposed; servers that never enable the web API are unaffected. The upstream commit 0d89ae0 fixes the issue by escaping the value with Sql_EscapeString() before interpolation, and no public exploit code or active exploitation has been identified at time of analysis, with EPSS at roughly 0.04% (11th percentile) reflecting the narrow deployment footprint.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 19:11 CVSS 9.1

rAthena is an open-source cross-platform massively multiplayer online role playing game (MMORPG) server. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This SQL Injection vulnerability could allow attackers to execute arbitrary SQL commands against the database.

RemediationAI

Upgrade to a build containing commit 0d89ae071ff5e46e8dedcf45d060acec84b3abb5 (https://github.com/rathena/rathena/commit/0d89ae071ff5e46e8dedcf45d060acec84b3abb5), which replaces the raw WorldName interpolation in src/web/partybooking_controller.cpp with a Sql_EscapeString()-escaped value; because rAthena is git-distributed, confirm the deployed tree includes that commit or cherry-pick the diff onto the current branch and rebuild. If immediate rebuild is not possible, the most effective compensating control is to stop compiling or disable the web service (src/web) and remove the partybooking delete endpoint from network exposure, for example by firewalling its listening port to trusted operator IPs or placing it behind an authenticating reverse proxy; the trade-off is loss of the party-booking web features and extra proxy/ACL maintenance. Additionally, restrict the SQL account used by rAthena to the minimum privileges on the party-bookings schema so an injected query cannot escalate to unrelated tables, and verify whether the deployment actually enforces authentication before the handler, since the CVSS PR:N rating assumes unauthenticated reachability. Review advisory GHSA-x99j-36m7-4vv7 (https://github.com/rathena/rathena/security/advisories/GHSA-x99j-36m7-4vv7) for vendor guidance.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

rAthena is an open-source C++ reimplementation of the Ragnarok Online MMORPG server, and the PartyBooking feature is exposed through an optional embedded HTTP layer under src/web that renders and mutates party-booking records stored in the server's SQL backend. The vulnerable handler partybooking_delete builds a DELETE FROM %s WHERE world_name = '%s' AND account_id = '%d' query using printf-style formatting, inserting the client-supplied WorldName string directly into the SQL text rather than binding it; this is classic CWE-89 improper neutralization of special elements used in an SQL command. The patch in commit 0d89ae0 introduces a fixed buffer of WORLD_NAME_LENGTH * 2 + 1 and calls Sql_EscapeString(nullptr, world_name_escaped, world_name.c_str()) so the escaped copy, not the raw parameter, is substituted into the query. Because the query executes with whatever privileges the map/login SQL account holds, a successful injection could read or alter arbitrary tables in that schema, matching the high confidentiality, integrity, and availability impact in the CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The CPE cpe:2.3:a:rathena:rathena:*:*:*:*:*:*:*:* denotes all releases before the fixing commit, since rAthena distributes primarily as a git repository rather than versioned binaries.

Know when Rathena gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Network-facing web endpoint with an unescaped parameter in a SQL query gives AV:N/AC:L; SQLi enables arbitrary read, modification, and destruction (DELETE) of DB data, so C:H/I:H/A:H; PR:N per advisory though web-exposure dependent.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Oct 19, 2026 - 17:29 vuln.today
v2 - CVSS changed
CVSS changed
Oct 19, 2026 - 17:23 NVD
9.1 (CRITICAL) 9.8 (CRITICAL)
Patch released
Mar 28, 2026 - 19:11 nvd
Patch available
CVE Published
Sep 09, 2025 - 23:15 nvd
CRITICAL 9.1

DescriptionNVD

rAthena is an open-source cross-platform massively multiplayer online role playing game (MMORPG) server. Versions prior to commit 0d89ae0 have a SQL Injection in the PartyBooking component via WorldName parameter. Commit 0d89ae0 fixes the issue.

Executive ViewAI

Why It Matters

rAthena's optional web service component contains a critical SQL injection flaw in the PartyBooking handler that could let an attacker manipulate or destroy data in the game server's backend database. Only operators who have enabled the web API and exposed the partybooking delete endpoint to untrusted networks are at risk, but those that have face a 9.8-severity issue that warrants prompt triage. Leadership should care because a compromised game database can affect player account integrity, service availability, and any other data co-resident on that system.

Business Impact: High
Compensating Controls

Apply vendor patch. Where patching cannot be completed immediately, disable the optional src/web component entirely or firewall the partybooking delete endpoint to trusted administrative networks.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Prevalence
Low
niche open-source Ragnarok Online MMORPG server emulator, hobby/private-server community
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)NVD

cpe:2.3:a:rathena:rathena:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy