# CVE-2024-31459: Cacti RCE vulnerability by file include in lib/plugin.php

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- 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): 2.68%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2024-05-13T15:11:37.909Z
- Modified: 2026-06-17T07:28:27.983Z
- Weaknesses: CWE-98
- SSVC (CISA-ADP): exploitation poc, 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, there is a file inclusion issue in the `lib/plugin.php` file. Combined with SQL injection vulnerabilities, remote code execution can be implemented. There is a file inclusion issue with the `api_plugin_hook()` function in the `lib/plugin.php` file, which reads the plugin_hooks and plugin_config tables in database. The read data is directly used to concatenate the file path which is used for file inclusion. 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 8.1 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Cacti/cacti/security/advisories/GHSA-cx8g-hvq8-p2rv> (exploit, vendor-advisory)
- <https://github.com/Cacti/cacti/security/advisories/GHSA-gj3f-p326-gh8r> (exploit, vendor-advisory)
- <https://github.com/Cacti/cacti/security/advisories/GHSA-pfh9-gwm6-86vp> (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-31459](https://www.cve.org/CVERecord?id=CVE-2024-31459), CVE Terms of Use, modified 2025-12-16
- NVD: [CVE-2024-31459](https://nvd.nist.gov/vuln/detail/CVE-2024-31459), Public domain, modified 2026-06-17

---

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