Introducing Wiz for Exposure Management: Unify, prioritize, and remediate exposures everywhere.

CVE-2025-53534
vulnerability analysis and mitigation

Overview

RatPanel versions v2.3.19 to v2.5.5 contain a remote code execution vulnerability that allows attackers to execute system commands or take over hosts managed by the panel without authentication. The vulnerability exists due to inconsistent URL path handling between the CleanPath middleware and must_login middleware, which can lead to authentication bypass (GitHub Advisory).

Technical details

The vulnerability stems from inconsistent URL path handling between different components. When a request is made with a double-slashed path (e.g., //api/ws/ssh), the CleanPath middleware from github.com/go-chi/chi cleans it to /api/ws/ssh, but r.URL.Path remains //api/ws/ssh. The must_login middleware uses r.URL.Path for whitelist matching, causing the authentication check to fail since /api/ws does not match //api/ws. This allows bypassing authentication controls and accessing sensitive endpoints like /api/ws/exec and /api/ws/ssh (GitHub Advisory).

Impact

The vulnerability allows attackers to execute arbitrary system commands and potentially take over hosts managed by the panel. Users running affected versions, especially those with exposed admin panel login URLs or weak login paths, are vulnerable to unauthorized access. Additionally, versions v2.5.1 to v2.5.5 are susceptible to complete server and hosted machine takeover (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 2.5.6. Users should upgrade to this version or later to address the security issue. No workarounds are provided in the advisory (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management