CVE-2025-24367
Cacti vulnerability analysis and mitigation

Overview

CVE-2025-24367 is a security vulnerability discovered in Cacti, an open-source performance and fault management framework. The vulnerability allows an authenticated Cacti user to 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. The issue was discovered in January 2025 and affects all versions of Cacti up to and including version 1.2.28, with a fix released in version 1.2.29 (GitHub Advisory).

Technical details

The vulnerability stems from insufficient sanitization of user input in Cacti's rrdtool binary functionality. While the application attempts to sanitize potentially tainted user input by escaping shell metacharacters through the cacti_escapeshellarg function, it fails to properly handle newline characters. This oversight allows attackers to inject multiple newlines to execute separate commands on the rrdtool binary, including functionality such as RRD creation, restoration, and dump. The vulnerability has been assigned a CVSS v4.0 score of 8.7 (High) with the 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 (NVD).

Impact

The exploitation of this vulnerability enables attackers to write arbitrary PHP scripts to the web root of the application, potentially leading to remote code execution on the server. This allows authenticated attackers to execute arbitrary code, potentially gaining control over the affected system and accessing, modifying, or deleting sensitive data (GitHub Advisory).

Mitigation and workarounds

Organizations using Cacti should immediately upgrade to version 1.2.29 or later, which contains the fix for this vulnerability. The patch addresses the input sanitization issues and prevents the creation of arbitrary PHP scripts through the graph functionality (Hacker News).

Community reactions

The vulnerability has gained significant attention in the security community, with multiple Linux distributions including Debian releasing security updates to address the issue. Debian has marked this vulnerability as having 'unimportant' urgency in their security tracker, though they have released fixes for both bullseye and bookworm distributions (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related Cacti vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-26520CRITICAL9.8
  • CactiCacti
  • cacti
NoYesFeb 12, 2025
CVE-2005-10004HIGH8.7
  • CactiCacti
  • cacti
NoYesAug 30, 2025
CVE-2025-24367HIGH8.7
  • CactiCacti
  • cacti
NoYesJan 27, 2025
CVE-2025-22604HIGH7.2
  • CactiCacti
  • cacti
NoYesJan 27, 2025
CVE-2025-24368MEDIUM6.9
  • CactiCacti
  • cacti
NoYesJan 27, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management