Cacti 4HTTP2SHELL Zero-Day Now Exploited: Advisory GHSA-5x85-g4vc-gq53 (CVSS 8.8) Confirms Guest-to-Shell Chain, Patch for 1.2.31 Out but 1.2.32 Not Yet Released — Disable Guest Access

Cacti has published an advisory and source patches for the publicly released 4HTTP2SHELL chain, which turns an enabled guest account into command execution and is now reported exploited, while the fixed 1.2.32 release has yet to ship.
The Cacti project has published an official advisory for the "4HTTP2SHELL" zero-day (also called "4HTTP2ROOT"). This is the four-request exploit chain that went public on 26 November and lets anyone run commands on a Cacti monitoring server when its guest account is enabled. The advisory is GHSA-5x85-g4vc-gq53, rated CVSS 8.8 (High) and not yet given a CVE ID. It went live at 04:32 Mauritius time on 29 November (00:32 UTC). It confirms the root cause, lists patches for three code branches and gives workarounds. There is one catch: the fixed release, Cacti 1.2.32, has not shipped yet.
The threat has also grown. Security researchers who track the flaw now report exploitation in the wild, with activity first captured on 27 November. Until 1.2.32 is out, administrators need to apply a source patch or close the entry point themselves.
What Happened
On 26 November, a researcher posted a working proof of concept to GitHub. It turned a default-permission Cacti guest session into operating-system command execution in four HTTP requests. By their own account, the researcher did not tell the Cacti team first, so for about two days there was no CVE, no advisory and no patch.
The Cacti advisory shows the developers were not starting from zero. The core bug, an unvalidated user-profile setting that reaches a SQL query, was reported to them privately on 19 November by a different researcher. The public exploit then "chained this user-setting validation flaw with Guest access and realtime graph handling", in the advisory's words.
Fixes were merged quickly:
- PR #9013, a maintenance patch for the 1.2.31 release tag, was merged at 04:24 Mauritius time on 28 November (00:24 UTC).
- Defence-in-depth patches for the 1.2.x and develop (1.3.0) branches were merged about an hour later.
- The advisory itself followed early on 29 November.
At the same time, the project published six more advisories for older flaws that were already fixed in Cacti 1.2.31 (June 2026). That release is now the minimum safe base for anyone patching.
Technical Details
According to the vendor advisory, the bug starts in auth_profile.php?action=update_data. This AJAX endpoint saves user-profile settings and stores the posted value "without any validation". The normal settings form resets non-numeric values to their defaults, but this path skips that step.
The setting that matters is preview_graphs_per_page. On the graph preview page, Cacti uses it as the default page size. When that default is applied, the integer filter never runs. The value is then pasted into the LIMIT clause of an unprepared query in get_allowed_graphs().
The database connection leaves PDO's emulated prepares and multi-statement support switched on. That means an attacker can append whole extra SQL statements, not just tamper with one query. The advisory says the result is "read/write access to the entire Cacti database", which leads to administrator takeover and, through normal admin features, command execution.
The vendor says the attack needs only the "View Graphs" and "Update Profile" permissions, and both are in Cacti's default "Normal User" set. The public chain goes further and runs everything through the unauthenticated guest session. Based on researchers' reconstructions, the four steps are:
- Open the profile page to get a guest session and CSRF token.
- Store a crafted value in the page-size setting.
- Load the graph preview page, which runs the injected SQL and rewrites a poller item's command arguments.
- Start the real-time grapher, which passes those arguments to the poller's command execution.
Commands run as the account behind Cacti's web server and poller, usually www-data or apache. Reports of root access came from a lab install where Cacti ran as root. Even without root, a monitoring server is a valuable foothold. Cacti stores SNMP and device credentials and usually has network reach into segments that are otherwise closed off.
Who Is Affected
- Unauthenticated attackers: any Cacti instance with the guest account enabled and the web interface reachable. The public chain was tested on Cacti 1.2.31. Guest access has been off by default since version 0.8.7, so the risk depends on whether an administrator turned it on, which is common for public "wallboard" graph pages.
- Logged-in users: the vendor lists all versions up to and including 1.2.31 as affected by the underlying flaw. Any account with the default Normal User rights can escalate to administrator.
- Older installs: systems below 1.2.31 also carry the six other flaws disclosed on 29 November. These include an authenticated remote code execution bug through host variable injection (CVE-2026-39949, CVSS 7.2), a reports IDOR (CVE-2026-40081, CVSS 7.1) and an
ORDER BYSQL injection (CVE-2026-40078).
Patch Status
The fix will be part of Cacti 1.2.32, which had not been released at the time of writing. For now, the vendor publishes source patches:
- 1.2.31 maintenance patch: commit 8910e2aa (PR #9013)
- 1.2.x branch: commit 49fd19b5 (PR #9014)
- develop (1.3.0): commit e23470d8 (PR #9015)
Besides validating the setting, the develop patch requires POST for profile changes, blocks the guest account from changing profile, 2FA and real-time settings, and checks graph permissions before the real-time poller runs.
The advisory gives these steps for applying the 1.2.31 patch:
curl -fsSLO https://github.com/Cacti/cacti/commit/8910e2aa42bf30d313bdce91c562cb377f3442eb.patch
cd /path/to/cacti
patch -p1 < /path/to/8910e2aa42bf30d313bdce91c562cb377f3442eb.patch
If you run a distribution package, check whether your vendor has backported the fix before patching files by hand.
What To Do Now
- Disable guest access now: go to Console › Configuration › Settings › Authentication and set Guest User to "No User". The vendor says this blocks the unauthenticated chain.
- Take Cacti off the internet. Put the web interface behind a VPN or an IP allowlist.
- Limit Update Profile (realm 20) for accounts you don't fully trust until you are patched.
- Upgrade to 1.2.31 first if you are on anything older, then apply the maintenance patch.
- Check that the web server and poller do not run as root.
- Hunt for signs of compromise. Look for non-numeric values in numeric preferences:
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]+$';
Also check:
- the
poller_itemtable for command arguments that don't match your data input methods - logs for warnings about non-numeric graph display values
- unexpected child processes of the poller
- new PHP files in the web root
- web logs for the sequence
auth_profile.php, thengraph_view.php?action=preview, thengraph_realtime.php?action=initfrom one source
If you find anything, treat the server as compromised: rebuild it, and rotate every SNMP community, device password and database credential Cacti held.
Why It Matters
This isn't the first time Cacti has become an urgent patch. The unauthenticated CVE-2022-46169 command injection was exploited in early 2023, when researchers counted about 6,400 internet-facing Cacti hosts and very few of them patched. Monitoring tools are attractive targets because they hold credentials and can reach almost every network segment, yet they are often left unpatched and exposed for convenience.
The handling here was mixed. Disclosing without telling the vendor gave defenders no warning. The Cacti maintainers merged fixes within about two days and documented them clearly. Still, three days after the exploit appeared there is no packaged release, so many administrators have to patch by hand or disable features to stay safe.
Sources
- Authenticated SQL injection via unvalidated profile setting — GHSA-5x85-g4vc-gq53 (Cacti, GitHub)
- fix(security): protect profile changes and graph pagination on 1.2.31 — PR #9013 (Cacti, GitHub)
- Authenticated Remote Code Execution via Host Variable Injection — GHSA-8522-5p3m-754c (Cacti, GitHub)
- 4HTTP2SHELL: Unpatched Cacti Zero-Day Turns Monitoring Servers into Pivot Points (Cloud Security Alliance)
