Vulnerability
CVE-2024-25641
Cacti RCE vulnerability when importing packages
Vulnerability details
- Score
- 9.1
- Severity
- critical
CVSS 3.1 路 GitHub_M
Vector string
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:HDescription
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.
CVE ProgramExploit source choices
9 sourcesThis exploit module leverages an arbitrary file write vulnerability (CVE-2024-25641) in Cacti versions prior to 1.2.27 to achieve RCE. It abuses the `Import Packages` feature to upload a specially crafted package that embeds a PHP file. Cacti will extract this file to an accessible location. The module finally triggers the payload to execute arbitrary PHP code in the context of the user running the web server. Authentication is needed and the account must have access to the `Import Packages` feature. This is granted by setting the `Import Templates` permission in the `Template Editor` section.
CVE-2024-25641 - RCE Automated Exploit - Cacti 1.2.26
This repository automates the process of exploiting CVE-2024-25641 on Cacti 1.2.26
Fully automated PoC - CVE-2024-25641 - RCE - Cacti < v1.2.26 馃尩
POC exploit for CVE-2025-24893
POC exploit for CVE-2024-25641
regantemudo/cve-2024-25641-exploit-for-cacti-1.2.26 source repository
PoC for CVE-2024-25641 Authenticated RCE on Cacti v1.2.26