DEBIAN-CVE-2024-25641
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 |
|---|---|---|
| Debian:11 | cacti | 0, 1.2.16+ds1-2, 1.2.16+ds1-2+deb11u1 |
| Debian:13 | cacti | 0, 0 |
| Debian:14 | cacti | 0 |
| Debian:12 | cacti | 1.2.24+ds1-1+deb12u1, 1.2.24+ds1-1+deb12u2, * |
Exploit Intelligence
- CVE-2024-25641 - RCE Automated Exploit - Cacti 1.2.26 (github-poc)
- regantemudo/CVE-2024-25641-Exploit-for-Cacti-1.2.26 (github-poc-repo)
- Cacti exploit (github-poc-repo)
- Cacti exploit (github-poc)
- regantemudo/CVE-2024-25641-Exploit-for-Cacti-1.2.26 (github-poc)
- POC exploit for CVE-2024-25641 (github-poc)
- Fully automated PoC - CVE-2024-25641 - RCE - Cacti < v1.2.26 🌵 (github-poc)
- PoC for CVE-2024-25641 Authenticated RCE on Cacti v1.2.26 (github-poc)
- CVE-2024-25641 - RCE Automated Exploit - Cacti 1.2.26 (github-poc)
- This repository automates the process of exploiting CVE-2024-25641 on Cacti 1.2.26 (github-poc)
…and 3 more exploits
Timeline
- May 14, 2024 CVE Published
- May 10, 2026 CVE Updated