Cacti 4HTTP2SHELL Zero-Day: Four HTTP Requests from Guest Access to Remote Code Execution

November 30, 2026
Profile Icon

Jason Franscisco

The most trusted server on your network may be the one nobody watches: the monitoring box. A public Cacti exploit now turns it into an entry point in four HTTP requests, and no vendor fix exists.

What Happened: An Unpatched Cacti Exploit Is Now Public

On November 26, 2026, a researcher using the handle ek0ms savi0r published a working proof-of-concept for a flaw in Cacti, the open-source network monitoring platform. The exploit is tracked as 4HTTP2SHELL, and watchTowr uses the original name 4HTTP2ROOT. An unauthenticated attacker can run operating system commands on the Cacti server when the optional guest account is enabled. The researcher says the Cacti project was not notified first.

Affected product Cacti Core 1.2.31 (confirmed). Earlier 1.2.x releases are untested.
Vulnerability type Stored, second-order SQL injection chained to command execution
Precondition Guest account enabled (off by default since version 0.8.7)
Severity No official CVSS score. Third-party ratings range from provisional high to 9.8.
Fix status No CVE, advisory or patch. Not in CISA KEV as of November 28.
Impact Commands run as the web server or poller account, usually www-data or apache.

The risk extends past one server. Cacti stores SNMP community strings and credentials for the devices it polls, so a compromised host is a foothold in your management plane, and the poller table can be edited to hide the activity.

How the 4HTTP2SHELL Exploit Chain Works

This chain is reconstructed from the researcher's README and independent write-ups, and the vendor has not confirmed it. The four steps are:

  1. Guest session. GET auth_profile.php gives an anonymous visitor a session cookie and CSRF token.
  2. Poisoned write. POST auth_profile.php stores a crafted string in the preview_graphs_per_page setting (the settings_user table). A prepared statement saves it safely, but Cacti never checks that the value is an integer.
  3. Second-order injection. GET graph_view.php?action=preview reads the value back and concatenates it into a LIMIT clause in get_allowed_graphs() (lib/auth.php). The database driver accepts stacked statements, so the attacker rewrites the arg1 field of a poller_item row to hold a command.
  4. Execution. GET graph_realtime.php?action=init starts real-time polling. The poller passes arg1 to exec_poll(), which reaches popen() in lib/poller.php with no allowlist in the way.

This is a classic second-order flaw: the input is harmless at write time and dangerous at read time, so filters that inspect only the first request miss it. The exploit also needs a valid graph and poller item on the target. Relevant ATT&CK techniques: T1190, T1078.001, T1059, T1505.003 (if a web shell is dropped) and T1552.001.

Not sure where Cacti is running? We map your exposed assets and match them to live CVEs.

Find exposed assets

What Public Reports Miss About the Cacti Zero-Day

Having triaged exploit chains like this for years, I see five points most coverage skips. Inferences are labeled.

  • Disabling guest is containment, not a fix. It removes the unauthenticated entry point, but the unvalidated write remains. Any authenticated user who can edit their own profile may reach the same sink. This is our inference, untested on a lab build.
  • Probing, not proven compromise. Previdian honeypots logged 22 time-based SQL injection attempts from one IP on November 27, with no confirmed command execution. Two public exploits exist, one dropping a PHP web shell. Claims of confirmed exploitation come from secondary sources we could not verify.
  • "Root" is conditional. The root shell appeared only in a lab where Cacti ran as root. Expect www-data or apache in production, which still reaches the Cacti database and every stored device credential.
  • The same surface keeps breaking. Cacti 1.2.31 fixed two pre-auth SQL injections in graph_view.php in June 2026 (CVE-2026-39893 and CVE-2026-39948, the latter CVSS v4.0 9.3). This chain is separate.
  • Version checks mislead. Only 1.2.31 is confirmed vulnerable, but older builds are untested, not safe. Distribution packages lag too: Debian lists bookworm (1.2.24) and trixie (1.2.30) as still vulnerable to the June flaws. Treat any internet-reachable, guest-enabled Cacti as exposed.

At Loginsoft, we have analyzed 20,000+ CVEs and discovered 1,000+ zero-days. The risk window opens at the public proof-of-concept, not CVE assignment, so tools keyed only to CVE feeds are blind here.

How to Mitigate and Detect 4HTTP2SHELL Before a Patch Ships

