CVE-2024-25641
Cacti RCE vulnerability when importing packages
Reported by github_m · Published May 13, 2024
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Cacti | cacti | < 1.2.27 |
| alpine | cacti | 0 |
| Cacti | cacti | 0 |
| the_cacti_group | cacti | 0 |
Timeline
- May 12, 2024 CVE Published
- May 13, 2024 PoC Published (30 in total, the first dated here)
- May 14, 2024 EPSS Score (30 in total, the first dated here)
- Aug 26, 2024 VulnCheck XDB Entry (8 in total, the first dated here)
- Sep 9, 2024 CVE Updated
- Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
- Jan 16, 2026 Security Advisory (6 in total, the first dated here)
- Aug 10, 2026 Distribution Patch
- Nov 17, 2026 VulnCheck KEV Exploitation
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-25641
vulnetix vdb fixes CVE-2024-25641
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-25641/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart