Cacti Zero-Day 4HTTP2ROOT: Four Requests to a Shell

By 12 min read
Cacti zero-day 4HTTP2ROOT, a guest access to command execution chain in Cacti 1.2.31

Cacti, the open-source tool many network teams use to graph router and switch traffic, got a public zero-day on Thanksgiving Day with no warning to its developers. Within a day, honeypots were seeing SQL injection probes that match it.

In short: the Cacti zero-day 4HTTP2ROOT is a stored SQL injection chain in Cacti 1.2.31 that turns an enabled guest account into operating system command execution in four HTTP requests. There is no CVE yet, but Cacti merged a fix on 28 November 2026. If guest access is on, turn it off today and apply the fix.

What is the Cacti zero-day 4HTTP2ROOT?

4HTTP2ROOT is an exploit chain against Cacti Core 1.2.31 published on 26 November 2026 by a researcher who goes by ek0ms savi0r. The proof of concept sits in a public GitHub repository created on 25 November under an MIT licence. The repository calls the exploit 4HTTP2SHELL, while Previdian, watchTowr and RavenAI use 4HTTP2ROOT; BleepingComputer says the name changed from the latter to the former.

Cacti is a PHP web application that polls devices over SNMP and other methods, stores the results in round-robin databases and draws graphs. Its main GitHub repository has about 1,900 stars and 450 forks. It is common in network operations centres and at internet service providers, which is why a flaw in it matters more than the star count suggests.

The chain needs one condition: Cacti’s guest account must be enabled. A guest account is a built-in, password-less user that lets anyone view graphs without logging in. Previdian notes that Cacti documents guest access as disabled by default, but operators often switch it on so that customers or other teams can look at dashboards.

Why the name says “root”

The researcher’s demonstration lab ran Cacti as root, so the commands ran as root. watchTowr, Previdian and BleepingComputer all point out that a typical installation runs the web server and poller under a low-privileged account, so the attacker gets that account instead. That is still a foothold on a server that usually holds SNMP community strings and device credentials for the whole network.

Why was it released without warning?

The researcher did not report the flaw to Cacti before publishing it, according to BleepingComputer and Particle’s summary of coverage. An essay in the same GitHub repository frames this as deliberate full disclosure: a protest against years of what the author describes as vendors dismissing bug reports. The author writes that full disclosure is “a scream with a repro step.”

Full disclosure means publishing vulnerability details, often with working exploit code, before or without a vendor fix. It forces fast patching but leaves every exposed user unprotected in the gap. In this case the gap was about two days, which is short, but long enough for scanning to start.

How does the 4HTTP2ROOT chain work?

At a conceptual level the chain is a stored, second-order SQL injection that ends in command execution. A second-order SQL injection is one where the malicious input is saved safely first and only becomes dangerous later, when a different piece of code reads it back and trusts it.

Four-stage Cacti zero-day chain from guest profile write to poller command execution
Each step looks like ordinary guest traffic; the danger only appears when the stored value is reused. Data: RavenAI, Threadlinqs, Cacti PR 9014.

Step 1 and 2: a setting that should be a number

The guest user opens their profile page and saves a display preference: the number of graphs shown per preview page, stored as preview_graphs_per_page in the settings_user table. Threadlinqs notes that this write uses a prepared statement, so it is safe at that moment. The problem is that nothing checks the value is actually an integer.

Step 3: the graph preview builds the query

When the guest opens the graph preview, Cacti reads that preference and concatenates it into the LIMIT clause of a SQL query. Cacti’s own advisory for a sibling bug, GHSA-5x85-g4vc-gq53, explains the missing pieces: the default value skips the integer filter, the query is not prepared, and the database driver allows several statements in one call. That lets an attacker append a second statement. In 4HTTP2ROOT, according to RavenAI and Threadlinqs, that extra statement changes the command stored in the poller_item table.

Step 4: the realtime graph runs it

