The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-24367

CVE-2025-24367: Cacti Graph Template RCE Vulnerability

CVE-2025-24367 is a remote code execution vulnerability in Cacti that allows authenticated users to create malicious PHP scripts via graph templates. This article covers technical details, affected versions, and patches.

Published: April 1, 2026

CVE-2025-24367 Overview

CVE-2025-24367 is a critical Remote Code Execution (RCE) vulnerability affecting Cacti, an open source performance and fault management framework widely used for network monitoring and graphing. An authenticated Cacti user can abuse the 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 allows attackers with valid credentials to leverage the graph template system to write malicious PHP files directly into the web-accessible directory structure. Once these files are created, they can be accessed via HTTP requests, resulting in arbitrary code execution with the privileges of the web server process.

Critical Impact

Authenticated attackers can achieve full server compromise through arbitrary PHP file creation in the web root, enabling complete control over the Cacti server and potentially the broader network infrastructure it monitors.

Affected Products

  • Cacti versions prior to 1.2.29
  • All installations with authenticated user access
  • Deployments allowing graph creation and template management

Discovery Timeline

  • 2025-01-27 - CVE-2025-24367 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-24367

Vulnerability Analysis

This vulnerability exploits a fundamental weakness in how Cacti handles graph creation and template functionality. The application fails to properly validate or sanitize file paths and content when users interact with the graph template system, allowing authenticated users to craft requests that result in arbitrary PHP files being written to the web root directory.

The attack requires only basic authenticated access to the Cacti application—any user with permissions to create or modify graphs can potentially exploit this flaw. Once a malicious PHP file is placed in the web root, the attacker can execute arbitrary commands on the underlying server by simply accessing the newly created file through a web browser or automated HTTP request.

The root cause lies in improper neutralization of special elements in output used by a downstream component (CWE-144), combined with insufficient access controls on file creation operations within the graph templating engine.

Root Cause

The vulnerability stems from improper input validation and neutralization (CWE-144) in the graph creation and template handling code. Cacti fails to adequately restrict the paths where files can be created and does not properly sanitize user-controlled input that influences file content. This allows attackers to bypass intended restrictions and write executable PHP code to web-accessible locations.

The graph template functionality appears to construct file paths using user-supplied data without sufficient validation, enabling path manipulation that results in files being created outside of intended directories or with unintended content.

Attack Vector

The attack is network-based and requires authenticated access to the Cacti web interface. An attacker with valid credentials can:

  1. Navigate to graph creation or template management functionality
  2. Craft a malicious request that abuses the file creation mechanism
  3. Create a PHP file containing arbitrary code in the web root
  4. Access the malicious file via HTTP to execute commands

The security patch in version 1.2.29 addresses this vulnerability along with several other security issues:

text
 Cacti CHANGELOG
 
-1.2.x
+1.2.29
+-security#GHSA-pv2c-97pp-vxwg: Local File Inclusion (LFI) Vulnerability via Poller Standard Error Log Path
+-security#GHSA-f9c7-7rc3-574c: SQL Injection vulnerability when using tree rules through Automation API 
+-security#GHSA-vj9g-P7F2-4wqj: SQL Injection vulnerability when view host template
+-security#GHSA-fh3x-69rr-qqpp: SQL Injection vulnerability when request automation devices
+-security#GHSA-c5j8-jxj3-hh36: Authenticated RCE via multi-line SNMP responses
+-security#GHSA-fxrq-fr7h-9rqq: Arbitrary File Creation leading to RCE
 -issue#5843: Issue with temporary tables with use of microtime
 -issue#5847: Presets Time in Cacti 1.2.28 Not Automatically Updating...
 -issue#5848: RRDfile Auto Clean not working

Source: GitHub Cacti Commit

Detection Methods for CVE-2025-24367

Indicators of Compromise

  • Unexpected PHP files appearing in the Cacti web root directory or subdirectories
  • Web server logs showing access to unusual PHP files not part of standard Cacti installation
  • File system audit logs indicating PHP file creation by the web server process
  • Unusual process spawning from the web server (e.g., www-data or apache user executing shell commands)

Detection Strategies

  • Monitor file system changes in the Cacti web root directory for new .php files
  • Implement web application firewall (WAF) rules to detect suspicious graph template manipulation requests
  • Enable file integrity monitoring (FIM) on the Cacti installation directory
  • Review web server access logs for requests to non-standard PHP endpoints
  • Configure intrusion detection systems to alert on PHP file creation events

Monitoring Recommendations

  • Deploy endpoint detection and response (EDR) solutions to monitor web server process behavior
  • Enable comprehensive logging for the Cacti application and underlying web server
  • Set up alerts for any new file creation in web-accessible directories
  • Monitor for unusual network connections originating from the Cacti server
  • Implement user activity logging to track graph creation and template modification operations

How to Mitigate CVE-2025-24367

Immediate Actions Required

  • Upgrade Cacti to version 1.2.29 or later immediately
  • Audit existing user accounts and revoke unnecessary graph creation permissions
  • Review the Cacti web root for any unexpected or suspicious PHP files
  • Implement network segmentation to limit the blast radius if compromise occurs
  • Enable additional authentication factors for Cacti administrative access

Patch Information

Cacti has addressed this vulnerability in version 1.2.29. The fix is available through the official GitHub Cacti Commit. Additionally, Debian has released security updates as documented in the Debian LTS Announcement.

Organizations should prioritize this update given the high severity and the potential for authenticated users to achieve full server compromise. The GitHub Security Advisory provides additional technical details about the vulnerability.

Workarounds

  • Restrict access to graph creation and template management functionality to only essential trusted users
  • Implement strict file system permissions preventing the web server from creating files in the web root
  • Deploy a web application firewall with rules to block suspicious requests to graph-related endpoints
  • Place Cacti behind a VPN or restrict network access to trusted IP ranges only
  • Enable read-only file system mounts for web-accessible directories where feasible
bash
# Example: Restrict file creation permissions on Cacti web root
# Note: This may affect legitimate functionality - test in non-production first
chmod -R o-w /var/www/html/cacti/
chown -R root:www-data /var/www/html/cacti/

# Monitor for new PHP files in web root
find /var/www/html/cacti -name "*.php" -mtime -1 -ls

# Review Cacti user permissions in database
mysql -u cacti_user -p cacti -e "SELECT username, realm FROM user_auth WHERE graph_perms > 0;"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCacti

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability90.49%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-144

  • NVD-CWE-Other
  • Technical References
  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Cacti Commit

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-25641: Cacti Package Import RCE Vulnerability

  • CVE-2025-22604: Cacti SNMP Parser RCE Vulnerability

  • CVE-2022-46169: Cacti RCE Vulnerability

  • CVE-2024-29895: Cacti Command Injection RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English