CVE-2024-36468
NoneCVSS
—
EPSS
0.5%
Published
Nov 27, 2024
CISA due date
—
Cloudanix analysis
A bug in Zabbix monitoring software could let attackers crash or take over the monitoring system by sending specially crafted network data.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Other
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack buffer overflow in zbx_snmp_cache_handle_engineid when copying session->securityEngineID to local_record.engineid without bounds checking, allowing memory corruption on the stack.
Why it matters to the business
Attackers could crash Zabbix server or proxy processes or potentially execute arbitrary code, disrupting centralized monitoring and alerting for IT infrastructure across the organization.
How an attack unfolds
An attacker sends a crafted SNMP response containing an oversized securityEngineID value that reaches the vulnerable function during cache handling; the missing bounds check leads to stack overwrite that can be leveraged for code execution or denial of service.
How to fix it
Upgrade Zabbix to the commit d93ce022627d3f10608b774e322cde3c961453e3 or apply the equivalent patch that adds proper bounds checking on the engineid copy.
How to confirm the fix worked
Confirm the source tree contains commit d93ce022627d3f10608b774e322cde3c961453e3, rebuild, and verify the function now performs length checks before the memcpy or equivalent copy operation.
Typical attack path
- Craft and send malicious SNMP packet with oversized securityEngineID to Zabbix server or proxy
- Trigger SNMP cache handling path that calls zbx_snmp_cache_handle_engineid
- Overflow stack buffer due to unchecked copy
- Overwrite return address or adjacent structures to achieve code execution or crash
How to detect it
Review Zabbix server and proxy logs for SNMP engineID handling errors, unexpected crashes, or high-volume SNMP traffic from untrusted sources; correlate with process dumps showing stack corruption around the vulnerable function.
What your security team should do
- Apply the fixed commit immediately on all Zabbix server and proxy instances
- Restrict SNMP access to trusted sources only
- Monitor Zabbix process stability and SNMP-related logs for anomalies
The record
The reported vulnerability is a stack buffer overflow in the zbx_snmp_cache_handle_engineid function within the Zabbix server/proxy code. This issue occurs when copying data from session->securityEngineID to local_record.engineid without proper bounds checking.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | zabbix | 0 | 1:7.0.3+dfsg-1 |
| Ubuntu:20.04:LTS | zabbix | 0 | No fix |
| Ubuntu:22.04:LTS | zabbix | 0 | No fix |
| Ubuntu:24.10 | zabbix | 0 | No fix |
| Ubuntu:25.04 | zabbix | 0 | No fix |
| Ubuntu:25.10 | zabbix | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | zabbix | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | zabbix | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | zabbix | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | zabbix | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | zabbix | 0 | No fix |
Related vulnerabilities
- CVE-2024-36465 A low privilege (regular) Zabbix user with API access can use SQL injection vulnerability… Also affects zabbix
- CVE-2024-36466 A bug in the code allows an attacker to sign a forged zbx_session cookie, which then… Also affects zabbix
- CVE-2024-36464 When exporting media types, the password is exported in the YAML in plain text. Also affects zabbix
- CVE-2024-42330 The HttpRequest object allows to get the HTTP headers from the server's response after… Also affects zabbix
- CVE-2024-42333 The researcher is showing that it is possible to leak a small amount of Zabbix Server… Also affects zabbix
- CVE-2024-42332 The researcher is showing that due to the way the SNMP trap log is parsed, an attacker… Also affects zabbix
- CVE-2024-42331 In the src/libs/zbxembed/browser.c file, the es_browser_ctor method retrieves a heap… Also affects zabbix
- CVE-2024-42326 There was discovered a use after free bug in browser.c in the es_browser_get_variant… Also affects zabbix