Every write-up of the Cacti 4HTTP2SHELL chain this week closed on the same instruction: turn off the guest account. That instruction is right, and it covers about half of the problem. Cacti published its own advisory for the underlying bug on November 29, and the vector string reads PR:L - privileges required, low. Low, not none. A guest user is one way to hold a Cacti session. Every ordinary account on your server is another, and those keep working after guest is gone.
GHSA-5x85-g4vc-gq53 is rated High, CVSS 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), affects Cacti 1.2.31 and earlier, and carries no CVE identifier at all. It names its patched version as 1.2.32. That release does not exist. The releases page still lists 1.2.31 from June 15, and the repository has no release/1.2.32 tag. The code is merged. The download is not.
If you do not run Cacti, nothing here is yours. If you do, sort your instances into three piles. Internet-reachable with a guest user enabled is an incident-response question rather than a patching one, and you should assume somebody sent four requests at it while the office was closed. Internal-only, no guest user, three admin accounts, all of them yours: a Monday ticket. In between sits the case most teams are in, an internal box a dozen people sign in to, where the attack needs a session you already issued.
What the advisory actually describes
The write happens at auth_profile.php?action=update_data, which stores a posted value for any key present in $settings_user after checking only that the setting name exists. Nothing checks its type. The advisory is explicit that this path skips both the numeric reset inside save_user_settings() and the is_view_allowed('graph_settings') permission check that the normal settings form goes through.
The stored value comes back on the graph preview page. preview_graphs_per_page supplies the default for the graphs request variable, and a default skips the input filter that a submitted value would have to pass. graph_view.php builds its $limit string out of that value, PHP's numeric conversion leaves the injected text in place, and get_allowed_graphs() in lib/auth.php concatenates $limit into a query that was never prepared. The database handle keeps PDO's default settings, which permit multiple statements, so an appended statement executes. Cacti's own proof of concept confirmed an injected timing delay on 1.2.31.
Two realms are required: realm 7, View Graphs, and realm 20, Update Profile. Both ship in the default Normal User permission set, which is the point. From there the advisory describes read and write access to the entire Cacti database as the application's database user, privilege escalation to administrator by granting console realms, and then command execution through administrative features that exist to run commands - data input methods, plugins, path settings.
A researcher credited as amdadulbari reported this privately on November 19. The public chain, published November 26 as 4HTTP2ROOT or 4HTTP2SHELL, bolted guest access and realtime graph handling onto the same injection and shipped a working exploit. The fix was already in flight when the zero-day coverage began.
Why turning off guest only closes the fast path
Cacti's guest user is a real named account the server hands to anonymous visitors. Switch it on and an unauthenticated request arrives holding that account's realms. Because the default Normal User set includes realm 7 and realm 20, a guest user downgrades this bug's precondition from "an account" to "a TCP connection." That is why the public chain needs no credentials, and why disabling guest was the right first move.
Set Guest User to No User and the precondition goes back to holding an account. Now count how many of those exist on each instance. In the small environments I look at, the answer is always higher than the admin expects: operations staff who only ever view graphs, a contractor who needed capacity data last quarter, the shared netops login. Each one carrying realm 20 is a path from read-only graphs to Cacti administrator, and from there to command execution on the host.
Three queries tell you where you stand. Adjust the path for your packaging.
# 1. Version, and whether anonymous visitors get an account
cat /var/www/html/cacti/include/cacti_version
mysql cacti -e "SELECT name, value FROM settings WHERE name='guest_user';"
# 2. Every enabled account holding BOTH realm 7 and realm 20
mysql cacti -e "
SELECT ua.id, ua.username, ua.realm, ua.enabled
FROM user_auth ua
JOIN user_auth_realm r7 ON r7.user_id = ua.id AND r7.realm_id = 7
JOIN user_auth_realm r20 ON r20.user_id = ua.id AND r20.realm_id = 20
ORDER BY ua.username;"
# 3. Tamper check: numeric preferences holding non-numeric values
mysql cacti -e "
SELECT user_id, name, value FROM settings_user
WHERE name IN ('preview_graphs_per_page','treeview_graphs_per_page',
'realtime_interval','min_tree_width','max_tree_width','page_refresh')
AND value NOT REGEXP '^[0-9]+$';"
Query 2 is your exposure count. Query 3 returning a single row is an incident: those settings are integers in every legitimate code path, so a string in one of them means somebody wrote through the unvalidated endpoint. A guest_user value other than 0 or empty means the unauthenticated version was reachable, whatever the realm count says.
The patch is merged and the release is not
Three changes landed across the project's branches, and the advisory names all three. PR #9013 merged into the 1.2.31 maintenance branch on November 28 as commit 8910e2a: shared guest sessions can no longer persist profile or graph preferences, individual preference updates must pass the graph-settings permission check, listed setting values are validated on both save paths, restored pagination values are normalized before the graph query is built, and profile changes now require a POST with a CSRF token.
PR #9014, commit 49fd19b, is the defense-in-depth pass on the 1.2.x branch: eight files, 643 lines added, a new lib/user_setting_validation.php that validates preference values against the $settings_user field schemas, csrf_require_post() on the update endpoint, an HTTP 403 on any mutation attempted by a guest account via cacti_user_is_guest_account(), and is_graph_allowed() enforced before the realtime poller executes anything. It also clamps ds_step through cacti_sanitize_realtime_interval() and wraps the realtime hash in cacti_escapeshellarg() before the shell call, which closes the second half of the public chain independently of the injection. PR #9015 carries the equivalent work into develop for 1.3.0.
What you can do with that depends entirely on how Cacti got onto the box. If you deploy from git and can test a build, the diff is reviewable today:
# Only where you already build Cacti from source and can stage a non-release build
git fetch origin '+refs/heads/*:refs/remotes/origin/*'
git log --oneline -1 8910e2aa42bf30d313bdce91c562cb377f3442eb
git diff --stat release/1.2.31..8910e2aa42bf30d313bdce91c562cb377f3442eb
git diff release/1.2.31..8910e2aa42bf30d313bdce91c562cb377f3442eb -- auth_profile.php graph_view.php lib/auth.php
Read that diff and test it against your plugin set before you apply it, because an unreleased commit is a change you own rather than one the project has shipped you. If Cacti came from a distribution package, a control panel or an appliance image, you cannot do any of this, and two compensating controls are the entire plan until a 1.2.32 tag appears: guest off, and the interface restricted to a management network or VPN.
The two advisories you can set aside
Cacti published three advisories on November 29, and the other two are backfill. CVE-2026-44481 (Moderate, 4.3) is a pre-authentication open redirect: link.php copies the HTTP Referer header into its Location: response header for any external_links id that does not exist, and sanitize_uri() strips special characters without checking scheme or host. Affects 1.2.0 through 1.2.30, fixed in 1.2.31.
CVE-2026-46530 (Moderate, 5.4) is stored cross-site scripting in the name parameter of the CDEF, VDEF and GPRINT preset save handlers. A user holding realms 10 and 14 plants script that runs in an administrator's browser the moment that administrator opens a graph template referencing the poisoned preset, and it forges a request granting the attacker realm 1, Users and Groups. Affects 1.2.30 and earlier, also fixed in 1.2.31.
If you are on 1.2.31, both are already closed and neither needs a minute of your weekend. They matter as a reading of where you are: an instance still on 1.2.30 or older carries these two plus the June 2026 batch, which included critical pre-authentication SQL injection in graph_view.php. On those hosts the realm audit is beside the point and the upgrade to 1.2.31 is the work.
What a Cacti box is worth to whoever gets it
A poller is positioned to reach everything by design. Firewall rules from the monitoring segment to routers, switches, firewalls and hypervisors are open because polling does not work otherwise. The host stores the credentials it needs to use that reach: database credentials in include/config.php, SNMP community strings, SNMPv3 authentication and privacy passwords, logins for any scripted data input. Command execution as the web or poller account reads all of it, which is why the argument over whether the researcher got root matters less than it sounds.
Two other properties make it a good place to sit. Polling traffic is high-volume and expected, so an extra session leaving that host blends into a pattern nobody inspects. And the poller is the instrument you would use to notice any of this; whoever controls it controls what your graphs say. The Cloud Security Alliance's note on this week's chain reaches back to CVE-2022-46169, which CISA added to the Known Exploited Vulnerabilities catalog in February 2023: a Censys sweep then found roughly 6,400 internet-reachable Cacti hosts, 26 of them on a patched version.
If query 3 hit, or the sequence below shows up in your access logs, treat the host as compromised. Isolate it, leave it powered for forensics, rotate every SNMP community, SNMPv3 credential and scripted-input login the instance held, and review device and firewall logs for sessions from the Cacti host after November 26. Rebuild from a clean image, restoring RRD files and a reviewed database export rather than the filesystem.
# Clients that wrote a profile setting, then look for the rest of the chain
awk '/auth_profile\.php/ && /update_data/ {print $1}' \
/var/log/apache2/access.log* | sort -u > /tmp/cacti-writers.txt
grep -F -f /tmp/cacti-writers.txt /var/log/apache2/access.log* \
| grep -E 'graph_view\.php\?[^ ]*action=preview|graph_realtime\.php\?[^ ]*action=init'
# Cacti's own log complains when a display value is not numeric
grep -i 'non-numeric' /var/www/html/cacti/log/cacti.log
One client IP producing all three requests inside a ten-minute window is the signature. Authenticated users and scanners both generate pieces of it, so treat the sequence as the finding and the single request as noise.
Thin out realm 20 before 1.2.32 ships
Today, do three things. Set Guest User to No User everywhere. Run the realm query and take realm 20 off every account with no business editing its own profile, which on a monitoring server is most of them. Then restrict the interface to a management network or VPN. None of that fixes the injection, and all of it removes the people who could reach it. When the 1.2.32 tag appears, upgrade and put the realms back if you miss them.
The exercise most teams skip is knowing what each management host can reach and what it has stored, before a bug in it becomes the week's news. We review monitoring and management planes the way an attacker reads them: network reach, stored credentials, and who holds the permissions that get to both. If you want a second set of eyes on yours while this one is unpatched, it is a short conversation.
Want a second set of eyes on your monitoring plane?
We assess the management and monitoring hosts that reach everything else: what they can talk to, which credentials they store, and who holds the permissions that get to both. Book a session to walk through yours.
