Back to Labs
Security Advisory

CVE-2024-51567

About

upgrademysqlstatus in databases/views.py in CyberPanel (aka Cyber Panel) before 5b08cd6 allows remote attackers to bypass authentication and execute arbitrary commands via /dataBases/upgrademysqlstatus by bypassing secMiddleware (which is only for a POST request) and using shell metacharacters in the statusfile property, as exploited in the wild in October 2024 by PSAUX. Versions through 2.3.6 and (unpatched) 2.3.7 are affected.

Weakness (CWE):CWE-306

Rainforest analyst review

CyberPanel's upgrademysqlstatus endpoint could be reached without authentication because the security middleware only guarded POST requests, letting an attacker bypass it and then pass shell metacharacters through the statusfile property. The result is unauthenticated command injection: a crafted request to /dataBases/upgrademysqlstatus executes arbitrary OS commands on the server. Two failures compound here, a missing authentication check and unsanitized input flowing into a shell, and either alone would be serious.

CyberPanel is a web hosting control panel that runs as root and manages the websites, databases, and mail on a server, so command execution is complete takeover of the host and everything it hosts. This was exploited in the wild in October 2024 by the PSAUX ransomware campaign, which mass-scanned exposed panels and encrypted thousands of instances within days of the fix, and it is on CISA's KEV list. Update past the patched commit immediately. Given the speed and scale of the campaign, an internet-exposed panel should be treated as potentially already compromised: check for ransomware artifacts and unexpected processes, and restrict the management interface from public access.

References

Related CVEs

Frequently asked questions

What is CVE-2024-51567?

upgrademysqlstatus in databases/views.py in CyberPanel (aka Cyber Panel) before 5b08cd6 allows remote attackers to bypass authentication and execute arbitrary commands via /dataBases/upgrademysqlstatus by bypassing secMiddleware (which is only for a POST request) and using shell metacharacters in the statusfile property, as exploited in the wild in October 2024 by PSAUX.

How severe is CVE-2024-51567?

CVE-2024-51567 carries a CVSS 3.1 base score of 10, rated critical. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 100 out of 100, in the critical band.

How is CVE-2024-51567 exploited?

According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H): attack vector Network, attack complexity Low, privileges required None, user interaction None. Impact on confidentiality High, integrity High and availability High.

Which products are affected by CVE-2024-51567?

Public advisories list the following as affected: cyberpanel. Check the references on this page for the exact versions each vendor confirms.

How do I fix CVE-2024-51567?

Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.

Empower Your Security Strategy with Rainforest

Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.

Share this:LinkedInX Email