Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-51567: Unauthenticated Root Command Execution in CyberPanel

Published Oct 29, 2024 · Updated 27 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS84.4%100th percentile
CISA KEVYesAdded Nov 7, 2024
In the wildActivePer CISA KEV
Vendor
Cyberpanel
IdentifiersCVE-2024-51567CWE-78

CVE-2024-51567 is an authentication-bypass and OS command-injection vulnerability in CyberPanel versions through 2.3.6 and unpatched 2.3.7. The upgrademysqlstatus handler accepts an unauthenticated, user-controlled statusfile property and concatenates it into shell commands executed through sudo. CyberPanel's secMiddleware applies its security checks only to POST requests, while the handler parses request bodies independently of the HTTP method. A remote attacker can therefore use a non-POST method, such as PUT, to bypass middleware checks and inject shell metacharacters, achieving arbitrary command execution as root without user interaction. PSAUX exploited the vulnerability in October 2024, and exploitation by Earth Lamia has also been observed.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises the confidentiality, integrity, and availability of the affected server through root-level command execution. Attackers can access hosted data and credentials, modify or delete files, deploy malicious software, establish persistence, and disrupt CyberPanel and hosted services. The vulnerability has been exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities catalog.

Mitigation

If you can’t patch tonight, do this now.

Until patched, restrict network access to the CyberPanel management interface to trusted administrative systems, preferably through a VPN or allowlist. If operationally feasible, block access to /dataBases/upgrademysqlstatus at a reverse proxy or web application firewall. POST-only filtering is insufficient because non-POST requests can reach the vulnerable handler. These controls reduce exposure but do not replace the security update.

Remediation

Patch, then assume compromise.

Apply the CyberPanel security update incorporating commit 5b08cd6d53f4dbc2107ad9f555122ce8b0996515 or upgrade to a release containing that fix. Versions through 2.3.6 and unpatched 2.3.7 are affected; do not assume that upgrading to 2.3.7 alone resolves the issue.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
cyberpanel_preauth_rce_multi_cve.rbThis repository contains a single Metasploit module (Ruby file) that exploits three unauthenticated remote code execution vulnerabilities in CyberPanel, a popular web hosting control panel. The module targets CVE-2024-51567, CVE-2024-51568, and CVE-2024-51378, each corresponding to different HTTP endpoints and injection vectors within CyberPanel. The exploit does not require authentication and can be used against any accessible, vulnerable CyberPanel instance (typically on port 8090 over HTTPS). The module is weaponized, supporting arbitrary command execution via Metasploit's payload system, and is suitable for both proof-of-concept and real-world exploitation. The code is well-structured, leveraging Metasploit's HttpClient and AutoCheck features, and includes logic for detection, exploitation, and payload delivery. The main endpoints targeted are '/dataBases/upgrademysqlstatus', '/filemanager/upload', '/ftp/getresetstatus', and '/dns/getresetstatus'. The module is intended for use by penetration testers and red teamers to demonstrate the impact of these vulnerabilities.Disclosed Oct 27, 2024 · Framework: metasploit · ruby · networkWeaponizedcve-2024-51567-pocRepository purpose: a Python proof-of-concept exploit for CVE-2024-51567 targeting CyberPanel, described as command injection with CSRF protection bypass on the upgrademysqlstatus interface. Structure: - CVE-2024-51567.py: the only code file; implements the exploit. - README.md: Chinese write-up and usage instructions; claims affected versions CyberPanel 2.3.6/2.3.7. - LICENSE: Apache-2.0. - .gitignore: standard Python ignores. Exploit flow (CVE-2024-51567.py): 1) Creates an httpx.Client with base_url set to the provided target and TLS verification disabled (verify=False). 2) get_CSRF_token(): sends GET / and extracts the 'csrftoken' cookie; exits if missing. 3) pwn(): sends a PUT request to /dataBases/upgrademysqlstatus with headers X-CSRFToken and Referer, and a JSON body where 'statusfile' is set to "/dev/null; <cmd>; #" to inject arbitrary shell commands. 4) Interactive loop: prompts for commands ($>), runs exploit per command, and prints the JSON field 'requestStatus' from the server response (so it is command execution-oriented but not a robust output-capturing shell). Capabilities: - Pre-auth network RCE via command injection in a web endpoint parameter. - Automatic CSRF token retrieval and reuse. - Single-target and batch mode (reads targets from a file), with an interactive command prompt per target. Notable limitations/observations: - No explicit authentication handling; relies on the vulnerability being reachable unauthenticated. - Output handling is minimal: prints only response.requestStatus, not stdout/stderr of the executed command. - Disables TLS verification, increasing reach against misconfigured HTTPS but also reducing safety for legitimate testing.KKDT12138 · Disclosed Aug 7, 2025 · python · networkOperationalCVE-2024-51567This repository contains a Python proof-of-concept exploit for CVE-2024-51567, a critical command injection vulnerability in CyberPanel versions 2.3.6 and 2.3.7 (unpatched). The exploit targets the '/dataBases/upgrademysqlstatus' HTTP endpoint, which is vulnerable to command injection due to improper filtering of the 'statusfile' parameter and insufficient CSRF protection. The script retrieves a CSRF token from the root endpoint ('/'), then crafts a malicious payload that injects arbitrary shell commands via the 'statusfile' parameter in a PUT request. The exploit supports both single and multiple targets, and provides an interactive shell-like interface for executing commands on the compromised server. The repository consists of the main exploit script (CVE-2024-51567.py) and a detailed README.md explaining the vulnerability, usage, and code structure. No hardcoded IPs or domains are present; the script requires the user to supply target URLs. The exploit is a functional PoC and does not include advanced features such as reverse shells or persistence.ajayalf · Disclosed Oct 31, 2024 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
CyberpanelCyberpanelapplication
FAQ

Frequently asked questions

Is CVE-2024-51567 exploited in the wild?
Yes. As of Oct 26, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 7, 2024.
Is there a public exploit for CVE-2024-51567?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2024-51567, the earliest disclosed Oct 27, 2024.
Is there a patch for CVE-2024-51567?
Apply the CyberPanel security update incorporating commit 5b08cd6d53f4dbc2107ad9f555122ce8b0996515 or upgrade to a release containing that fix. Versions through 2.3.6 and unpatched 2.3.7 are affected; do not assume that upgrading to 2.3.7 alone resolves the issue.
What products are affected by CVE-2024-51567?
Cyberpanel.
How severe is CVE-2024-51567?
CVE-2024-51567 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 84.4% (100th percentile) as of Oct 26, 2026.
Activity feed

Recent activity

15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+6 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware3Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.