A security researcher has published working exploit details for an unpatched flaw in Cacti, the open-source network monitoring and graphing tool, that lets an unauthenticated visitor run shell commands on the server in four HTTP requests. The chain, which the researcher "ek0ms savi0r" calls 4HTTP2SHELL (it was first titled 4HTTP2ROOT), was posted to GitHub on November 26 (UTC) and tested against Cacti 1.2.31, the current release. The one big precondition: Cacti's guest account has to be enabled.
Why it matters: a Cacti box is rarely just a graphing server. As the researcher's write-up puts it, it holds SNMP community strings, device logins and database credentials, and it can reach management networks that little else can. There is no CVE and no fix yet, according to The Hacker News and Daily CyberSecurity, so admins have to mitigate rather than patch.
What is affected
| Product | Cacti Core (open source, by The Cacti Group) |
| Confirmed vulnerable | 1.2.31, the latest release (out since June 2026, per Threadlinqs) |
| Older 1.2.x | Not tested; Daily CyberSecurity says builds with the same code are likely at risk |
| Precondition | Guest (anonymous) account enabled — Threadlinqs says it is off by default |
| CVE | None assigned |
| Patch | None |
| Public exploit | Yes — step-by-step requests and a shell script on GitHub |
| Exploited in the wild | Not reported as of November 27 (Daily CyberSecurity, Threadlinqs) |
How the chain works
We read the researcher's README in the GitHub repository; The Hacker News and Daily CyberSecurity describe the same steps. We did not run the exploit.
- Get a guest session. A fresh visitor to
auth_profile.phpreceives a guest session cookie and CSRF token without sending credentials. - Store the payload. The guest updates its own profile setting
preview_graphs_per_page— meant to be a page size — with arbitrary text, including SQL. The write itself uses a safe prepared statement; the problem is that the value is never checked to be a number. - Trigger the SQL.
graph_view.php?action=previewreads that stored value and pastes it into a SQLLIMITclause. Request parameters are validated as integers, but the stored default is not, and the database driver accepts stacked statements. The injectedUPDATErewrites a row in thepoller_itemtable. - Run it. The guest-reachable
graph_realtime.php?action=initstarts the realtime poller, which passes that row's command field topopen().
The researcher's own summary is that it takes "four HTTP requests against the default guest surface."
About "root": the original title promised root, but the README says the lab ran Cacti's web tier and poller as root. On a normal install the commands run as the web server user (usually www-data or apache). That is still enough to read Cacti's stored device credentials and its database config.
The README also notes the attack is quiet: every request looks like normal guest browsing, and the loudest trace is a PHP warning about a non-numeric value.
Vendor status
No Cacti Group statement, advisory or patch for this chain appears in any coverage we read, and none of the sources says whether the researcher contacted Cacti before publishing. We checked the public 1.2.x branch of the Cacti repository: the newest commits (November 26, mostly translation work) include nothing that mentions this setting, the preview LIMIT handling or guest access, and 1.2.31 is still the latest release tag. Threadlinqs mentions CVE-2026-39893 in its key facts, but its own notes say that older advisory does not cover this chain; don't treat it as this bug's ID.
What to do now
- Disable the guest account. In Cacti's console, remove the guest user from the authentication settings (Threadlinqs points to Console → Configuration → Users and the authentication settings page). This breaks step one of the chain, though it doesn't fix the underlying SQL injection.
- Take the web UI off the internet. Restrict it to a management network or VPN, or put it behind an authenticated reverse proxy. All three write-ups recommend this.
- Don't run Cacti or its poller as root. That turns this bug from a web-user shell into full control of the host.
- Look for tampering. Daily CyberSecurity and Threadlinqs suggest checking the
settings_usertable for non-numericpreview_graphs_per_pagevalues, andpoller_itemfor unexpected commands inarg1. Also search web/PHP logs for non-numeric warnings fromgraph_view.php, and process logs for shells started by the web or poller user. - If you find anything, assume the credentials are gone. Rotate SNMP communities, device logins, SSH keys and database passwords stored on the server (our advice, in line with Threadlinqs').
- Watch for 1.2.32 or an advisory on Cacti's GitHub releases and security advisories pages.
Who should care
Anyone running Cacti with guest access turned on — typically shops that put dashboards on a NOC wall screen or share graphs internally without logins. With a public, copy-paste exploit and no patch, internet-facing instances with guest enabled should be treated as exposed today.
Sources
- ek0ms savi0r (GitHub) — Four Requests to Root: A Cacti 0day (4http2shell README) github.com
- The Hacker News — Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access thehackernews.com
- Daily CyberSecurity — Cacti Unauthenticated RCE Zero-Day (4HTTP2ROOT): PoC Published securityonline.info
- Threadlinqs Intel — Cacti 4HTTP2ROOT (4HTTP2SHELL) Zero-Day intel.threadlinqs.com
- Cacti (GitHub) — 1.2.x branch commit history github.com