The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-58750

CVE-2025-58750: Rathena Buffer Overflow Vulnerability

CVE-2025-58750 is a buffer overflow flaw in Rathena MMORPG server that allows out-of-bounds memory access via user input. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 18, 2026

CVE-2025-58750 Overview

CVE-2025-58750 is a critical out-of-bounds read/write vulnerability affecting rAthena, an open-source cross-platform massively multiplayer online role playing game (MMORPG) server. The vulnerability exists in the chclif_parse_moveCharSlot function where a missing bounds check allows attackers to read and write out of bounds using user-controlled input. This flaw can be exploited remotely without authentication, potentially compromising server integrity and exposing sensitive character data.

Critical Impact

Remote unauthenticated attackers can exploit this vulnerability to read and write arbitrary memory locations, potentially leading to information disclosure, data corruption, or server compromise.

Affected Products

  • rAthena versions prior to commit 0cc348b
  • All rAthena server deployments running vulnerable character selection code
  • MMORPG server instances using the affected chclif_parse_moveCharSlot function

Discovery Timeline

  • 2025-09-09 - CVE CVE-2025-58750 published to NVD
  • 2025-09-17 - Last updated in NVD database

Technical Details for CVE-2025-58750

Vulnerability Analysis

This vulnerability stems from improper input validation in the character slot movement functionality of rAthena's character server. The chclif_parse_moveCharSlot function processes client requests to move characters between slots but failed to validate that the from and to slot indices were within acceptable bounds before accessing the sd->found_char and sd->char_moves arrays.

The vulnerability is classified under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) and CWE-125 (Out-of-bounds Read). The network-accessible nature of this flaw means attackers can craft malicious packets from anywhere on the network to trigger the vulnerability without any prior authentication.

Root Cause

The root cause is a missing bounds validation check against MAX_CHARS for both the from and to parameters in the chclif_parse_moveCharSlot function. Without this check, user-supplied values could exceed the allocated array sizes, allowing memory operations outside the intended buffer boundaries.

Attack Vector

An attacker can exploit this vulnerability by sending specially crafted network packets to the rAthena character server. By manipulating the character slot movement request with out-of-bounds slot indices, the attacker can:

  1. Read beyond array boundaries - Access memory contents outside the intended character data structures
  2. Write to unintended memory locations - Potentially corrupt adjacent memory structures or overwrite critical server data
  3. Bypass authentication mechanisms - As the vulnerability exists in the character selection phase, no game-level authentication is required

The attack can be executed remotely over the network with no user interaction required.

cpp
// Security patch in src/char/char_clif.cpp - Added a missing bounds check
// Source: https://github.com/rathena/rathena/commit/0cc348b186bbcc3c604c17c39589a319f27d469b

 	//Cnt = RFIFOW(fd,6); //how many time we have left to change (client.. lol we don't trust him)
 	RFIFOSKIP(fd,8);
 
-	// Have we changed to often or is it disabled?
+	// Bounds check
+	if( from >= MAX_CHARS ){
+		chclif_moveCharSlotReply( fd, sd, from, 1 );
+		return 1;
+	}
+
+	// Have we changed too often or is it disabled?
 	if( (charserv_config.charmove_config.char_move_enabled)==0
 	|| ( (charserv_config.charmove_config.char_moves_unlimited)==0 && sd->char_moves[from] <= 0 ) ){
 		chclif_moveCharSlotReply( fd, sd, from, 1 );
 		return 1;
 	}
 
-	// We don't even have a character on the chosen slot?
-	if( sd->found_char[from] <= 0 || to >= sd->char_slots ){
+	// Check if there is a character on this slot
+	if( sd->found_char[from] <= 0 ){
+		chclif_moveCharSlotReply( fd, sd, from, 1 );
+		return 1;
+	}
+
+	// Bounds check
+	if( to >= MAX_CHARS ){
+		chclif_moveCharSlotReply( fd, sd, from, 1 );
+		return 1;
+	}

Detection Methods for CVE-2025-58750

Indicators of Compromise

  • Unusual character slot movement requests with slot indices exceeding normal character slot limits
  • Unexpected server crashes or memory corruption events in the character server process
  • Anomalous network traffic patterns to the character server port with malformed packet structures
  • Log entries showing failed character operations or unexpected error responses from chclif_moveCharSlotReply

Detection Strategies

  • Monitor network traffic for character server packets containing abnormally high slot index values
  • Implement intrusion detection rules to flag character movement requests where slot indices exceed MAX_CHARS
  • Deploy memory protection mechanisms that can detect out-of-bounds memory access attempts
  • Enable verbose logging for character server operations to capture exploitation attempts

Monitoring Recommendations

  • Configure real-time alerting for character server process crashes or restarts
  • Monitor memory utilization patterns on rAthena server instances for anomalies
  • Review character server logs regularly for patterns of invalid slot movement attempts
  • Implement network-level packet inspection for rAthena protocol anomalies

How to Mitigate CVE-2025-58750

Immediate Actions Required

  • Update rAthena to commit 0cc348b or later immediately
  • Review character server logs for any signs of previous exploitation attempts
  • Consider temporarily disabling character slot movement functionality if immediate patching is not possible
  • Implement network access controls to limit exposure of the character server

Patch Information

The rAthena development team has addressed this vulnerability in commit 0cc348b186bbcc3c604c17c39589a319f27d469b. The fix adds explicit bounds checking for both the from and to slot parameters against MAX_CHARS before any array access operations occur.

For detailed patch information, refer to the GitHub Commit Change and the GitHub Security Advisory GHSA-pjh7-jgr8-4ff6.

Workarounds

  • Restrict network access to the character server port using firewall rules to trusted IP ranges only
  • Deploy a reverse proxy or packet filter that validates character slot indices before forwarding to the server
  • Disable the character slot movement feature entirely in the server configuration if not required
  • Implement rate limiting on character server connections to slow potential exploitation attempts
bash
# Configuration example - Restrict access to character server
# Add to firewall rules (iptables example)
iptables -A INPUT -p tcp --dport 6121 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 6121 -j DROP

# Alternative: Disable character movement in char_athena.conf
# char_move_enabled: no

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechRathena

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-119

  • CWE-125
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Security Advisory GHSA-pjh7-jgr8-4ff6
  • Related CVEs
  • CVE-2025-58447: Rathena MMORPG Server RCE Vulnerability

  • CVE-2025-58448: Rathena MMORPG Server SQLi Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English