Unpatched Cacti zero-day: guest account to root in four requests
A researcher published a full exploit chain for Cacti 1.2.31 that turns an enabled guest account into RCE. No CVE, no patch yet. Disable the guest account now.
A researcher using the handle ek0ms savi0r has published a working exploit chain, dubbed 4HTTP2ROOT (also 4HTTP2SHELL), that takes Cacti 1.2.31 — the current release — from an anonymous guest session to command execution on the server. There is no CVE assigned and no vendor patch. If your Cacti install has the guest account enabled, treat it as exploitable today.
The primary material is the watchTowr advisory and FAQ and the PoC on GitHub. As of watchTowr's November 27 update, no exploitation in the wild has been reported and the flaw is not in the CISA KEV catalog.
What's affected
- Cacti Core 1.2.31, described by watchTowr as the latest version.
- Only when the guest account is enabled. The entire chain runs through the unauthenticated guest session, with no login, API key, or phishing.
The guest account has been disabled by default since Cacti 0.8.7, so a default install is not exposed. The risk is to operators who turned guest access on — a common convenience for read-only dashboards.
How the chain works
Per watchTowr and the researcher's writeup, the path is four HTTP requests:
- The guest session writes a non-numeric string into the
preview_graphs_per_pagesetting viaauth_profile.php?action=update_data. Cacti doesn't validate that the value is an integer. - The stored value becomes a second-order SQL injection, triggered when
graph_view.phploads with default filters. It runs anUPDATEagainst the poller table. The researcher notes PHP's PDO driver accepts stacked statements through the SQLLIMITclause. graph_realtime.phpreads the modified poller row and passes its command string to PHP'spopen()without sanitization.- Code runs as the Cacti server user.
The four root causes the researcher identifies: a numeric setting that accepts arbitrary strings, a stored default that bypasses request validation, a PDO driver that permits stacked statements, and a poller that executes database-stored command strings.
Why it matters beyond one box
Cacti is network-monitoring software, so the server frequently stores credentials for the devices it polls — SNMP strings, SSH keys, API tokens. watchTowr flags that a compromised Cacti host is a pivot into the monitored network, not just a single-host RCE, and that an attacker in the poller path can suppress the alerts that would otherwise flag the intrusion.
Action checklist
With no patch available, mitigation is the whole job:
- Disable the guest account. This breaks the chain outright — the entire exploit depends on it. In the Cacti console, confirm no guest/anonymous user is enabled.
- Restrict the Cacti web interface to trusted management networks. It should not be internet-reachable.
- Review poller configuration for unexpected command values, and watch logs for warnings about non-numeric values written to display settings.
- Apply the vendor fix as soon as it ships. watchTowr lists the patch as pending; track the Cacti releases page.
Context
This is a familiar shape: a monitoring or management appliance, trusted by definition because it sits inside the network and holds credentials for everything it watches, turned into an unauthenticated foothold. The novelty here is less the individual bugs than how an input-validation slip chains through a second-order SQL injection into a command the poller runs by design. Until a build lands, the guest account is the single control that matters — and it is off by default for exactly this reason.