Cacti
Cacti 4HTTP2ROOT
Patch now if…Exploited. No login if guest access is turned on.
TL;DR
Cacti, a network monitoring tool, has a bug letting any user with default rights become admin and run commands, or anyone if guest access is turned on. It's exploited, with public exploit code. No release fixes it: apply Cacti's patch, turn guest off.
More details
The attacker saves a crafted "graphs per page" preference, which Cacti later pastes into a database query (SQL injection); from there they make themselves admin, or plant a command that Cacti's realtime graph page runs. Despite the name, commands run as the user behind Cacti's web server and poller, often not root. amdadulbari reported the logged-in bug to Cacti on 19 Nov, which rates it 8.8 (high); a researcher called ek0ms savi0r published the guest chain on 26 Nov, and watchTowr saw attacks on 27 Nov. Cacti stores SNMP strings and device logins, so a break-in can reach well beyond the Cacti server.
How scary is it?
Are you affected? only if all are true
1Cacti 1.x up to 1.2.31, unpatched
Cacti's advisory lists every release up to 1.2.31; watchTowr lists only 1.2.31, but the public exploit also worked on 1.2.22. Its author says 0.8.x doesn't have the vulnerable code. The fix will be in 1.2.32, which isn't out yet: 1.2.31 (15 Jun 2026) is the newest release. If you applied Cacti's 1.2.31 patch (commit 8910e2a), you're not affected. Your version is in include/cacti_version in the Cacti folder, but that file doesn't change when you patch: the patch adds a function called cacti_graph_pagination to lib/functions.php.1,2,3,4,6,8,10
2Someone untrusted can view graphs
With guest access on, anyone who can load Cacti counts, no login needed, as long as the guest account can still use graph preview, which it can by default; the exploit's author says revoking that breaks the no-login attack. It's on when Guest User under Console → Configuration → Settings → Authentication names an account; Cacti ships with guest access disabled. With guest access off, an attacker needs an account with View Graphs and Update Profile, which every Normal User has by default.1,2,5,7,8
3Attackers can reach the web interface
The whole attack runs over Cacti's normal web pages. watchTowr says the risk is highest when they're reachable from untrusted networks.1,2
What to do
1Apply Cacti's patch nowcommand
1.2.32 will include the fix, but Cacti gives no date. Until then, Cacti says to apply its patch to 1.2.31 with these commands (it also applies to the original 1.2.31 release). Cacti's patch steps are for 1.2.31, so on an older release we'd update to 1.2.31 first. Update to 1.2.32 when it ships.1,4
curl -fsSLO https://github.com/Cacti/cacti/commit/8910e2aa42bf30d313bdce91c562cb377f3442eb.patch
cd /path/to/cacti
patch -p1 < /path/to/8910e2aa42bf30d313bdce91c562cb377f3442eb.patch Latest safe versions checked 3 Dec
2Turn guest access off
Set Guest User to No User under Console → Configuration → Settings → Authentication. Cacti says this blocks the no-login attack. It's quicker than patching, so we'd do it first and leave it off unless you need it.1,2
3Limit who can reach it
Put the web interface behind a VPN or an allowlist, and until you've patched, take Update Profile away from accounts you don't trust.1,2
4Look for a break-in
Cacti says to check the settings_user table for non-numeric values in numeric preferences: preview_graphs_per_page, treeview_graphs_per_page, realtime_interval, min_tree_width, max_tree_width and page_refresh. Finding none doesn't rule out a break-in: the public exploit puts that setting back by default, but leaves its rewritten poller entry and the .php file it drops, on a stock install in Cacti's cache/ folder. Also look for log warnings about a non-numeric value in a graph display setting, poller entries with commands you didn't set up, and new files written by the poller. If you find any, we'd treat the server as compromised and change the SNMP strings and device logins stored in Cacti.1,2,8
This page shows you how to check. It can't tell you you're safe.
Sources (10) and changelog
- GitHub: Cacti advisory GHSA-5x85-g4vc-gq53, affected and fixed versions, how it works, patches, workarounds, credit 29 Nov
- watchTowr: 4HTTP2ROOT FAQ, exploited in the wild, guest chain, signs of compromise 28 Nov
- GitHub: Cacti releases, newest is 1.2.31 15 Jun
- GitHub: Cacti pull request #9013, the 1.2.31 patch, also applies to the 1.2.31 release 28 Nov
- Cacti docs: User Management, guest access is disabled by default
- GitHub: Cacti 1.2.31, include/cacti_version
- GitHub: Cacti commit 49fd19b, hardening on the 1.2.x branch for guest writes and realtime graphs 28 Nov
- GitHub: thiscitze/cacti-4http2shell, a public no-login exploit through guest access 27 Nov
- CISA KEV catalog: not listed
- GitHub: Cacti commit 8910e2a, the 1.2.31 patch, adds cacti_graph_pagination to lib/functions.php 28 Nov
- Published.