CVE-2024-25641

CRITICAL

Cacti Import Packages RCE

Title source: metasploit

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.

Exploits (9)

nomisec WORKING POC 10 stars
by thisisveryfunny · poc
https://github.com/thisisveryfunny/CVE-2024-25641-RCE-Automated-Exploit-Cacti-1.2.26
nomisec WORKING POC 8 stars
by 5ma1l · poc
https://github.com/5ma1l/CVE-2024-25641
nomisec WORKING POC 7 stars
by StopThatTalace · poc
https://github.com/StopThatTalace/CVE-2024-25641-CACTI-RCE-1.2.26
nomisec WORKING POC 2 stars
by Safarchand · poc
https://github.com/Safarchand/CVE-2024-25641
nomisec WORKING POC 1 stars
by regantemudo · poc
https://github.com/regantemudo/CVE-2024-25641-Exploit-for-Cacti-1.2.26
nomisec WORKING POC 1 stars
by D3Ext · poc
https://github.com/D3Ext/CVE-2024-25641
nomisec WORKING POC
by GabrielCF10 · poc
https://github.com/GabrielCF10/CVE-2024-25641---Cacti
exploitdb WORKING POC
by D3Ext · textwebappsphp
https://www.exploit-db.com/exploits/52225
metasploit WORKING POC EXCELLENT
by Egidio Romano, Christophe De La Fuente · rubypocphp
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/cacti_package_import_rce.rb

Scores

CVSS v3 9.1
EPSS 0.8838
EPSS Percentile 99.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Classification

CWE
CWE-20
Status published

Affected Products (2)

cacti/cacti < 1.2.27
fedoraproject/fedora

Timeline

Published May 14, 2024
Tracked Since Feb 18, 2026