Back to Blog
CactiSQL InjectionVulnerabilitiesPatchingNetwork MonitoringAttack Surface

Cacti's guest view became a way in: turn it off now, because the fixed release isn't out yet

November 30, 2026
Assertive Infosec Team
Share

If you or your IT provider run Cacti to graph your network, check two things today: whether guest access is switched on, and whether the web interface can be reached from the internet. A public exploit published on 26 November turns a Cacti server with guest access enabled into a remote shell in four HTTP requests, without a login. Cacti has merged a fix, but the release that contains it, 1.2.32, hasn't shipped yet.

Cacti is the open-source monitoring tool that polls routers, switches, firewalls and servers and draws the traffic graphs you often see on an office wallboard. That's why it matters more than its size suggests. To do its job it stores SNMP community strings and other credentials for the devices it watches, so whoever controls the Cacti server has a good head start on the rest of the network.

What the flaw is

Cacti published its advisory, GHSA-5x85-g4vc-gq53, on 29 November. It's rated High, CVSS 3.1 score 8.8. No CVE ID has been assigned yet.

The root cause is ordinary input validation. Cacti's profile page saves a user's display settings without checking them. One of those settings, the number of graphs shown per page on the preview page, is later pasted into the LIMIT clause of a database query. Because the database connection accepts more than one statement at a time, a stored value like "10" followed by a second SQL statement gets run as well. This is a stored, or second-order, SQL injection: the payload goes in through one page and fires on another.

According to the advisory, any logged-in user with the default "Normal User" permissions can use this to make themselves an administrator, and from there run operating system commands through Cacti's own admin features.

Why guest access makes it worse

The advisory describes the logged-in case. The public exploit, published on 26 November by a researcher who didn't tell Cacti first, removes the need for a login. Cacti's advisory acknowledges this, saying the public "4HTTP2ROOT" / "4HTTP2SHELL" chain combined the flaw with guest access and realtime graph handling.

Cyber Kendra's walkthrough explains the four requests. A guest visitor gets a session from the profile page, saves the malicious "graphs per page" value, opens the graph preview page so the extra SQL runs and rewrites the command Cacti stores for one of its polled items, then calls the realtime graph page, which runs that command on the server.

Two things limit it:

  • Guest access is off by default. Cyber Kendra cites the Cacti documentation saying it has been disabled by default since version 0.8.7. It's often switched on for wallboards and shared dashboards, and watchTowr describes that setup as common.
  • The attacker gets the rights of the account running Cacti. The researcher's demonstration showed root, but BleepingComputer reports watchTowr's point that this depends on the setup, and is often a low-privileged web server account. That account can still read whatever credentials Cacti holds.

Is it being exploited?

BleepingComputer reported no exploitation as of 27 November. Cyber Kendra reports that security firm Previdian reproduced the exploit and saw the first attempts against its Cacti honeypots on 27 November. That's attempts against decoys, not confirmed compromises. CISA hasn't added it to its Known Exploited Vulnerabilities catalogue.

With working exploit code public, we'd expect that to change.

Which versions are affected

Cacti's advisory says 1.2.31 and earlier are affected, and the fix will be in 1.2.32. At the time of writing, 1.2.31 is still the latest release on Cacti's GitHub.

The fix has been merged into the 1.2.31 maintenance, 1.2.x and develop branches. For 1.2.31, Cacti publishes the patch commit and instructions for applying it by hand. BleepingComputer reports the Cacti team recommends testing the patch in a lab before putting it on a production server.

What to do now

  1. Find out whether you run Cacti. Ask whoever looks after your network monitoring. If an IT provider runs it for you, ask them in writing which version it is and whether guest access is on.
  2. Turn guest access off. Cacti says to set Guest User to No User under Console › Configuration › Settings › Authentication. It says this blocks the unauthenticated route, including the public exploit.
  3. Take it off the internet. Cacti says to put the web interface behind a VPN or an allowlist. As a starting point, check from outside your network that the login page doesn't answer, rather than assuming the firewall rule worked.
  4. Limit who can change their profile. Until you're patched, Cacti says to restrict untrusted accounts with the "Update Profile" permission (realm 20). Turning guest off doesn't stop a logged-in Normal User.
  5. Patch. Apply the published patch to 1.2.31 after testing it, or upgrade to 1.2.32 as soon as it's released.
  6. Check for signs it was already used. Cacti says to look in the settings_user table for non-numeric values in numeric settings such as preview_graphs_per_page. BleepingComputer adds reviewing poller configuration for unexpected commands and the logs for warnings about non-numeric values. If anything looks wrong, treat the server as compromised and change the SNMP strings and device credentials it holds.

Frequently asked questions

Which Cacti versions are affected by 4HTTP2SHELL?

Cacti's advisory says 1.2.31 and earlier are affected and the fix will be in 1.2.32, which hasn't been released yet. A patch for 1.2.31 is available from Cacti's GitHub.

Can attackers exploit it without a login?

Only if guest access is switched on. Cacti says disabling the Guest User blocks the unauthenticated route, including the public exploit. Without guest access, an attacker needs a normal user account.

Is the Cacti flaw being exploited?

No confirmed attacks have been reported. Security firm Previdian reported exploitation attempts against its Cacti honeypots on 27 November, and the exploit code is public.

What should we do if we can't patch yet?

Cacti says to set Guest User to No User, put the web interface behind a VPN or allowlist, restrict untrusted accounts with the Update Profile permission, and check the settings_user table for non-numeric values in numeric settings.

Technical References

Share

Ready to Secure Your Business?

Get a free security assessment from our experts.

Contact Us Today