Contain now

  • Disable guest access. Go to Console > Configuration > Users, disable the guest account and clear the Guest User in authentication settings. Verify by loading Cacti logged out. Use an authenticated read-only account for shared viewing.
  • Restrict the web interface to management networks or a VPN. Cacti should never be internet-facing.
  • Run as non-root. Confirm the web server and poller use low-privileged accounts.
  • Virtual patch. Add a WAF rule rejecting non-numeric preview_graphs_per_page values on POST /auth_profile.php.
  • Limit egress from the Cacti host to polled devices and update sources, which blunts reverse shells.

Hunt for exploitation

  • Web logs: look back to November 26 for auth_profile.php, graph_view.php?action=preview and graph_realtime.php?action=init from one source within minutes.
  • Processes and files: alert on the poller or web server spawning a shell, unexpected PHP files in the web root, and Cacti warnings about non-numeric values.
  • Database: run these read-only checks (baseline the second, since legitimate script data sources also use arg1):
SELECT user_id, value FROM settings_user 

WHERE name = 'preview_graphs_per_page' AND value NOT REGEXP '^[0-9]+$'; 

SELECT local_data_id, arg1 FROM poller_item WHERE arg1 REGEXP '[;|&`]'; 

‍

If you suspect compromise

Isolate the host and preserve logs and a database dump. Then rotate every SNMP community string, SNMPv3 credential and device password stored in Cacti, and review device logs for activity from the Cacti host after November 26. Subscribe to the Cacti GitHub advisories and upgrade the day a fix ships.

Need detections before a patch lands? Our researchers write Sigma, Falco and Osquery content.

Get detection content

How Loginsoft Helps You Find and Prioritize Exposed Cacti Servers

With a public exploit and no CVE, the hard part is knowing which assets are exposed and what to fix first. We help in four ways:

  • Find the exposure. Our External Attack Surface Discovery maps your internet-facing assets and correlates them with known vulnerabilities, so forgotten Cacti instances surface.
  • Get ahead of the CVE. LOVI, our vulnerability intelligence platform, draws on researcher blogs, social media and closed sources to alert on emerging vulnerabilities before NVD publication. Its Risk Index correlates EPSS, CISA KEV and ATT&CK with live exploit signals.
  • Watch the attackers. Cytellite's global sensor network gives early visibility into scanning and exploit activity.
  • Ship the detections. Our researchers write Sigma, Yara, Semgrep, OVAL, Falco, Osquery and Rego content, mapped to ATT&CK for SIEM and SOAR.

Track 4HTTP2SHELL the moment a CVE lands, and see who is probing you.

Explore LOVI

Cacti 4HTTP2SHELL FAQs

Q1. What is the Cacti 4HTTP2SHELL vulnerability?

4HTTP2SHELL (also called 4HTTP2ROOT) is an unpatched Cacti zero-day disclosed on November 26, 2026. A second-order SQL injection through a guest-editable graph preference chains into command execution in four HTTP requests, with no credentials.

Q2. Which Cacti versions are affected by 4HTTP2SHELL?

Cacti Core 1.2.31 is the only version confirmed vulnerable, and only when the guest account is enabled. Earlier 1.2.x releases are untested, so treat them as potentially affected until the Cacti project says otherwise.

Q3. Is there a patch or CVE for the Cacti zero-day?

No. As of November 29, 2026 there is no CVE, vendor advisory, patch or CISA KEV listing. Disable guest access, restrict the web interface, run Cacti as non-root and watch the Cacti GitHub advisories.

Q4. Does disabling the Cacti guest account stop the attack?

It blocks the published unauthenticated path and is the best immediate step, but it is not a fix. The unvalidated setting remains in the code, so pair it with network restriction, a WAF rule and monitoring.

Q5. Is the Cacti zero-day being exploited in the wild?

Probing has been observed, but confirmed compromise has not. Honeypots logged 22 SQL injection attempts from one IP on November 27 with no confirmed command execution, and two public exploits exist.

Q6. How can Loginsoft help with the Cacti zero-day?

We map your exposed Cacti instances, track emerging vulnerabilities before NVD publication in LOVI, watch scanning with Cytellite and build detection content for the exploit chain.

Sources

  1. Cloud Security Alliance research note: 4HTTP2SHELL
  2. Cyber Kendra: Cacti 4HTTP2ROOT Zero-Day Enables RCE via Guest Access
  3. Decryption Digest: Cacti 4HTTP2SHELL detection guidance
  4. Debian Security Tracker: CVE-2026-39893
  5. Debian Security Tracker: CVE-2026-39948