# CVE-2024-31460: Cacti SQL Injection vulnerability in lib/api_automation.php caused by reading dirty data stored in database

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.79%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-05-13T15:14:38.689Z
- Modified: 2026-06-17T07:28:28.107Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Cacti cacti: < 1.2.27; from - before 1.2.27; before 1.2.27
- fedoraproject fedora: 39

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Cacti/cacti/security/advisories/GHSA-gj3f-p326-gh8r> (exploit, vendor-advisory)
- <https://github.com/Cacti/cacti/security/advisories/GHSA-cx8g-hvq8-p2rv> (exploit, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/> (product)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00027.html>

## Sources

- CVE List: [CVE-2024-31460](https://www.cve.org/CVERecord?id=CVE-2024-31460), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-31460](https://nvd.nist.gov/vuln/detail/CVE-2024-31460), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31460 · Whole record: https://cve.day/CVE-2024-31460.json · Rebuilt by cve.day 2026-11-25T22:58:40.139Z
