CVE-2024-42332
NoneCVSS
—
EPSS
0.6%
Published
Nov 27, 2024
CISA due date
—
Cloudanix analysis
Monitoring systems can be tricked into showing fake information when SNMP settings are not properly secured.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Other
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper parsing of SNMP trap logs allows injection of additional lines containing forged data that is then displayed in the Zabbix UI; the flaw is triggered only when SNMP authentication is disabled or credentials are known and when an SNMP item is configured to collect text data.
Why it matters to the business
Attackers can cause misleading or fabricated monitoring data to appear in dashboards, potentially leading to incorrect operational decisions or confusion during incident response; the issue is limited to environments with specific SNMP item configurations and weak authentication.
How an attack unfolds
An attacker who can reach the target host crafts an SNMP trap containing extra lines of fabricated information, sends the trap using known or absent community strings, and the Zabbix server parses the log entry so that the forged content is rendered in the user interface.
How to fix it
Upgrade Zabbix to the commit d93ce022627d3f10608b774e322cde3c961453e3 or later; enable SNMP authentication where possible and restrict text-type SNMP items to trusted sources.
How to confirm the fix worked
Verify the running version contains commit d93ce022627d3f10608b774e322cde3c961453e3; attempt to replay a crafted multi-line SNMP trap and confirm that extra lines no longer appear in the UI.
Typical attack path
- Obtain or bypass SNMP authentication credentials
- Ensure or configure an SNMP item of type text on the monitored host
- Craft and transmit a malicious SNMP trap containing additional forged lines
- Observe the injected data appearing in the Zabbix UI
How to detect it
Inspect SNMP trap logs and Zabbix server logs for entries containing unexpected line breaks or anomalous text patterns that do not match expected trap formats.
What your security team should do
- Apply the fixed commit immediately on all Zabbix instances
- Audit and enforce SNMP authentication settings across the environment
- Review all SNMP items configured as text and restrict their use
- Monitor for unexpected changes in trap-derived data
The record
The researcher is showing that due to the way the SNMP trap log is parsed, an attacker can craft an SNMP trap with additional lines of information and have forged data show in the Zabbix UI. This attack requires SNMP auth to be off and/or the attacker to know the community/auth details. The attack requires an SNMP item to be configured as text on the target host.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | zabbix | 0 | 1:5.0.45+dfsg-1+deb11u1 |
| Debian:12 | zabbix | 0 | No fix |
| 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-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-42331 In the src/libs/zbxembed/browser.c file, the es_browser_ctor method retrieves a heap… Also affects zabbix
- CVE-2024-36467 An authenticated user with API access (e.g.: user with default User role), more… Also affects zabbix
- CVE-2024-22117 When a URL is added to the map element, it is recorded in the database with sequential… Also affects zabbix
- CVE-2024-36463 The implementation of atob in "Zabbix JS" allows to create a string with arbitrary… Also affects zabbix