CVE-2024-25641

CRITICAL

Cacti Import Packages RCE

Title source: metasploit
STIX 2.1

Exploitation Summary

EIP tracks 10 public exploits for CVE-2024-25641. PoCs published by D3Ext, leo-mitch, thisisveryfunny, including Metasploit module exploits/multi/http/cacti_package_import_rce.

AI-analyzed exploit summary This exploit leverages an authenticated RCE vulnerability in Cacti 1.2.26 by uploading a malicious PHP payload via a crafted GZIP file. The payload establishes a reverse shell to the attacker's specified host and port.

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 (10)

exploitdb WORKING POC
by D3Ext · textwebappsphp
https://www.exploit-db.com/exploits/52225

This exploit leverages an authenticated RCE vulnerability in Cacti 1.2.26 by uploading a malicious PHP payload via a crafted GZIP file. The payload establishes a reverse shell to the attacker's specified host and port.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti 1.2.26
Auth required
Prerequisites: Valid credentials for Cacti · Network access to the target · PHP execution capabilities on the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 10 stars
by leo-mitch · poc
https://github.com/leo-mitch/CVE-2024-25641-RCE-Automated-Exploit-Cacti-1.2.26

This repository contains a functional exploit for CVE-2024-25641, an arbitrary file write vulnerability in Cacti 1.2.26. The exploit automates the process of generating a malicious XML file, uploading it via the 'Package Import' feature, and achieving remote code execution (RCE) by writing a PHP script to the server.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti 1.2.26
Auth required
Prerequisites: Authenticated user with 'Import Templates' permission · Python environment with required dependencies · Access to a Python web server and netcat listener
devstral-2 · analyzed May 19, 2026 Full analysis →
nomisec WORKING POC 10 stars
by thisisveryfunny · poc
https://github.com/thisisveryfunny/CVE-2024-25641-RCE-Automated-Exploit-Cacti-1.2.26

This is a fully automated exploit for CVE-2024-25641, targeting Cacti 1.2.26. It leverages an arbitrary file write vulnerability in the 'Package Import' feature to achieve RCE by uploading a malicious XML file containing PHP code.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti 1.2.26
Auth required
Prerequisites: Authenticated user with 'Import Templates' permission · Access to the target Cacti instance
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 8 stars
by 5ma1l · poc
https://github.com/5ma1l/CVE-2024-25641

This exploit automates the exploitation of CVE-2024-25641 in Cacti by uploading a malicious PHP payload via a crafted gzip file. It leverages a signature bypass vulnerability to achieve remote code execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti (version not specified)
Auth required
Prerequisites: Valid credentials for Cacti · Network access to the target · PHP payload file
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 7 stars
by StopThatTalace · poc
https://github.com/StopThatTalace/CVE-2024-25641-CACTI-RCE-1.2.26

This PoC exploits CVE-2024-25641, an RCE vulnerability in Cacti 1.2.26, by crafting a malicious XML file with a PHP payload, signing it with a generated RSA key, and uploading it via the package import functionality. The exploit then triggers the payload to execute arbitrary commands.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti 1.2.26
Auth required
Prerequisites: Valid Cacti credentials · Network access to the Cacti web interface
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 2 stars
by Safarchand · poc
https://github.com/Safarchand/CVE-2024-25641

This is a functional PoC for CVE-2024-25641, an authenticated RCE vulnerability in Cacti. It automates authentication, malicious package upload, and triggers a reverse shell via a crafted payload.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti (version not specified)
Auth required
Prerequisites: Valid Cacti credentials · Network access to target · test.xml.gz payload file
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by regantemudo · poc
https://github.com/regantemudo/CVE-2024-25641-Exploit-for-Cacti-1.2.26

This repository contains a functional exploit for CVE-2024-25641, targeting Cacti 1.2.26. It leverages an authenticated arbitrary file write vulnerability in the Package Import feature to achieve Remote Code Execution (RCE).

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti 1.2.26
Auth required
Prerequisites: Authenticated user with 'Import Templates' permission · Target running Cacti 1.2.26
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by D3Ext · poc
https://github.com/D3Ext/CVE-2024-25641

This repository contains a functional exploit for CVE-2024-25641, an authenticated RCE vulnerability in Cacti 1.2.26. The exploit leverages the 'Package Import' feature to upload a malicious plugin containing a PHP reverse shell, achieving remote code execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti 1.2.26
Auth required
Prerequisites: Valid Cacti credentials with 'Import Templates' permission · Network access to the target Cacti instance
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by GabrielCF10 · poc
https://github.com/GabrielCF10/CVE-2024-25641---Cacti

This is a functional exploit for CVE-2024-25641, targeting an authenticated RCE vulnerability in Cacti 1.2.26. It leverages a file upload mechanism to deploy a PHP reverse shell payload.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti 1.2.26
Auth required
Prerequisites: Valid Cacti credentials · Network access to the target · PHP execution capabilities on the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →
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

This Metasploit module exploits CVE-2024-25641, an arbitrary file write vulnerability in Cacti versions prior to 1.2.27, by uploading a crafted package via the `Import Packages` feature to achieve remote code execution.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Cacti < 1.2.27
Auth required
Prerequisites: Valid Cacti credentials with `Import Templates` permission
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 9.1
EPSS 0.8819
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

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-20
Status published
Products (2)
cacti/cacti < 1.2.27
fedoraproject/fedora 39
Published May 14, 2024
Tracked Since Feb 18, 2026