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:N

Description

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 Program

Exploit source choices

3 sources
Cacti Graph Template authenticated RCE versions prior to 1.2.29
MSF-multi--http--cacti_graph_template_rceMetasploitLinux,PHP,Unix,Windows / remotePreferred

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.

2025-01-27cacti_graph_template_rce.rb
matesz44/cve-2025-24367
GH-b7714ead0ff4f84ca696619135a31e7bGitHubUnofficial GitHub source

CVE-2025-24367: Cacti AuthN Graph Template RCE in posix sh

2026-01-151 file · 1 stars