Cacti’s realtime graph feature runs poller commands on demand. When the guest starts a realtime graph, the modified command is passed to PHP’s popen() and executed on the server. RavenAI’s write-up says the whole sequence takes four requests and no memory corruption or password guessing.

What makes it hard to spot

SecurityOnline notes that the traffic looks like normal guest browsing and leaves only a small PHP warning about a non-numeric value. There is no exploit-looking URL path, no file upload and no login failure.

Timeline: disclosure, probes and a fix

The whole story played out over four days.

Date (2026) Event Source
25 November Researcher’s GitHub repository created GitHub API
26 November Proof of concept and write-ups published; Previdian and watchTowr post FAQs Previdian, watchTowr, RavenAI
27 November Previdian honeypots log 22 time-based SQL injection attempts from one IP Previdian
27 November watchTowr captures activity it later reports as in-the-wild exploitation watchTowr
28 November Cacti merges PR 9013 (1.2.31 branch) and PR 9014 (1.2.x branch) GitHub
28 November Cacti developer Sean Mancini confirms the fix to BleepingComputer BleepingComputer
29 November Cacti publishes GHSA-5x85-g4vc-gq53 for an authenticated LIMIT clause SQL injection, CVSS 8.8 GitHub
Timeline of the Cacti 4HTTP2ROOT disclosure, honeypot probes, fix and follow-up advisory
Probing began the day after disclosure, and the fix landed about 48 hours after it. Data: watchTowr, Previdian, BleepingComputer, GitHub.

Is 4HTTP2ROOT being exploited?

The sources disagree on how far exploitation has gone. watchTowr’s FAQ marks the bug as exploited in the wild, based on activity its Attacker Eye sensors captured on 27 November. Previdian saw 22 time-based SQL injection attempts against its honeypots from a single source IP the same day, but says it has not confirmed successful remote command execution.

A time-based SQL injection probe asks the database to pause, for example for a few seconds, and checks whether the response is delayed. It confirms the injection works without changing data, which is the usual first step before a full chain. Nobody has published victims, malware or attribution. Threadlinqs states that no network indicators, malware or command-and-control infrastructure had been published as of 27 November.

Who is affected and how do you check exposure?

You are exposed to the unauthenticated chain if all three of these are true:

  1. You run Cacti 1.2.31, or an older 1.2.x build whose status nobody has confirmed.
  2. The guest account is enabled.
  3. The web interface is reachable by an attacker, from the internet or from an internal network they already control.

None of the sources we read published internet-wide counts of exposed Cacti servers, so we do not quote one here. To check your own estate, list every Cacti instance (monitoring servers are often forgotten), confirm the version on the console’s about page, and check whether a Guest User is set in the authentication settings. If you can load graph pages in a private browser window without logging in, guest access is on.

Authenticated users are a risk too

Cacti’s separate advisory GHSA-5x85-g4vc-gq53, published on 29 November, describes the same LIMIT clause injection reachable by any logged-in user with the default Normal User permissions. Cacti rates it high, CVSS 8.8, lists versions up to 1.2.31 as vulnerable and 1.2.32 as patched. The advisory says the verified outcome is a normal user granting themselves full administrator rights. So turning off guest access closes the anonymous route, not the bug.

Key numbers for the Cacti zero-day: four requests, no CVE, 22 probes, CVSS 8.8
A short chain, no CVE to track it by, and probing within a day. Data: RavenAI, Previdian, GitHub advisory GHSA-5x85-g4vc-gq53.

How do you detect 4HTTP2ROOT?

Detection works best on the sequence of requests and on the database, because each single request looks harmless.

Web server logs

Threadlinqs publishes correlation rules that look for one client hitting three endpoints within about ten minutes:

  • POST /auth_profile.php with action=update_data
  • GET /graph_view.php with action=preview
  • GET /graph_realtime.php with action=init

Any guest session that changes profile data deserves a look, since guests rarely have a reason to. Expect false positives from administrators using the same pages and from authenticated vulnerability scanners.

