CVE-2023-32728
Critical · 9.8CVSS
9.8
EPSS
0.8%
Published
Dec 18, 2023
CISA due date
—
Cloudanix analysis
A monitoring tool component on Linux servers can be tricked into running attacker-chosen commands, which could let outsiders take over those servers if they reach the monitoring port.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- RCE
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The Zabbix Agent 2 smart.disk.get item key fails to sanitize user-supplied parameters before invoking an underlying shell command, enabling injection of arbitrary commands that execute with the privileges of the agent process.
Why it matters to the business
Attackers can gain remote code execution on monitored Linux systems, potentially leading to full host compromise, data exfiltration, or lateral movement in environments relying on Zabbix for infrastructure monitoring; the issue has been public for over 1000 days with low observed exploitation rates.
How an attack unfolds
An attacker with network access to a Zabbix Agent 2 instance crafts a malicious smart.disk.get item key containing shell metacharacters or command separators, submits it via the Zabbix protocol or a compromised Zabbix server, and the agent executes the injected payload without validation.
How to fix it
Upgrade Zabbix Agent 2 to a fixed version; on Debian 11/12/13 apply packages at least 5.10.84-1 or 5.14.16-1, and on Ubuntu 20.04/22.04 LTS apply the corresponding 5.15.0 or 6.5.0 kernel-related packages listed in the fixed_versions for each flavor.
How to confirm the fix worked
Verify the installed Zabbix Agent 2 package version against the fixed versions for the specific distribution and release; test that crafted smart.disk.get parameters no longer result in command execution by reviewing agent logs and process behavior.
Typical attack path
- Identify exposed Zabbix Agent 2 instances via network scanning or reconnaissance
- Craft and send a malicious smart.disk.get item key containing command injection payload
- Trigger item collection through Zabbix server or direct agent communication
- Execute arbitrary commands on the target host
- Establish persistence or perform further actions such as credential theft or lateral movement
How to detect it
Search Zabbix agent logs and system process execution logs for invocations of smart.disk.get containing unexpected characters such as semicolons, pipes, or backticks; correlate with network connections to the agent port and any resulting shell processes.
- smart.disk.get.*[;&|`$]
- zabbix_agent2.*smart.disk.get
What your security team should do
- Prioritize patching Zabbix Agent 2 instances on internet-facing or high-value hosts within standard change windows given the public disclosure age and low EPSS
- Restrict network access to Zabbix agents using firewall rules or VPNs to reduce exposure
- Audit Zabbix item configurations for use of smart.disk.get and replace with safer alternatives where possible
- Enable and review Zabbix agent logging for unusual item key activity
The record
The Zabbix Agent 2 item key smart.disk.get does not sanitize its parameters before passing them to a shell command resulting possible vulnerability for remote code execution.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | zabbix | 0 | No fix |
| Debian:13 | zabbix | 0 | 1:6.0.24+dfsg-1 |
| Ubuntu:22.04:LTS | zabbix | 0 | No fix |
| Ubuntu:24.10 | zabbix | 0 | 1:6.0.29+dfsg-1 |
| 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-42327 A non-admin user account on the Zabbix frontend with the default User role, or with any… Also affects zabbix