cbcvebase.
CVE-2024-31445
published 2024-05-14

CVE-2024-31445: Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, a SQL injection vulnerability in…

PriorityP270high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
26.15%
97.7th percentile
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

13 ranges
VendorProductVersion rangeFixed in
cacticacti< 1.2.271.2.27
cacticacti>= 0 < 1.2.16+ds1-2+deb11u41.2.16+ds1-2+deb11u4
cacticacti>= 0 < 1.2.24+ds1-1+deb12u31.2.24+ds1-1+deb12u3
cacticacti>= 0 < 1.2.27+ds1-11.2.27+ds1-1
cacticacti>= 0 < 1.2.27+ds1-11.2.27+ds1-1
cacticacti>= 0 < 1.2.10+ds1-1ubuntu1.11.2.10+ds1-1ubuntu1.1
cacticacti>= 0 < 1.2.19+ds1-2ubuntu1.11.2.19+ds1-2ubuntu1.1
cacticacti>= 0 < 1.2.26+ds1-1ubuntu0.11.2.26+ds1-1ubuntu0.1
cacticacti>= 0 < 0.8.8b+dfsg-5ubuntu0.2+esm20.8.8b+dfsg-5ubuntu0.2+esm2
cacticacti>= 0 < 0.8.8f+ds1-4ubuntu4.16.04.2+esm20.8.8f+ds1-4ubuntu4.16.04.2+esm2
cacticacti>= 0 < 1.1.38+ds1-1ubuntu0.1~esm31.1.38+ds1-1ubuntu0.1~esm3
debiancacti< cacti 1.2.24+ds1-1+deb12u3 (bookworm)cacti 1.2.24+ds1-1+deb12u3 (bookworm)
fedoraprojectfedora

Detection & IOCsextracted from sources · hover to see the quote

  • SQL injection occurs in `automation_get_new_graphs_sql` function within `api_automation.php` — monitor for anomalous SQL payloads in requests targeting this endpoint
  • The unsanitized user-controlled input is the `filter` request variable — inspect HTTP request parameters named `filter` sent to `api_automation.php` for SQL metacharacters or injection patterns
  • The `filter` parameter uses `FILTER_DEFAULT` (no filtering) at line 717 of `api_automation.php`, making it a reliable injection point — flag any non-alphanumeric SQL syntax in this parameter
  • Exploitation can lead to privilege escalation and remote code execution — correlate SQL injection attempts against `api_automation.php` with subsequent unexpected process spawning or privilege changes on the Cacti host
  • ·Exploitation requires authentication — unauthenticated access alone is not sufficient; monitor for authenticated sessions abusing the `filter` parameter
  • ·Vulnerability is present in Cacti versions prior to 1.2.27; Debian stable (bookworm) backported the fix into 1.2.24+ds1-1+deb12u3, so version checks must account for distro-patched builds

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_ubuntu9.1CRITICAL
vendor_debian8.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.