CVE-2024-25641: cacti Improper Input Validation
Vulnerability summary
CVE-2024-25641 is a critical (CVSS 9.1) Improper Input Validation vulnerability in cacti. EPSS estimates a 86.30% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities. 3 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 5 · Related 4Timeline
- 13-05-2024PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
Description
Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, an arbitrary file write vulnerability, exploitable through the "Package Import" feature, allows authenticated users having the "Import Templates" permission to execute arbitrary PHP code on the web server. The vulnerability is located within the `import_package()` function defined into the `/lib/import.php` script. The function blindly trusts the filename and file content provided within the XML data, and writes such files into the Cacti base path (or even outside, since path traversal sequences are not filtered). This can be exploited to write or overwrite arbitrary files on the web server, leading to execution of arbitrary PHP code or other security impacts. Version 1.2.27 contains a patch for this issue.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- 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
86.30%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 86.30% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundCacti
Maturity: poc
Cacti Import Packages RCE
exploit/multi/http/cacti_package_import_rce
Maturity: weaponized
Cacti 1.2.26 - Remote Code Execution (RCE) (Authenticated)
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< 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-7cmj-g5qc-pj88X Refsource CONFIRMREPORTExploitVendor Advisory