Friday, November 27, 2026

Cacti 4HTTP2ROOT Zero-Day: Four Guest Requests to RCE on Your Monitoring Server

An unpatched Cacti zero-day called 4HTTP2ROOT (also tracked as 4HTTP2SHELL) lets an unauthenticated attacker run commands on a Cacti server in four HTTP requests, as long as the guest account is turned on. The flaw affects Cacti 1.2.31, the current release, and was disclosed publicly on November 26, 2026 by a researcher using the alias "ek0ms savi0r," with a working proof-of-concept published alongside the write-up. As of November 27 there is no CVE identifier, no vendor patch, and no confirmed exploitation in the wild. Cacti is an open-source network monitoring tool, and that detail is why this one matters more than its preconditions suggest.

Monitoring servers are the quiet center of a network. They talk to everything.

What is the Cacti 4HTTP2ROOT vulnerability?

Cacti polls routers, switches, firewalls and servers, usually over SNMP (the Simple Network Management Protocol devices use to report their status), and turns the numbers into graphs. To do that job it has to hold the keys: SNMP community strings, sometimes SSH credentials, database logins, and connection details for a large share of the infrastructure. The Hacker News quoted watchTowr's advisory on the Cacti flaw making exactly this point: because Cacti often stores credentials and connection details for devices across the network, command execution on it gives an attacker a foothold that reaches well beyond the monitoring box. The researcher was blunter. As reported by SecurityOnline's technical summary of the 4HTTP2ROOT disclosure, the write-up says that in a lot of shops the Cacti server is more valuable than the domain controller, because it's trusted everywhere and audited by nobody.

I'd quibble only with "a lot of." In a typical enterprise network, the monitoring server has broader network reach than any user workstation and gets less scrutiny than the directory servers. It sits in the management VLAN. Its firewall rules were written once, generously, so that polling would work, and nobody has revisited them since.

The precondition is the guest account. Cacti can allow anonymous visitors to view graphs without logging in, which is handy for a wallboard in the network operations center. Guest access has been disabled by default since Cacti 0.8.7, so a fresh install isn't exposed. The feature survives because it's useful, and that's the problem. Somebody wanted the graphs on a screen without typing a password, turned it on years ago, and moved on.

How four HTTP requests turn guest access into command execution

The chain is worth understanding at the level of mechanism, because none of its individual pieces looks dangerous on its own. That's the lesson.

Step one is a type problem. Cacti lets each user, including the guest, save display preferences. One of those is preview_graphs_per_page, which controls how many graphs show up on a page in preview mode. It should be a number. According to the disclosure, Cacti writes whatever the guest submits into the database using a safe, parameterized query, but never checks that the value is actually an integer. So the database now holds a string where a number belongs. Nothing has broken yet. The write itself was clean.

Step two is where that stored string goes off. When the graph preview page, graph_view.php, loads with its default filters, Cacti reads the saved preference back and places it into the LIMIT clause of a SQL query. Request-side validation doesn't catch it, because the value didn't come from this request; it came from the database, which the code trusts. This is called second-order SQL injection: the malicious input is stored safely in one step and becomes injection later, when a different piece of code reads it back and assumes it's clean. SecurityOnline reports that Cacti's PHP database driver (PDO) accepts stacked statements, meaning a second SQL command can ride along after the first. The researcher's demonstration used that to modify a row in Cacti's poller table.

Step three closes the loop. The poller table holds the commands Cacti runs to collect data. When the realtime graph endpoint, graph_realtime.php, is called from the same guest session, Cacti's realtime poller reads that modified row and hands its contents to PHP's popen() function, which executes a shell command. The Hacker News reports there's no allowlist or sanitization check on that path. As the researcher put it, the database row the guest can write is the row the poller executes.

The researcher summarized it as four failures stacked together: a guest can write a numeric setting as arbitrary text, the stored value bypasses request validation, the database driver accepts stacked statements through the LIMIT clause, and the poller executes a command string stored in the database. Fix any one of them and the chain breaks. All four had to be wrong at once. Each one probably looked reasonable to whoever wrote it.

Commands run as whatever account the Cacti web tier and poller use, typically a web user such as www-data or apache on Linux. SecurityOnline notes the demo reached a root shell only because the test lab's web server ran as root. That's a smaller blast radius on a well-built host, but don't take much comfort. The web user can read Cacti's database, and Cacti's database is where the network credentials live. An attacker with those can also quietly edit the poller table to suppress alerts, which is the monitoring equivalent of cutting the camera feed before the break-in.

Why a public PoC changes the clock

No exploitation has been confirmed. That's the honest status. But the full technical notes, a demo video and proof-of-concept code are all public, the vulnerable version is the latest one, and there's no patch to apply. Those are the conditions under which scanning tends to start quickly. Cacti instances have been a recurring target over the years for exactly the reasons above.

