Improper input validation in Cacti
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
EPSS: 0.863 (99.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
Affected products
- Cacti — versions < 1.2.27
- Fedoraproject Fedora — versions 39
Weakness classification (CWE)
Public proof-of-concept exploits
- leo-mitch/CVE-2024-25641-RCE-Automated-Exploit-Cacti-1.2.26
- thisisveryfunny/CVE-2024-25641-RCE-Automated-Exploit-Cacti-1.2.26
- 5ma1l/CVE-2024-25641
- StopThatTalace/CVE-2024-25641-CACTI-RCE-1.2.26
- Safarchand/CVE-2024-25641
- D3Ext/CVE-2024-25641
- GabrielCF10/CVE-2024-25641---Cacti
- regantemudo/CVE-2024-25641-Exploit-for-Cacti-1.2.26
- rapid7/metasploit-framework
- nomi-sec/PoC-in-GitHub
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC)
- security-advisories@github.com (Product)
- security-advisories@github.com (Mailing List, Third Party Advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2024-25641?
- CVE-2024-25641 is a critical-severity vulnerability in Cacti, classified under Improper Input Validation. CVSS score: 9.1/10. Published 2024-05-14.
- How severe is CVE-2024-25641?
- Critical severity. CVSS v3 base score is 9.1 out of 10.
- Is CVE-2024-25641 known to be exploited?
- 15 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.