Subscribe
0%
Illustration for: Cacti 1.2.31 has an unpatched zero-day with public exploit code. Turn off the guest account now

Cacti 1.2.31 has an unpatched zero-day with public exploit code. Turn off the guest account now

A researcher has published a four-request exploit chain, dubbed 4HTTP2SHELL, that takes an anonymous visitor to command execution on Cacti 1.2.31 servers with guest access enabled. There is no CVE or patch yet, and Cacti servers hold the keys to the network, so disabling guest access and fencing off the web UI is the fix for now.

Listen to this article0:00 / 5:17

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.

  1. Get a guest session. A fresh visitor to auth_profile.php receives a guest session cookie and CSRF token without sending credentials.
  2. 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.
  3. Trigger the SQL. graph_view.php?action=preview reads that stored value and pastes it into a SQL LIMIT clause. Request parameters are validated as integers, but the stored default is not, and the database driver accepts stacked statements. The injected UPDATE rewrites a row in the poller_item table.
  4. Run it. The guest-reachable graph_realtime.php?action=init starts the realtime poller, which passes that row's command field to popen().

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

  1. 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.
  2. 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.
  3. Don't run Cacti or its poller as root. That turns this bug from a web-user shell into full control of the host.
  4. Look for tampering. Daily CyberSecurity and Threadlinqs suggest checking the settings_user table for non-numeric preview_graphs_per_page values, and poller_item for unexpected commands in arg1. Also search web/PHP logs for non-numeric warnings from graph_view.php, and process logs for shells started by the web or poller user.
  5. 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').
  6. 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

  1. ek0ms savi0r (GitHub) — Four Requests to Root: A Cacti 0day (4http2shell README) github.com
  2. The Hacker News — Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access thehackernews.com
  3. Daily CyberSecurity — Cacti Unauthenticated RCE Zero-Day (4HTTP2ROOT): PoC Published securityonline.info
  4. Threadlinqs Intel — Cacti 4HTTP2ROOT (4HTTP2SHELL) Zero-Day intel.threadlinqs.com
  5. Cacti (GitHub) — 1.2.x branch commit history github.com

#Cacti#4HTTP2SHELL#4HTTP2ROOT#zero-day#SQL injection#RCE#network monitoring#unpatched