CVE-2024-31460 Cacti SQL Injection vulnerability in lib/api_automation.php caused by reading dirty data stored in database
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- PHPUbuntuDebian
Description
Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, some of the data stored in automation_tree_rules.php is not thoroughly checked and is used to concatenate the SQL statement in create_all_header_nodes() function from lib/api_automation.php , finally resulting in SQL injection. Using SQL based secondary injection technology, attackers can modify the contents of the Cacti database, and based on the modified content, it may be possible to achieve further impact, such as arbitrary file reading, and even remote code execution through arbitrary file writing. Version 1.2.27 contains a patch for the issue.
Upgrade path
15 packages: 14 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/cacti(Alpine v3.19) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.20) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.21) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.22) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.23) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| alpine/cacti(Alpine v3.24) | < 1.2.27-r0 | 1.2.27-r0 | Fixed |
| cacti | < 1.2.27; = < 1.2.27 | 1.2.27 | Fixed |
| debian/cacti(Debian 12) | < 1.2.24+ds1-1+deb12u3; = 1.2.24+ds1-1; = 1.2.24+ds1-1+deb12u1; = 1.2.24+ds1-1+deb12u2 | 1.2.24+ds1-1+deb12u3 | Fixed |
| debian/cacti(Debian 13) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 | Fixed |
| debian/cacti(Debian 14) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 | Fixed |
| ubuntu/cacti(Ubuntu 20.04) | < 1.2.10+ds1-1ubuntu1.1; = 1.2.4+ds1-2ubuntu3; = 1.2.9+ds1-1ubuntu1; = 1.2.9+ds1-1ubuntu2 +1 more | 1.2.10+ds1-1ubuntu1.1 | Fixed |
| ubuntu/cacti(Ubuntu 22.04) | < 1.2.19+ds1-2ubuntu1.1; = 1.2.16+ds1-2ubuntu1; = 1.2.19+ds1-2ubuntu1 | 1.2.19+ds1-2ubuntu1.1 | Fixed |
| ubuntu/cacti(Ubuntu 24.04) | < 1.2.26+ds1-1ubuntu0.1; = 1.2.25+ds1-2; = 1.2.26+ds1-1 | 1.2.26+ds1-1ubuntu0.1 | Fixed |
| ubuntu/cacti(Ubuntu Pro 18.04) | < 1.1.38+ds1-1ubuntu0.1~esm3; = 1.1.18+ds1-1; = 1.1.27+ds1-2; = 1.1.27+ds1-3 +5 more | 1.1.38+ds1-1ubuntu0.1~esm3 | Fixed |
| fedoraproject fedora | = 39 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cacti(Debian:12) | < 1.2.24+ds1-1+deb12u3 | 1.2.24+ds1-1+deb12u3 |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u2 | No fix listed |
| debian/cacti(Debian:13) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 |
| debian/cacti(Debian:14) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 |
| ubuntu/cacti(Ubuntu:22.04) | < 1.2.19+ds1-2ubuntu1.1 | 1.2.19+ds1-2ubuntu1.1 |
| cacti | = < 1.2.27 | No fix listed |
| cacti | < 1.2.27 | 1.2.27 |
| alpine/cacti(Alpine:v3.19) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.20) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.21) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.22) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.23) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.24) | < 1.2.27-r0 | 1.2.27-r0 |
| ubuntu/cacti(Ubuntu:24.04) | < 1.2.26+ds1-1ubuntu0.1 | 1.2.26+ds1-1ubuntu0.1 |
| fedoraproject fedora | = 39 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | < 1.1.38+ds1-1ubuntu0.1~esm3 | 1.1.38+ds1-1ubuntu0.1~esm3 |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.18+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.27+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.27+ds1-3 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.28+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.35+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.36+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.38+ds1-1 | No fix listed |
Show 10 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.38+ds1-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/cacti(Ubuntu:20.04) | < 1.2.10+ds1-1ubuntu1.1 | 1.2.10+ds1-1ubuntu1.1 |
| ubuntu/cacti(Ubuntu:20.04) | = 1.2.4+ds1-2ubuntu3 | No fix listed |
| ubuntu/cacti(Ubuntu:20.04) | = 1.2.9+ds1-1ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:20.04) | = 1.2.9+ds1-1ubuntu2 | No fix listed |
| ubuntu/cacti(Ubuntu:20.04) | = 1.2.10+ds1-1ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:22.04) | = 1.2.16+ds1-2ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:22.04) | = 1.2.19+ds1-2ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | = 1.2.25+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | = 1.2.26+ds1-1 | No fix listed |
References
- Debian Security Tracker CVE-2024-31460 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6969-1 vendor-advisory
- www.cve.org issue-tracking
- https://github.com/Cacti/cacti/security/advisories/GHSA-gj3f-p326-gh8r exploit issue-tracking vendor-advisory
- https://github.com/Cacti/cacti/security/advisories/GHSA-cx8g-hvq8-p2rv exploit issue-tracking vendor-advisory
- lists.fedoraproject.org product
- lists.debian.org
- security.alpinelinux.org vendor-advisory