There's a second-order effect here that connects to this morning's news out of Switzerland. National agencies in Switzerland, Italy and the UK all warned this week that AI-driven attack frameworks are hammering known, unpatched weaknesses on internet-facing systems at machine speed. A public, unauthenticated, four-request chain against a widely deployed web application is close to an ideal input for that kind of automation. I'm not claiming anyone has wired 4HTTP2ROOT into an agent. I'm saying the distance between "PoC on GitHub" and "being tried against every exposed Cacti login page" is shorter than it used to be, and planning should assume the short version.

The log footprint doesn't help. SecurityOnline reports that the requests look like normal guest traffic and leave only a small PHP warning about a non-numeric value. Defenders who wait for an alert will likely wait a long time.

Why "upgrade to the latest version" doesn't help this time

The usual first line of advice is to upgrade. Here it's useless in one direction and urgent in the other. 1.2.31 is the vulnerable release, and SecurityOnline reports it shipped in June 2026 with nothing newer since. But 1.2.31 is also the release that closed a cluster of critical bugs disclosed that month. IONIX's write-up of CVE-2026-39938 describes an unauthenticated local file inclusion flaw, rated 9.8 on the CVSS scale, in every version up to and including 1.2.30, which can escalate to remote code execution. Another June advisory, CVE-2026-40079, covers command injection through a function called escape_command() that, according to the published description, returned its input unchanged before it reached a shell. Organizations still on 1.2.30 or older aren't safe from 4HTTP2ROOT by luck; they're exposed to older, documented bugs instead.

So the practical answer is to move to 1.2.31 if you aren't there, then apply the mitigations below on top of it. And notice the family resemblance. An escaping function that doesn't escape, a numeric setting that isn't checked for being numeric, a command column that's executed because it came from a trusted table. Cacti has a recurring habit of trusting values once they're inside the system.

How to check and protect Cacti servers before a patch ships

Until the Cacti project releases a fix (SecurityOnline suggests watching for a 1.2.32 release on Cacti's GitHub), mitigation means removing the conditions the chain needs. Disabling guest access blocks this path. It does not repair the underlying SQL injection, so treat it as a tourniquet, not surgery. In order:

  • Turn off the guest account in Cacti's authentication settings, so anonymous visitors can't open a session or save profile values.
  • Get the Cacti web interface off the internet. Put it behind a VPN or restrict it to a management network with firewall rules. Wallboards can authenticate.
  • Make sure neither the web server nor the poller runs as root.
  • Review the stored guest preferences for preview_graphs_per_page and any other numeric setting holding non-numeric text, and review the poller table for command entries you didn't create.
  • Search PHP and web server logs for non-numeric value warnings tied to graph_view.php, and for guest sessions hitting graph_realtime.php.

If any of those checks turn up something odd, assume the credentials Cacti holds are compromised. Rotate the SNMP community strings and any device or database passwords stored on the host, and look at the devices Cacti could reach for logins you can't explain. That's the expensive part, which is the argument for doing the cheap part today.

For penetration testers, this is a reminder to put monitoring platforms on the scope list and to check them specifically for anonymous or guest access. Report it even when the instance is patched, because "guest can see graphs" has a way of becoming "guest can reach the poller" in the next release that nobody reads the changelog for. And when testing Cacti in a client environment, keep to the conceptual chain and confirm the guest setting rather than firing a public exploit at a production box. Proving a monitoring server can run your commands isn't worth knocking over the system that tells the client their network is up.

The bigger lesson is about trust boundaries inside an application. Cacti validated input where input arrived and trusted it everywhere after that. Data that came from the database was treated as clean, and a command string that came from a table was treated as safe to execute. Those are the same assumption made twice. Any codebase that stores user preferences and later builds queries or commands from them deserves a second look this week, not only Cacti.

Check whether guest access is enabled on every Cacti instance you run tonight. It takes about two minutes per server, and it's the difference between a tidy weekend and a credential rotation project.

References

The Hacker News. (2026, November 27). Unpatched Cacti zero-day enables RCE in just four HTTP requests via guest access. https://thehackernews.com/2026/11/unpatched-cacti-zero-day-enables-rce-in.html

IONIX. (2026, June 25). CVE-2026-39938: Unauthenticated LFI / remote code execution in Cacti 1.2.30 and prior. https://www.ionix.io/threat-center/cve-2026-39938/

Son, D. (2026, November 26). Cacti unauthenticated RCE zero-day (4HTTP2ROOT): PoC published. SecurityOnline. https://securityonline.info/cacti-zero-day-rce-4http2root-poc/