Skip to main content

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.

BREACHES & CVES Field Fix Log
Cacti Zero-Day 2026: Four HTTP Requests to Full Network Compromise — What Security Teams Must Do Now
Cacti Zero-Day 2026: Four HTTP Requests to Full Network Compromise — What Security Teams Must Do Now Source: aviatrix.ai
Field Note · The Short Version 3 min read

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

ItemDetail
Affected productCacti Core 1.2.31
Vulnerability IDs4HTTP2SHELL, 4HTTP2ROOT (no CVE assigned)
CVSS scoreNot yet published
CISA KEV due dateNot listed
Initial access vectorUnauthenticated guest account access
Exploit chainSecond-order SQL injection via guest-writable numeric setting, then PHP popen() via realtime poller
Request countFour sequential HTTP requests
Authentication requiredNone
Confirmed impactArbitrary OS command execution, credential harvesting, lateral movement
Vendor patch availableNo
Primary disclosure dateNovember 27, 2026
Affected organizationsAny 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.

Cacti Zero-Day 2026: Four HTTP Requests to Full Network Compromise — What Security Teams Must Do Now
Cacti Zero-Day 2026: Four HTTP Requests to Full Network Compromise — What Security Teams Must Do Now

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.

Bash15 lines
# 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 version

Rollback 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?
Cacti Core 1.2.31 with the guest account enabled is affected. No CVE has been assigned and no vendor patch is available as of the disclosure date.
What is the immediate mitigation if I cannot upgrade Cacti?
Disable the guest account, restrict access to the realtime poller endpoint at the network edge, and monitor for anomalous SQL patterns in guest-writable settings until a vendor patch ships.
Why is this vulnerability particularly dangerous for network operations teams?
Cacti commonly stores credentials for routers, switches, and servers, so a compromised monitoring server becomes an immediate pivot point for lateral movement, credential harvesting, and alert suppression across the enterprise network.

Bibliography & Verification

Primary Sources & References

3 cited sources
  1. [01] aviatrix.ai threat-research-center / unpatched-cacti-zero-day-rce-four-http-request…
  2. [02] thehackernews.com 2026 / 11 / unpatched-cacti-zero-day-enables-rce-in.html
  3. [03] facebook.com posts / ️-breaking-just-4-http-requests-to-compromise-a-cacti-servera-n…

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.

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.