CVE-2024-31445 SQL Injection vulnerability in automation_get_new_graphs_sql
HighCVSS 8.8
EPSS 26.2%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, a SQL injection vulnerability in automation_get_new_graphs_sql function of api_automation.php allows authenticated users to exploit these SQL injection vulnerabilities to perform privilege escalation and remote code execution. In api_automation.php line 856, the get_request_var('filter') is being concatenated into the SQL statement without any sanitization. In api_automation.php line 717, The filter of 'filter' is FILTER_DEFAULT, which means there is no filter for it. Version 1.2.27 contains a patch for the issue.
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-31445 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-vjph-r677-6pcc exploit issue-tracking vendor-advisory
- https://github.com/Cacti/cacti/commit/fd93c6e47651958b77c3bbe6a01fff695f81e886 issue-tracking patch
- https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php#L717 issue-tracking product
- lists.fedoraproject.org product
- lists.debian.org
- security.alpinelinux.org vendor-advisory