CVE-2024-42328
NoneCVSS
—
EPSS
0.2%
Published
Nov 27, 2024
CISA due date
—
Cloudanix analysis
Zabbix can unexpectedly stop working when it tries to read certain empty web pages, interrupting monitoring until someone restarts it.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- Other
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
Null pointer dereference in the Zabbix Browser webdriver when curl_write_cb never populates the data buffer on an empty HTTP response, resulting in a crash on subsequent read of wd->data.
Why it matters to the business
Monitoring or automation workflows that use the Browser object can be terminated unexpectedly, causing loss of visibility into web-based targets and potential alert fatigue or missed incidents until the process is restarted.
How an attack unfolds
An attacker hosts an HTTP server that returns a zero-length response body, then causes the Zabbix Browser webdriver to request that URL; the missing allocation leaves the data pointer NULL and triggers a crash on access.
How to fix it
Update zabbix/zabbix (GIT) to commit f383737f1083e25756c6afaaa8abff05ad11eb50 or later; rebuild and redeploy the affected components that contain the Browser webdriver.
How to confirm the fix worked
Confirm the running binary or source tree contains commit f383737f1083e25756c6afaaa8abff05ad11eb50; trigger a Browser fetch against an empty HTTP response and verify the process no longer crashes.
Typical attack path
- Attacker controls or compromises an HTTP endpoint that returns an empty document
- Zabbix Browser object is instructed to load that URL via webdriver
- curl_write_cb is never invoked or receives no data, leaving wd->data as NULL
- Subsequent code dereferences the NULL pointer and the process crashes
How to detect it
Review Zabbix server, proxy, and agent logs for segmentation faults or crashes originating from the Browser webdriver code path; correlate with HTTP requests that returned empty bodies around the time of the crash.
What your security team should do
- Apply the referenced commit immediately in all development, test, and production Zabbix instances that use the Browser object
- Add regression tests that exercise Browser fetches against zero-length responses
- Monitor process crash and restart rates for the Zabbix server or proxy components until patches are deployed
The record
When the webdriver for the Browser object downloads data from a HTTP server, the data pointer is set to NULL and is allocated only in curl_write_cb when receiving data. If the server's response is an empty document, then wd->data in the code below will remain NULL and an attempt to read from it will result in a crash.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | zabbix | 0 | No fix |
| 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-36468 The reported vulnerability is a stack buffer overflow in the… Also affects zabbix