CVE-2024-31459: cacti PHP Remote File Inclusion
Vulnerability summary
CVE-2024-31459 is a high (CVSS 8.1) PHP Remote File Inclusion vulnerability in cacti. EPSS estimates a 2.68% chance of exploitation in the next 30 days, higher than 85.6% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 5 · Related 4Timeline
- 13-05-2024PublishedVulnerability first disclosed.
- 16-12-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated8.0HighCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDiffers
- NVDNIST7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
2.68%
Chance of exploitation in the next 30 days
Percentile
86%
Versus all other CVEs
30-day change
0.00 pp
From 2.68% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCacti
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Cacti1 product
- cacti< 1.2.27
Debian1 product
- cacti< 1.2.24+ds1-1+deb12u3 | < 1.2.27+ds1-1
Fedoraproject1 product
- fedoraEOL39
Ubuntu1 product
- cacti< 0.8.8b+dfsg-5ubuntu0.2+esm2 | < 0.8.8f+ds1-4ubuntu4.16.04.2+esm2 | < 1.1.38+ds1-1ubuntu0.1~esm3 | < 1.2.10+ds1-1ubuntu1.1 | < 1.2.19+ds1-2ubuntu1.1 | < 1.2.26+ds1-1ubuntu0.1
4 vendors · 4 products
References
9 links- github.com/Cacti/cacti/security/advisories/GHSA-cx8g-hvq8-p2rvX Refsource CONFIRMREPORTExploitVendor Advisory
- github.com/Cacti/cacti/security/advisories/GHSA-gj3f-p326-gh8rX Refsource MISCREPORTExploitVendor Advisory
- github.com/Cacti/cacti/security/advisories/GHSA-pfh9-gwm6-86vpX Refsource MISCREPORTExploitVendor Advisory