A high-severity SQL injection vulnerability (CVSS 8.8) in Cacti 1.2.31, the popular open-source network monitoring platform, lets attackers achieve full remote code execution with just four HTTP requests when the guest account is enabled. A public proof-of-concept exploit is available and active exploitation has been observed, so the risk of complete system compromise, credential theft, and lateral movement requires immediate mitigation.
4HTTP2SHELL at a glance
- Vulnerability type: Stored, second-order SQL injection leading to remote code execution
- Severity: High (CVSS 8.8)
- Affected versions: Cacti Core 1.2.31, and potentially earlier versions
- Requirement: Guest account enabled; no authentication needed
- Tracking ID: GHSA-5×85-g4vc-gq53 (no CVE assigned yet)
- Exploitation status: Public PoC; about 1,800 exploitation attempts logged since November 27, 2026
- Fix: Cacti 1.2.32 (patches merged upstream; release pending)
How does the Cacti 4HTTP2SHELL exploit work?
The issue originates in Cacti’s graph handling and user settings components. Missing input validation on the preview_graphs_per_page user setting leads to a stored, second-order SQL injection. The attack chain runs as follows:
- The attacker sends four carefully crafted HTTP requests that mimic normal Cacti traffic.
- These requests inject a stacked SQL statement that rewrites the arg1 field in the poller_item table with an arbitrary shell command.
- When the real-time graphing endpoint processes the modified poller entry, it passes the attacker-controlled value to popen().
- The command executes on the underlying system.
No authentication is required to exploit this issue when the guest account is enabled.
Which Cacti versions are affected?
Cacti Core version 1.2.31 is affected, and earlier versions may be as well. Exploitation requires the guest account to be enabled. This setting has been disabled by default since Cacti 0.8.7, but it is commonly re-enabled in production deployments for read-only dashboard viewing. Affected instances are frequently deployed in data centers and cloud environments for SNMP-based network and infrastructure monitoring.
Is 4HTTP2SHELL being exploited in the wild?
Yes. At the time of writing, proof-of-concept exploit code is publicly available, and active in-the-wild exploitation has been observed. Approximately 1,800 exploitation attempts have been logged beginning November 27, 2026, just one day after the PoC was published. No CVE has been officially assigned yet; the vulnerability is tracked as GHSA-5×85-g4vc-gq53.
What can attackers do after exploiting Cacti?
Successful exploitation could allow attackers to:
- Execute arbitrary commands as the Cacti service account
- Access the entire Cacti database, including stored device credentials, SNMP community strings, and SNMPv3 credentials
- Move laterally through the monitoring network
The result could be service disruption, data exposure, or full infrastructure compromise.
How to mitigate the Cacti 4HTTP2SHELL vulnerability
- Disable the guest account now via Console > Configuration > Users.
- Restrict access to the Cacti web interface to trusted management networks via VPN or IP allowlisting.
- Upgrade to Cacti 1.2.32 when it is released. Patches have already been merged into the upstream repository.
Indicators of compromise for Cacti 4HTTP2SHELL
Organizations should check for the following indicators of compromise:
- Non-numeric values in the settings_user table for settings such as preview_graphs_per_page
- Unexpected commands in poller_item.arg1
- Guest sessions calling auth_profile.php with the update_data action
- Guest requests to graph_realtime.php
- Unexpected PHP files in the web root or child processes from the Cacti service account
If compromise is suspected, treat the host as compromised and rotate all SNMP community strings, SNMPv3 credentials, and scripted data-input credentials.
How can Orca help?
Orca enables customers to quickly identify assets running vulnerable Cacti versions, understand their exposure in context (including internet accessibility, runtime reachability, and asset criticality), and prioritize the risks that matter most based on real risk rather than CVSS alone. Orca’s platform highlights affected assets directly in the news item view, helping security teams focus on the most critical remediation paths first.
With agentless scanning, Orca can find Cacti hosts across your cloud estate without deploying agents, and its agentless vulnerability management helps teams see how individual risks combine into real threats, such as an internet-exposed Cacti server holding stored device credentials. To spot post-exploitation activity, Orca’s cloud detection and response capabilities can help teams investigate suspicious behavior on affected hosts.

