This module exploits an authenticated remote code execution vulnerability in Cacti versions prior to 1.2.29. Authenticated users can upload a graph template through the /graph_templates.php endpoint. The right_axis_label parameter is vulnerable to code injection, allowing attackers to execute arbitrary commands on the server. The payload is length limited, due to this constraint the module starts an HTTP server and hosts the payload. The initial payload downloads the full payload using curl from the attacker's server and saves it to the web root of the cacti server before executing.
Exploit database
Vulnerability
CVE-2025-24367
Cacti allows Arbitrary File Creation leading to RCE
Vulnerability details
- Score
- 8.7
- Severity
- high
CVSS 4.0 · GitHub_M
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NDescription
Cacti is an open source performance and fault management framework. An authenticated Cacti user can abuse graph creation and graph template functionality to create arbitrary PHP scripts in the web root of the application, leading to remote code execution on the server. This vulnerability is fixed in 1.2.29.
CVE ProgramExploit source choices
3 sourcesCacti Graph Template authenticated RCE versions prior to 1.2.29
2025-01-27cacti_graph_template_rce.rb
thecybergeek/cve-2025-24367-cacti-poc
Proof of Concept for CVE-2025-24367
2025-10-302 files · 37 stars
matesz44/cve-2025-24367
CVE-2025-24367: Cacti AuthN Graph Template RCE in posix sh
2026-01-151 file · 1 stars