Skip to main content

rAthena CVE-2025-62170

HIGH
Use After Free (CWE-416)
2025-10-13 security-advisories@github.com
7.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Connect to exposed map-server
  2. Exploit
    Reach RODEX mail removeitem path
  3. Execution
    Trigger use-after-free on inventory_data
  4. Impact
    Crash map-server (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation targets the RODEX in-game mail functionality of the rAthena map-server, specifically the clif_mail_removeitem routine, where sd->mail.item[i].index was used to index sd->inventory_data without bounds (0..MAX_INVENTORY) or null validation, yielding a use-after-free/out-of-bounds dereference. The description states an unauthenticated attacker can trigger it (consistent with CVSS PR:N) but only 'via a specific attacking scenario,' so a particular crafted mail/inventory state is required rather than a single trivial packet. Limiting factors: the target must be a reachable, running map-server (private RO servers are typically internet-exposed to players); impact is confined to a crash/DoS (no C/I impact); and only versions prior to commit af2f3ba are affected, so patched/updated servers are not exploitable.

Impact

This is a CWE-416 use-after-free in the RODEX (mail) handling of rAthena's map-server, scored CVSS 7.5 with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - a pure availability impact (A:H), with no confidentiality or integrity loss. The network, low-complexity, no-privilege, no-interaction vector would normally signal easy mass exploitation, but the impact ceiling is a denial of service only: crashing the map-server, not code execution or data compromise. There is no EPSS score, KEV listing, or POC in the provided data, so exploitation is 'no public exploit identified at time of analysis'; the only available exploit-relevant artifact is the vendor patch commit (af2f3ba), which reveals the root cause (a missing bounds check on sd->mail.item[i].index into inventory_data plus a missing null check) but is a fix, not weaponized attack code. One tension to verify: the description calls the attacker 'unauthenticated' and the CVSS vector agrees (PR:N), yet RODEX is an in-game mail feature typically reached by a connected game client, and the description's own qualifier 'via a specific attacking scenario' implies a non-trivial precondition - so the real-world ease of reaching this code path may be lower than AC:L/PR:N suggests. Net: a genuine availability risk for operators of exposed rAthena map-servers, but a DoS-only bug in niche hobbyist software, not a critical RCE priority; patch on normal maintenance cadence.

Exploit ScenarioDerived

An attacker interacting with an exposed rAthena map-server triggers the RODEX mail removeitem code path with a crafted mail/inventory state, causing clif_mail_removeitem to dereference a freed or out-of-range inventory_data entry. The resulting use-after-free crashes the map-server, disconnecting all players. No public exploit code is identified; only the vendor fix commit is available, and the description notes a 'specific attacking scenario' is required.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 19, 2026

A use-after-free flaw in rAthena's RODEX (in-game mail) handling lets remote attackers crash the map-server, causing a denial of service on affected private Ragnarok Online servers running versions prior to commit af2f3ba. The vulnerability is unauthenticated per the CVSS vector (PR:N) and requires a specific crafted mail/inventory state rather than a single trivial packet, resulting in an availability-only impact (A:H) with no confidentiality or integrity loss. No public exploit code or confirmed active exploitation was identified at time of analysis; a vendor-released patch in commit af2f3ba resolves the issue, and no workaround exists aside from manually applying it.

RemediationAI

Apply the upstream fix by updating rAthena to commit af2f3ba33fc03dc6dd510f8cfe84cd9185af748d (or any later revision containing it) and rebuild/redeploy the map-server; the patch adds bounds and null validation in clif_mail_removeitem and is referenced in advisory GHSA-9mj9-8vgv-r92j. Because the project ships via source commits rather than tagged releases, administrators who cannot immediately rebase should manually backport the diff from https://github.com/rathena/rathena/commit/af2f3ba33fc03dc6dd510f8cfe84cd9185af748d into src/map/clif.cpp and recompile. No official workaround exists; as a compensating control with a clear trade-off, disable or restrict the RODEX mail feature for untrusted players or limit map-server exposure to trusted networks, though this reduces gameplay functionality for legitimate users. Monitor map-server crash logs for repeated terminations tied to mail removal as an indicator of attempted exploitation.

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, cross-platform Ragnarok Online server emulator whose map-server handles gameplay, including the RODEX mail system. The defect is CWE-416 (Use After Free) rooted in the clif_mail_removeitem routine in src/map/clif.cpp, where a mail item's inventory index (sd->mail.item[i].index) was used directly to index the sd->inventory_data array to compute item weight for a removal/return operation, without validating the index against the valid range (0 to MAX_INVENTORY) or checking the resulting item_data pointer for null. An index pointing to a stale or freed inventory entry yields an out-of-bounds/use-after-free dereference, which the map-server cannot recover from and terminates. The fix adds a bounds check that skips out-of-range indices and a null check on the dereferenced item_data pointer before use, confining the calculation to valid, live inventory entries. Only builds prior to commit af2f3ba are affected.

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

Vendor (github) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Network-reachable map-server, no authentication or interaction per the advisory (PR:N/UI:N), availability-only crash impact (A:H, C/I:N); AC:L retained though 'specific scenario' wording could arguably support AC:H.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

DescriptionCVE.org

rAthena is an open-source cross-platform MMORPG server. A use-after-free vulnerability exists in the RODEX functionality of rAthena's map-server in versions prior to commit af2f3ba. An unauthenticated attacker can exploit this vulnerability via a specific attacking scenario to cause a denial of service by crashing the map-server. This issue has been patched in commit af2f3ba. There are no known workarounds aside from manually applying the patch.

Executive ViewAI

Why It Matters

A use-after-free flaw in rAthena's RODEX in-game mail handling lets an unauthenticated remote player crash the map-server, taking game worlds offline for private Ragnarok Online operators running builds prior to commit af2f3ba. The defect is availability-only - no player data, credentials, or currency can be read or altered - but any unauthenticated user can repeatedly deny service, which directly erodes player trust and uptime for a live-service game. No public exploit code or confirmed active exploitation was identified at time of analysis, and a vendor fix is available, so this is a manageable patching commitment rather than an emergency.

Business Impact: Medium
Compensating Controls

Apply vendor patch (commit af2f3ba); no alternative workaround was identified at time of analysis.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
niche open-source Ragnarok Online private-server emulator, hobbyist footprint
Data Quality
3 sources
Confidence: Low

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 HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Medium

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

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

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