Application and PHP logs

watchTowr and SecurityOnline both point to a warning about a non-numeric value in a graph display setting, logged even though the request succeeds. In a healthy installation that warning should be rare.

Database checks

Query the settings_user table for preview_graphs_per_page (and other numeric display settings) holding anything other than digits. Review the poller_item table, especially the arg1 command field, for entries nobody created. RavenAI also suggests watching for new files written by the poller process, such as a web shell or a marker file in the web root.

Host signals

On the server, look for the web server or poller account spawning shells, network tools or downloaders. watchTowr suggests watching for new files created by the poller.

MITRE ATT&CK mapping

Threadlinqs maps the chain to these techniques:

Technique ID How it shows up here
Exploit Public-Facing Application T1190 Unauthenticated web requests to Cacti
Valid Accounts: Default Accounts T1078.001 Abuse of the built-in guest user
Stored Data Manipulation T1565.001 Edited settings_user and poller_item rows
Command and Scripting Interpreter: Unix Shell T1059.004 Poller runs the injected command
Server Software Component: Web Shell T1505.003 Possible shell written to the web root

How do you mitigate the Cacti zero-day?

In priority order:

  1. Disable the guest account now. Previdian’s guidance is to clear the Guest User in the authentication settings and disable the guest user under Console, Configuration, Users. It calls this an interim step, not a fix.
  2. Take Cacti off the internet. Every source recommends restricting the web interface to trusted networks or a VPN. A monitoring console rarely needs to be public.
  3. Apply the merged fix. PR 9013 backports the fix to the 1.2.31 branch and, according to its description, also applies to the original 1.2.31 release tag. PR 9014 carries the same hardening into the 1.2.x branch. Cacti’s team told BleepingComputer to test it in a lab first. Move to 1.2.32 when it is released.
  4. Check for compromise before you patch over it. Run the database and log checks above. If anything is off, treat the server as compromised and rebuild it.
  5. Rotate what Cacti knows. Previdian advises rotating device credentials if compromise is suspected. That includes SNMP community strings, SNMPv3 users and any SSH or API credentials used by data input methods.
  6. Run Cacti with least privilege. Make sure neither the web server nor the poller runs as root, which is what turned this lab demo into “root.”
  7. Review normal users. Because of GHSA-5x85-g4vc-gq53, audit who has the Normal User role and remove accounts that are not needed.

What the fix changes

According to the PR descriptions, the patch blocks guest sessions from saving profile or graph preferences, validates every user setting against its expected type, clamps page size and page number to positive integers before they reach the LIMIT clause, requires a CSRF-checked POST for profile changes, and checks that a user may view a graph before the realtime feature runs anything.

How does it compare with earlier Cacti flaws?

Cacti has a track record of web bugs that end in command execution, and the poller is a recurring target because it exists to run commands.

Flaw Disclosed Access needed Outcome Fixed in
CVE-2022-46169 December 2022 None Command injection via remote_agent.php, CVSS 9.8, in CISA KEV since February 2023 1.2.23
CVE-2025-24367 January 2025 Authenticated user Graph features abused to write PHP files to the web root, CVSS 8.8 (NVD) 1.2.29
CVE-2026-39893 June 2026 None Pre-authentication SQL injection in graph_view.php, rated critical 1.2.31
4HTTP2ROOT November 2026 Guest account enabled Second-order SQL injection to poller command execution 1.2.31 and 1.2.x branches, 28 Nov
GHSA-5x85-g4vc-gq53 November 2026 Normal User LIMIT clause SQL injection to administrator, CVSS 8.8 1.2.32 (listed)

The closest parallel is CVE-2022-46169. It also needed no login and also ended in the poller executing attacker input, and CISA later added it to the Known Exploited Vulnerabilities catalog. Threadlinqs reviewed CVE-2026-39893, the June 2026 pre-authentication bug in the same file, and says it does not cover this chain, so being on 1.2.31 is not protection.

