CVE-2024-22116
Critical · 9.9CVSS
9.9
EPSS
1.6%
Published
Aug 12, 2024
CISA due date
—
Cloudanix analysis
A user with limited admin rights could secretly run powerful commands on the system through a monitoring feature, putting the whole setup at risk of being taken over.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
Lack of default escaping on script parameters in the Monitoring Hosts section allows a restricted administrator to inject and execute arbitrary operating system commands via the Ping script functionality.
Why it matters to the business
Compromised infrastructure through arbitrary code execution by accounts that should have limited access, potentially leading to full system control despite the age of the issue and low observed exploitation rates.
How an attack unfolds
A restricted administrator authenticates, navigates to the Monitoring Hosts section, crafts a malicious payload in the Ping script parameters that bypasses the missing escaping, and executes arbitrary commands on the host.
How to fix it
Upgrade affected AlmaLinux 8 packages to the listed fixed versions: apcu-panel to 5.1.17-1.module_el8.3.0+2009+b272fdef, libzip to 1.5.2-1.module_el8.5.0+152+112d3b8c, libzip-devel to 1.5.2-1.module_el8.4.0+2229+b272fdef, libzip-tools to 1.5.2-1.module_el8.5.0+152+112d3b8c, php-pear to 1:1.10.9-1.module_el8.3.0+2009+b272fdef, php-pecl-apcu to 5.1.17-1.module_el8.5.0+152+112d3b8c, php-pecl-apcu-devel to 5.1.17-1.module_el8.3.0+2009+b272fdef, and php-pecl-zip to 1.15.4-1.module_el8.4.0+2229+b272fdef. Apply input escaping or disable script execution for restricted roles where upgrades are delayed.
How to confirm the fix worked
Verify installed package versions match or exceed the fixed versions listed for each affected AlmaLinux 8 component and test that script parameters are properly escaped in the Monitoring Hosts section.
Typical attack path
- Authenticate with a restricted administrator account
- Access the Monitoring Hosts configuration section
- Modify Ping script parameters to include command injection payload
- Trigger script execution to run arbitrary commands on the target host
How to detect it
Review application and system logs for unexpected command executions originating from the Ping script in Monitoring Hosts; examine audit trails for parameter values containing shell metacharacters or unusual process spawns triggered by restricted accounts.
What your security team should do
- Immediately upgrade all listed packages to the specified fixed versions
- Review and restrict script execution permissions for administrator accounts
- Monitor for any post-patch anomalies in host monitoring activity
The record
An administrator with restricted permissions can exploit the script execution functionality within the Monitoring Hosts section. The lack of default escaping for script parameters enabled this user ability to execute arbitrary code via the Ping script, thereby compromising infrastructure.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | zabbix | 0 | 1:5.0.44+dfsg-1+deb11u1 |
| Debian:12 | zabbix | 0 | No fix |
| Debian:13 | zabbix | 0 | 1:7.0.0+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-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-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