Cacti Zero-Day Enables Unauthenticated Remote Code Execution in Four HTTP Requests
A critical zero-day vulnerability in Cacti could allow unauthenticated attackers to execute arbitrary commands through a four-request exploit chain involving second-order SQL injection and poller configuration manipulation. The flaw affects Cacti 1.2.31 when guest access is enabled, posing serious risks to network monitoring infrastructure.
Summary
A newly disclosed zero-day vulnerability affecting Cacti, an open-source network monitoring and graphing platform, could allow unauthenticated attackers to execute arbitrary operating-system commands on vulnerable servers. The vulnerability has been publicly demonstrated through an exploit chain known as 4HTTP2ROOT .
Security researcher ek0ms savi0r disclosed the vulnerability on November 26, 2026, demonstrating how an attacker could achieve remote code execution (RCE) through just four HTTP requests against a Cacti deployment with anonymous guest access enabled.
The flaw originates from insufficient validation of guest-controlled application settings. An attacker can store a malicious value in the preview_graphs_per_page configuration parameter, which is subsequently incorporated into an SQL query without appropriate validation. This creates a stored, second-order SQL injection vulnerability.
Successful exploitation allows an attacker to manipulate Cacti's polling configuration and cause the realtime poller to execute an attacker-controlled command. The demonstrated attack chain progresses from unauthenticated guest access to operating-system command execution without requiring valid user credentials or an API key.
Vulnerability Details
SecPod identifies this vulnerability as SVE-110173, an unauthenticated stored SQL injection vulnerability that can be chained with Cacti's polling functionality to achieve remote code execution.
| Vulnerability ID | Severity | Affected Product | Vulnerability Type |
|---|---|---|---|
| SVE-110173 | Critical RCE potential | Cacti Core 1.2.31 with guest access enabled | Stored Second-Order SQL Injection / Remote Code Execution |
Public Exploit Name: 4HTTP2ROOT / 4HTTP2SHELL.
Confirmed Affected Version: Cacti Core 1.2.31.
Exploitation Prerequisite: The Cacti guest account must be enabled and accessible to unauthenticated users.
Patch Status: No confirmed official fix as of November 27, 2026.
Exploitation Status: Public proof of concept available and laboratory exploitation verified. No confirmed exploitation in the wild.
Attack Methodology
The following phases describe the technical mechanism demonstrated by the security researcher. The sequence is based on a publicly available proof of concept and independent laboratory verification, rather than a confirmed real-world intrusion.
Phase 1: Identification of a Cacti Server with Guest Access Enabled
An attacker would first identify a Cacti installation accessible through a web interface and determine whether anonymous guest access is enabled.
Cacti supports a guest account that administrators can configure to allow unauthenticated users to view monitoring graphs and selected application functionality.
Although guest access is disabled by default, it may be enabled in environments where monitoring dashboards are shared without requiring individual user authentication.
In the affected configuration, guest access exposes profile-management functionality that allows the attacker to interact with user-controlled settings.
The publicly demonstrated exploit does not require valid login credentials, an API key, or interaction from a legitimate user.
The researcher demonstrated that a fresh unauthenticated HTTP session could progress from accessing guest-facing functionality to command execution in four requests.
Phase 2: Manipulation of Guest Profile Settings
After establishing access through the guest account, the attacker can interact with the profile-management functionality exposed by auth_profile.php.
The affected functionality accepts updates to user preferences, including the preview_graphs_per_page setting.
This parameter is intended to store a numeric value controlling the number of graphs displayed in preview mode.
However, the vulnerable application does not adequately validate that the submitted value is an integer.
Consequently, a guest user can store arbitrary text in the setting, including content capable of altering the structure of an SQL query when reused elsewhere in the application.
The submitted value is persisted in Cacti's settings_user database table.
At this stage, the attacker-controlled data has been stored but has not necessarily been executed as SQL.
Phase 3: Triggering Second-Order SQL Injection
The next stage involves Cacti's graph preview functionality, implemented through graph_view.php.
When the graph preview page is loaded using the affected default filter behavior, the application retrieves the previously stored preview_graphs_per_page value.
The setting is then used while constructing an SQL query, including the portion responsible for limiting the number of graph records returned.
Because the value is not adequately revalidated before being incorporated into the SQL statement, attacker-controlled content may alter the query structure.
The public research demonstrates that this behavior can be used to execute additional SQL operations through the affected database execution path.
This is a second-order SQL injection because the malicious value is submitted and stored during an earlier request before it is subsequently interpreted as part of an SQL query.
Unlike a direct SQL injection vulnerability, the entry point and execution point occur in separate application operations.
Phase 4: Modification of Polling Configuration
Once the SQL injection is triggered, the attacker can manipulate database records associated with Cacti's polling functionality.
The published laboratory demonstration modifies a record in the poller_item table, which stores information used by the polling subsystem.
Cacti's polling infrastructure collects metrics from monitored devices by executing configured collection operations and processing their results.
Some polling configurations include executable commands and associated arguments that are read from the database during metric collection.
By modifying the relevant polling configuration, an attacker can influence the command information subsequently consumed by the realtime poller.
This database manipulation bridges the gap between SQL injection and operating-system command execution.
The resulting malicious configuration is not executed immediately during the profile update. Instead, it becomes dangerous when the affected polling functionality processes the modified record.
Phase 5: Triggering the Realtime Poller
The final stage of the demonstrated exploit involves invoking Cacti's realtime graphing functionality through graph_realtime.php.
This component interacts with the realtime polling infrastructure to collect fresh monitoring data for graph display.
During processing, the poller reads polling configuration records from the backend database, including values previously modified through the SQL injection.
The vulnerable execution path can pass a database-stored command string to PHP's popen() functionality.
The popen() function allows a PHP process to execute an operating-system command and establish a stream connected to that process.
Because the poller trusts the modified database configuration, an attacker-controlled command can reach the execution function.
This results in arbitrary operating-system command execution within the privileges available to the Cacti application or polling process.
Phase 6: Remote Code Execution and Privilege Impact
The public exploit demonstrates that the complete attack chain can be completed using four HTTP requests against a vulnerable Cacti instance with guest access enabled.
Successful exploitation allows the attacker to execute commands on the Cacti monitoring server without providing valid authentication credentials.
The resulting privilege level depends on the operating-system account running the affected application and poller components.
In the researcher's laboratory environment, the application was running with root privileges, allowing the exploit to demonstrate root-level command execution.
However, this does not mean that the vulnerability automatically grants root privileges in every deployment.
On systems where Cacti operates under a restricted service account, command execution would generally be limited to the permissions granted to that account unless another weakness allows additional privilege escalation.
The demonstration nevertheless establishes a serious security risk because even non-root code execution can expose sensitive information and provide access to internal monitoring infrastructure.
Phase 7: Potential Credential Exposure and Lateral Movement
Cacti servers often store sensitive information required to monitor network devices, including SNMP community strings, device credentials, monitoring configurations, and network topology information.
An attacker who compromises the Cacti application server may be able to access information associated with routers, switches, servers, and other monitored devices.
Depending on the permissions available to the compromised account, attackers could potentially extract stored credentials or use the monitoring server to initiate further network reconnaissance.
This could enable lateral movement into internal management networks or additional systems reachable from the Cacti server.
Attackers could also manipulate polling configurations, disrupt metric collection, or interfere with monitoring visibility.
These activities represent possible consequences of successful exploitation. The public reporting does not establish that such actions have occurred during confirmed real-world attacks involving SVE-110173.
MITRE ATT&CK Techniques
The following MITRE ATT&CK techniques describe potential attacker behaviors associated with the demonstrated Cacti vulnerability. The mappings are based on the technical exploit chain and possible post-compromise activities rather than a confirmed attack campaign.
| Technique ID | Technique / Tactic | Description |
|---|---|---|
| T1190 | Exploit Public-Facing Application | Exploitation of guest-accessible Cacti web functionality to trigger stored SQL injection and obtain unauthorized command execution. |
| T1059 | Command and Scripting Interpreter | Execution of operating-system commands through the Cacti polling subsystem after manipulation of database-stored command information. |
| T1565.001 | Stored Data Manipulation | Modification of database-stored polling configurations through the second-order SQL injection vulnerability. |
| T1552 | Unsecured Credentials | Potential access to SNMP credentials or device authentication information stored by the monitoring application. |
| T1210 | Exploitation of Remote Services | Potential follow-on attacks against internal services accessible from a compromised Cacti monitoring server. |
Mitigation
Organizations using Cacti should prioritize the following security measures to reduce exposure to SVE-110173 until an official patch becomes available:
- • Disable Guest Access: Immediately disable the Cacti guest account and remove the designated Guest User from the application's Authentication Settings. Review the user configuration under Console > Configuration > Users.
- • Verify Authentication Restrictions: Test the configuration using a fresh unauthenticated browser session and confirm that guest users can no longer access protected Cacti functionality.
- • Restrict Web Interface Exposure: Limit access to the Cacti web interface to trusted management networks, authorized administrators, or users connected through a secure VPN.
- • Inspect Application Settings: Review the
settings_usertable for unexpected or non-numeric values associated withpreview_graphs_per_pageand other user-controlled settings. - • Audit Polling Configurations: Examine the
poller_itemtable and related poller configuration records for unexpected command strings, argument changes, or unauthorized modifications. - • Enforce Least Privilege: Ensure the Cacti application and poller processes run under dedicated, restricted service accounts rather than root wherever supported.
- • Monitor Suspicious Process Activity: Investigate unusual child processes, unexpected shell execution, unauthorized file creation, and abnormal outbound connections originating from the Cacti server.
- • Protect Stored Network Credentials: Assess the exposure of SNMP community strings, network device credentials, and other sensitive monitoring information. Rotate potentially compromised credentials when unauthorized access is suspected.
- • Monitor Vendor Security Advisories: Track Cacti's official security releases and install the appropriate fixed version when the project publishes a patch for this vulnerability.
Important: Disabling the guest account removes a prerequisite of the publicly demonstrated unauthenticated exploit chain. It does not repair the underlying input-validation or SQL injection weakness, so it should be treated as an interim mitigation.
Instantly Fix Risks in Endpoints & Cloud with Saner
Saner is a continuous and integrated vulnerability & exposure management platform that instantly fixes risks in endpoints and cloud.




