Cacti — Unpatched Cacti Zero-Day Enables Remote Code Execution via Guest Access
Publication date: November 27, 2026
Category: Zero-Day / Vulnerability
Introduction
Details have emerged regarding a novel zero-day vulnerability discovered in Cacti, a widely adopted open-source network monitoring and graphing tool. The flaw, which currently lacks an assigned CVE identifier and is tracked under the monikers 4HTTP2SHELL and 4HTTP2ROOT, enables an unauthenticated attacker to achieve remote code execution (RCE) on the underlying server. Discovered by a security researcher operating under the online alias “ek0ms savi0r” and analyzed by security firm watchTowr, the attack vector abuses the default-enabled guest account to compromise the operating system using only four HTTP requests, requiring no valid credentials or API keys.
What is the Cacti Vulnerability? (General Analysis)
Cacti is a PHP-based web application extensively deployed in enterprise network architectures to collect, process, and visualize performance metrics using SNMP and RRDTool. Because it frequently stores sensitive credentials and connection details for routers, switches, servers, and firewalls across a network, any security breach within this platform acts as an immediate stepping stone for lateral movement inside the corporate infrastructure.
The vulnerability stems from a combination of design and validation flaws in Cacti Core 1.2.31 (the latest version at the time of discovery), specifically triggered when the guest account is active on an isolated host. In the absence of an official NVD database entry at the time of this writing, a reasoned estimation is provided based on the reported flaw characteristics:
- Estimated CWE Classification: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command / SQL Injection) and CWE-78 (Improper Neutralization of Special Elements used in an OS Command).
- Estimated CVSS v3.1 Score: 9.8 (Critical) — Estimated Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
How Does It Work? (Technical Analysis)
The exploitation mechanism uncovered by the researcher requires exactly four sequential HTTP requests directed against the default guest surface. The structured breakdown of the attack chain is as follows:
- Initial Exploit Entry Flow (Requests 1 and 2):
The attacker abuses guest access to write an unvalidated value (arbitrary non-numeric text) into a configuration setting called
preview_graphs_per_pagevia the scriptauth_profile.php?action=update_data. This parameter controls how many graphs are displayed per page in Preview Mode. Cacti fails to validate that the provided input is strictly an integer value. - Second-Order SQL Injection (Request 3):
The crafted value takes the form of arbitrary SQL strings that transform into a second-order SQL injection. When the graph preview page (
graph_view.php) is loaded with default filters, the malicious SQL query is executed deferredly. Cacti’s PHP PDO database driver accepts stacked statements via the SQLLIMITclause, allowing the attacker to execute anUPDATEstatement that modifies a specific record within Cacti’spollertable. - Operating System Code Execution (Request 4):
In the final stage, the realtime poller endpoint (
graph_realtime.php) is invoked within the same guest session. This action causes the modified row from the poller table to be read and passed directly as input to PHP’spopen()function without any allowlist or sanitization checks. Consequently, the injected command executes with the privileges of the user running the Cacti web server.
“I found a path from a fresh, unauthenticated HTTP session to command execution as the Cacti server user in four requests. No login. No valid API key. No phishing. Just four HTTP requests against the default guest surface.” — ek0ms savi0r
Affected Systems / Environments
The security defect directly impacts the following software configurations and operational setups:
- Software: Cacti Core version 1.2.31 (and potentially prior versions sharing identical configuration and poller handling logic).
- Trigger Condition: The attack vector requires the guest account to be enabled on the target system and reachable via the web interface.
- Operational Impact: Complete compromise of the Cacti server, exposure of sensitive internal network topology credentials, silent suppression of alerts via poller table modification, and establishment of a pivot point into the broader target network.
Mitigation and Detection
Remediation
Until an official patch is released by maintainers to address input validation and command sanitization deficiencies, system administrators should implement immediate mitigation procedures:
- Disable the Guest Account: Immediately deactivate guest account access within Cacti’s global authentication settings.
- Restrict Web Interface Access: Limit access to the Cacti web frontend exclusively to trusted internal networks or secure tunnels (VPN/Zero Trust), preventing direct exposure to the public internet.
- Audit Configuration Entries: Thoroughly review poller configuration table entries for unexpected command values or anomalies.
Detection
Defensive teams should actively monitor web access logs and database queries for patterns indicative of this exploit vector:
- Detection of HTTP requests targeting
auth_profile.php?action=update_datacontaining non-numeric characters or SQL syntax within thepreview_graphs_per_pageparameter. - Monitoring for unusual or concurrent calls to
graph_view.phpandgraph_realtime.phporiginating from guest-privileged sessions. - Database integrity checks on Cacti’s MySQL/MariaDB
pollertable to identify unauthorized modifications in executed command strings.
-- Example analytic query to detect potential suspicious modifications in Cacti's poller table
SELECT id, name, action, command FROM poller WHERE command LIKE '%popen%' OR command LIKE '%system%' OR command LIKE '%eval%';Wrapping Up
The disclosure of this Cacti zero-day underscores how the convergence of multiple logic flaws—ranging from weak configuration input validation to unsafe usage of PHP command execution functions—can drastically lower the barrier to intrusion in critical enterprise infrastructure. By requiring only four HTTP requests from an unauthenticated guest profile, this vector emphasizes the absolute necessity of enforcing secure design principles, strict data type validation, and the principle of least privilege across administrative monitoring platforms.
References
- Lakshmanan, R. (2026). Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access. The Hacker News. https://thehackernews.com/2026/11/unpatched-cacti-zero-day-enables-rce-in.html
- ek0ms savi0r. (2026). Sad-Girls-0day-Club: 4http2shell. GitHub. https://github.com/ekomsSavior/Sad-Girls-0day-Club/tree/main/4http2shell
- Cacti. (2026). Cacti Releases. GitHub. https://github.com/Cacti/cacti/releases
- PortSwigger. (2026). Second-order SQL injection. PortSwigger Web Security Academy. https://portswigger.net/kb/issues/00100210_sql-injection-second-order
- Cacti. (2026). Cacti Database Schema (cacti.sql). GitHub. https://github.com/Cacti/cacti/blob/develop/cacti.sql
- Cacti. (2026). Settings Poller Documentation. GitHub. https://github.com/Cacti/documentation/blob/develop/Settings-Poller.md
- PHP. (2026). PHP Manual: popen() function. The PHP Group. https://www.php.net/manual/en/function.popen.php
- watchTowr. (2026). 4http2root: Cacti Zero-Day FAQ. watchTowr Intelligence. https://watchTowr.com/intelligence/4http2root-cacti-zero-day-faq/