RatPanel Remote Code Execution and Authentication Bypass Vulnerability

Vulnerability

A remote code execution vulnerability has been identified in RatPanel versions 2.3.19 prior to 2.5.6. This vulnerability allows attackers to execute system commands or take control of hosts managed by the panel without logging in. The issue arises from the CleanPath middleware, which fails to properly process the URL path, leading to authentication bypass. As a result, unauthorized access to sensitive interfaces is granted.

Impact

Exploitation of this vulnerability allows for remote code execution and unauthorized access to the affected system.

Reproduction

To reproduce this vulnerability, first obtain the backend login path of RatPanel. This can be done through methods such as brute-force cracking or by exploiting weak default paths. Once the login path is known, activate a session by sending a request that includes the session cookie. After the session is activated, use the '_wsdump.py' script from the Python websocket-client library to authenticate and exploit the vulnerability via the WebSocket API.

Remediation

Users are advised to upgrade to RatPanel version 2.5.6, where this vulnerability has been patched.

Added: Aug 5, 2025, 10:43 PM
Updated: Aug 5, 2025, 10:43 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
7.6
remediation
7.7
relevance
0.3
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.