CVE-2024-42329
NoneCVSS
—
EPSS
0.2%
Published
Nov 27, 2024
CISA due date
—
Cloudanix analysis
A bug in Zabbix can make the monitoring system crash when it tries to handle certain browser errors without enough information.
- Exploitation
- Other
- Attacker needs
- Low Privilege
- Complexity
- Theoretical
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
Null pointer dereference occurs in the webdriver when webdriver_session_query fails without initializing an error object, leaving wd->error as NULL and triggering a crash on subsequent access.
Why it matters to the business
Unexpected crashes can disrupt Zabbix monitoring and automation workflows, leading to temporary loss of visibility into infrastructure health and potential delays in incident response.
How an attack unfolds
An attacker supplies input or conditions that cause webdriver_session_query to fail without an error description; the code then attempts to read from the uninitialized NULL pointer in the Browser object's error handling path, resulting in a process crash.
How to fix it
Upgrade Zabbix to the fixed commit f383737f1083e25756c6afaaa8abff05ad11eb50 in the GIT repository to ensure proper error object initialization before any access.
How to confirm the fix worked
Confirm the patched commit is present in the source tree, then exercise known failure paths in webdriver_session_query to verify no NULL dereference occurs.
Typical attack path
- Trigger a failure path in webdriver_session_query without providing an error object
- Allow execution to reach the point where wd->error is dereferenced
- Cause segmentation fault and service termination
How to detect it
Search Zabbix logs and system crash reports for segmentation faults or abnormal terminations involving webdriver or Browser object handling.
What your security team should do
- Apply the fix from commit f383737f1083e25756c6afaaa8abff05ad11eb50 without delay
- Monitor Zabbix process stability for browser-related components
- Review dependent automation scripts that invoke the Browser object for error resilience
The record
The webdriver for the Browser object expects an error object to be initialized when the webdriver_session_query function fails. But this function can fail for various reasons without an error description and then the wd->error will be NULL and trying to read from it will result in a crash.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | zabbix | 0 | 1:7.0.5+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: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-36468 The reported vulnerability is a stack buffer overflow in the… Also affects zabbix