Similar “fix the data, then the query” stories have played out elsewhere this month, for example the GeoServer CVE-2026-129243 authorisation bypass and the Drupal Fail2Install installer flaw, where the first patch was not the end of the story.

What is still unknown?

  • The affected version range. Only 1.2.31 is confirmed. SecurityOnline says older 1.2.x builds with the same code are likely at risk; Previdian, RavenAI and BleepingComputer say it is not established.
  • Real compromises. watchTowr says exploited in the wild; Previdian has only seen probes. No victim has been named.
  • A CVE number. None has been assigned. Threadlinqs’ metadata lists CVE-2026-39893, but its own text says that advisory does not cover this chain, so do not track it under that ID.
  • Exposure. No source we read gives a count of internet-facing Cacti servers with guest access enabled.
  • A release. The fix lives in branches. Until 1.2.32 ships, package-based installs may lag behind.

Why monitoring servers make good targets

Monitoring platforms sit in a privileged spot: they reach every router, switch and server, and they store the credentials to do it. Attackers have learned this lesson before, from network management tools to remote monitoring software. We covered a similar pattern in the N-central 4EverAble2Shell attacks, where a management platform became the way into everything it managed. A compromised Cacti server can leak SNMP strings that describe or even reconfigure the network.

The bottom line

4HTTP2ROOT is a short, quiet chain: four guest requests, one stored setting, and the poller does the rest. It only works where guest access is on, but that is exactly how many teams share their dashboards. Turn guest access off, keep Cacti off the internet, apply the 28 November fix, and check your database before you assume you were not hit.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is the Cacti zero-day 4HTTP2ROOT?

4HTTP2ROOT, also published as 4HTTP2SHELL, is an exploit chain for Cacti 1.2.31 disclosed on 26 November 2026 by a researcher using the handle ek0ms savi0r. With the guest account enabled, four unauthenticated HTTP requests let an attacker run operating system commands through Cacti's realtime poller.

Which Cacti versions are affected by 4HTTP2ROOT?

Cacti 1.2.31, the current stable release, is the only version confirmed. Previdian, RavenAI and BleepingComputer all say the full affected range has not been established, so treat older 1.2.x installations as possibly affected until proven otherwise.

Is there a patch for the Cacti 4HTTP2ROOT zero-day?

Yes, as source code. Cacti merged pull request 9013 into the 1.2.31 maintenance branch and pull request 9014 into the 1.2.x branch on 28 November 2026. No 1.2.32 release had been published when this article was written, so the fix has to be applied from the branch.

Is 4HTTP2ROOT exploited in the wild?

watchTowr says it has been exploited in the wild based on activity it captured on 27 November 2026. Previdian saw 22 time-based SQL injection attempts from a single IP the same day but says successful command execution was not confirmed.

Does the Cacti zero-day give root access?

Only if Cacti runs as root. The researcher's lab ran Cacti as root, which is where the name comes from. watchTowr and Previdian note that commands run as whatever account runs the web server and poller, often a low-privileged web user.

Does 4HTTP2ROOT have a CVE?

Not yet. watchTowr and Previdian both list the CVE as not assigned. A related authenticated flaw in the same LIMIT clause was published by Cacti on 29 November as GitHub advisory GHSA-5x85-g4vc-gq53 with a CVSS score of 8.8.

How do I check if my Cacti server was attacked?

Look for one client requesting auth_profile.php with action=update_data, then graph_view.php with action=preview, then graph_realtime.php with action=init within minutes. Also check PHP logs for non-numeric value warnings and the settings_user and poller_item tables for unexpected strings or commands.

How do I disable the guest account in Cacti?

Previdian advises removing the Guest User selection in the authentication settings and disabling the guest account under Console, Configuration, Users. It describes this as an interim measure that blocks the unauthenticated path but does not fix the underlying SQL injection.

Keep reading

Cacti zero-day4HTTP2ROOTCactiSQL injectionnetwork monitoringvulnerability managementthreat detection