Cacti 1.2.31 Zero-Day RCE Fix Log: Four-Request Guest Exploit
Engineering fix log for the unpatched Cacti 1.2.31 zero-day RCE via guest access, covering blast radius, root cause, mitigation commands, and detection rules.
Cacti 1.2.31 with guest access enabled is vulnerable to unauthenticated RCE via four HTTP requests using second-order SQL injection and popen(); no CVE or vendor patch exists yet.
Key Numbers & Verified Specs
6 metrics| Metric / Spec | Verified Finding | Source |
|---|---|---|
| Affected Product | Cacti Core 1.2.31 | aviatrix.ai |
| Vulnerability Trackers | 4HTTP2SHELL and 4HTTP2ROOT; no CVE assigned | aviatrix.ai |
| Attack Vector | Unauthenticated second-order SQL injection via guest-writable numeric setting, RCE through PHP popen() in realtime poller | aviatrix.ai |
| Exploit Complexity | Four sequential HTTP requests, zero authentication required | aviatrix.ai |
| Vendor Patch Status | No vendor patch available; workaround mitigations only | aviatrix.ai |
| Disclosure Date | November 27, 2026 | aviatrix.ai |
Jump to section (4) +
Cacti Core 1.2.31 is currently exposed to an unpatched zero-day that grants unauthenticated remote code execution through just four HTTP requests when the guest account is enabled. Tracked by researcher ek0ms savi0r as 4HTTP2SHELL and 4HTTP2ROOT, the flaw has no assigned CVE and no vendor patch. Security teams running Cacti must treat this as an active network-beachhead risk and apply the workaround mitigations below immediately.
Incident Timeline & Blast-Radius Table
| Item | Detail |
|---|---|
| Affected product | Cacti Core 1.2.31 |
| Vulnerability IDs | 4HTTP2SHELL, 4HTTP2ROOT (no CVE assigned) |
| CVSS score | Not yet published |
| CISA KEV due date | Not listed |
| Initial access vector | Unauthenticated guest account access |
| Exploit chain | Second-order SQL injection via guest-writable numeric setting, then PHP popen() via realtime poller |
| Request count | Four sequential HTTP requests |
| Authentication required | None |
| Confirmed impact | Arbitrary OS command execution, credential harvesting, lateral movement |
| Vendor patch available | No |
| Primary disclosure date | November 27, 2026 |
| Affected organizations | Any organization running internet-facing Cacti 1.2.31 with guest access enabled |
The blast radius extends beyond the Cacti server itself. Because Cacti stores polling credentials for routers, switches, and servers, successful exploitation gives attackers a privileged pivot point into the broader enterprise network. Monitoring alert suppression and data exfiltration are also viable post-exploitation objectives.

Technical Root Cause & Attack Vector (Defensive Analysis)
The vulnerability originates in Cacti Core 1.2.31 where a guest-writable numeric setting is accepted without sufficient validation. An unauthenticated attacker injects arbitrary SQL through this setting, creating a second-order injection condition. When Cacti's real-time poller later reads and uses the tainted value, it passes attacker-controlled input to PHP's popen() function, which spawns a shell and executes arbitrary operating system commands with the privileges of the web server process.
This is a classic second-order flaw: the malicious payload is stored during the first request phase and executed during a separate, trusted internal operation. The four-request chain requires no session, no credentials, and no social engineering. Defenders should assume public exploit code is already in circulation and that internet-facing Cacti instances are being scanned actively.
Exact Patch, Upgrade & Verification Commands
No official Cacti patch exists for 1.2.31 at this time. The following commands implement the defensive workaround and verify the guest account state.
# 1. Disable Cacti guest access via the web UI
# Navigate to Configuration > Settings > Guest and set Guest access to Off
# 2. Verify guest account status in the Cacti database
mysql -u cacti_user -p cacti -e "SELECT * FROM user_auth WHERE username = 'guest';"
# 3. Restrict access to the realtime poller endpoint at the network edge
# Example nginx location block
# location /realtime.php { deny all; }
# 4. Monitor web access logs for poller abuse
grep -i "realtime.php" /var/log/nginx/access.log | tail -n 100
# 5. Confirm Cacti version
head -n 5 include/settings.php | grep -i versionRollback safeguards: document the current guest setting before changing it, take a database snapshot before any direct SQL updates, and test the poller endpoint restriction in a staging environment to avoid breaking legitimate device polling.
Detection Rules & Hardening Checklist
- Disable the Cacti guest account immediately on all 1.2.31 instances.
- Block unauthenticated access to /realtime.php at the WAF or ingress controller.
- Hunt for SQL injection patterns in guest-writable settings tables.
- Alert on process execution from the web server user (www-data, apache, or nginx) spawning shells.
- Rotate all device credentials stored in Cacti if compromise is suspected.
- Subscribe to Cacti security advisories and apply the vendor patch as soon as it is released.
When NOT to use this workaround: do not rely on endpoint blocking alone if the guest account remains enabled, because the injection vector may exist in other guest-accessible paths. The database-level guest disable is the higher-assurance control until a vendor patch is available.
For primary source details, see Aviatrix Threat Research Center disclosure and The Hacker News coverage. Additional context is available via The Hacker News Facebook post.
Reader Q&A
Frequently Asked Questions
Which Cacti versions are affected by the 4HTTP2SHELL zero-day?
What is the immediate mitigation if I cannot upgrade Cacti?
Why is this vulnerability particularly dangerous for network operations teams?
Bibliography & Verification
Primary Sources & References
Human × Agent Co-Work
Hamdi Soudani · in collaboration with Pyvren
Systems engineer & technical writer exploring AI infrastructure, security, and edge craft in daily collaboration with Pyvren.
Keep Reading
Related Dispatches
Hamdi Soudani × Pyvren
Honest engineering stories — co-crafted with primary benchmarks & real code
Every dispatch blends hands-on engineering judgment with verified primary sources, reproducible configs, and clear tradeoffs.