4HTTP2ROOT or 4HTTP2SHELL lets an anonymous attacker run shell commands on a Cacti server in four HTTP requests, but only when the Cacti guest user is turned on. There is no CVE, no advisory and no packaged release yet. Cacti committed a fix to the 1.2.x and develop branches on 28 November 2026. On 26 November 2026 a researcher who writes as ek0ms savi0r published a four-request chain against Cacti Core 1.2.31 with a working proof of concept. I read the write-up, then read the Cacti source at the 1.2.31 tag and the fix commits that landed about a day later. This post is what the code says, what the fix closes, what it leaves open, and how to find out if someone already used it on your server. With guest access on, an anonymous visitor needs four HTTP requests. Cacti’s own advisory, GHSA-5×85-g4vc-gq53, adds that any logged-in Normal User can exploit it too, so turning guest off is not enough. The fix is committed on all three branches and will ship in 1.2.32, which is not released. There is no CVE. Six offensive proofs of concept are public, and Previdian logged 1,841 exploitation attempts from 111 IP addresses between 27 and 30 November, with no confirmed command execution.

4HTTP2ROOT Cacti Guest Zero-Day
Date (UTC) Update
3 Dec 2026 Added the 3 December 1.2.x commit that disables stacked SQL statements, the 1 December realm-check backport to the 1.2.31 branch, exact upload times from the researcher’s repository, Previdian’s count of 1,841 attempts from 111 IP addresses, the NSFOCUS advisory and its errors, a sixth offensive PoC, the vendor’s updated workarounds, and a path-settings hunt.
30 Nov 2026 Cacti published GHSA-5×85-g4vc-gq53, which adds a logged-in Normal User path, so turning guest access off is no longer enough. Added the first fix commit on the 1.2.31 branch, exploitation reports, five public offensive PoCs, two wrong CVE IDs in circulation, CISA KEV 2026.11.30, an admin-realm hunt, and the redrawn timeline, decision path and reachability graphics.

What is 4HTTP2ROOT?

It is a stored, second-order SQL injection that ends in command execution. A guest saves text where Cacti expects a page size. A later page builds a SQL LIMIT clause from that saved text, and the database runs a second statement that rewrites a poller command. A realtime graph request then runs that command through popen().

4HTTP2ROOT: Attack Path

4HTTP2ROOT: Root cause

The researcher describes four stacked failures. All four hold in release/1.2.31. I found a fifth that explains why a guest can reach the realtime poller at all, and the 1.2.32 changelog now lists it as its own security fix.

  1. Guest pages skip the realm check. In include/auth.php, a page that sets $guest_account = true returns before the realm permission lookup. auth_profile.php, graph_view.php and graph_realtime.php all set it, and graph_realtime.php in 1.2.31 has no realm or graph check of its own. The unreleased 1.2.32 changelog fixes this under GHSA-4rmr-wvjq-qxc2.
  2. Any value goes into a numeric setting. auth_profile.php?action=update_data checks that the setting name exists in $settings_user and then stores the value with a prepared REPLACE. The storage is safe. Nothing checks that preview_graphs_per_page is a number. A Normal User holds the Update Profile realm by default, which is why the advisory rates this as a logged-in attack.
  3. The stored default skips request validation. html_graph_validate_preview_request_vars() declares graphs with FILTER_VALIDATE_INT and a default of read_user_setting('preview_graphs_per_page', 20). When the request carries no graphs parameter, validate_store_request_vars() copies the default in without filtering it.
  4. The value is concatenated into SQL. graph_view.php builds $limit from graphs and page, and get_allowed_graphs() appends LIMIT $sql_limit. The advisory title confirms stacked queries.
  5. A database row becomes a shell command. cmd_realtime.php passes poller_item.arg1 to exec_poll(), which calls popen(). cmd.php does the same for every script data source on every polling cycle.

I reproduced one link in PHP 8.3 by multiplying the poisoned value raises A non-numeric value encountered and produces a LIMIT string that starts 0,1;UPDATE. Cacti’s error handler logs that warning to cacti.log, so this is the cheapest detection you have. the same code sits at line 487 and line 1478. My reading is that the lab ran the development branch. The code pattern is identical in the 1.2.31 tag, so I still treat 1.2.31 as affected, but nobody has published a test on the packaged 1.2.31 release.

Which Cacti versions are affected?

I checked every release/1.2.x tag from 1.2.10 to 1.2.31. All 22 carry the same three pieces: the unvalidated update_data write, the setting-backed default, and the concatenated preview LIMIT. That is a code match, not a lab test, and older releases have other guest holes on top.

Build Version Status Watch out
Upstream release 1.2.31 (15 June 2026) Affected, guest on 1.2.31 was the fix for June’s guest pre-auth SQL injections. Upgrading for those did not cover this.
Upstream 1.2.x branch 1.2.32-dev before 49fd19b Affected (researcher lab) The 6 November POST and CSRF backport does not help. The guest owns a valid token.
Upstream 1.2.x branch 49fd19b and later Fixed in source No tarball. Eight files change; test before deploying.
Upstream develop e23470d81 and later Fixed in source Same fix, develop line.
Older upstream 1.2.10 to 1.2.30 Same code Also open to the June 2026 advisories.
Debian bullseye 1.2.16, bookworm 1.2.24, trixie 1.2.30, forky and sid 1.2.31 Same code, no distro fix No CVE, so no tracker entry will appear yet.
Fedora EPEL EPEL 8 and 9: 1.2.30 Same code, no distro fix Also older than the June fixes.
Ubuntu Focal 1.2.10; newer series not checked Same code where 1.2.x I did not confirm the current series.

What the fix closes and what it leaves

Cacti fixed this in three branches within about 25 hours of the first commit: 8910e2aa4 on the 1.2.31 maintenance branch (28 November, 00:24 UTC), then e23470d81 on develop and 49fd19b on 1.2.x an hour later. The 1.2.x commit returns 403 to guest writes on the profile and realtime endpoints, validates every numeric user setting against its schema, clamps graphs and page to integers before the LIMIT is built, and adds is_graph_allowed() before realtime runs the poller. On 1 December the 1.2.31 branch also received the realm-check fix, so guest and Basic Auth sessions now go through per-page realm authorization there (507fb7312). The advisory followed on 29 November, crediting amdadulbari as reporter. Whether that report predates the public write-up, I do not know.

On 3 December the 1.2.x branch went one step further. Commit 8ed545f43 turns off stacked statements on the MySQL connection, and its message names the escalation this chain depends on: an injected second statement that rewrites a setting such as path_rrdtool or path_php_binary, which the poller later runs. On 1.2.x, any SQL injection left in the code is now limited to a single statement. The 1.2.31 branch and develop do not have that change yet, and on every branch exec_poll() still hands poller_item.arg1 to a shell. The 1.2.32 changelog carries 97 security entries, one titled “Break the View-Graphs to poller remote code execution chain” (GHSA-2p3x-f5jm-rg6p).

What an attacker needs in Cacti 1.2.31

  • Hold in 1.2.31: 6conditions 3 to 8
  • Removed on every branch: 4conditions 3, 4, 5 and 7
  • Removed on 1.2.x only: 16 stacked statements, since 3 December
  • Unchanged: 18 popen
  • Your own controls: 21 network access, 2 guest off (anonymous path only)

Eight conditions that must all hold, from the network to popen()

Source: my reading of release/1.2.31, GHSA-5x85-g4vc-gq53 and the fix commits through 3 December 2026

Patching does not clean up. A changed poller_item row stays in the database after you apply the fix, and my reading of cmd.php is that the regular poller runs a script item every cycle. Rebuild the poller cache after you patch. Four of the six offensive proofs of concept on GitHub advertise a web shell, and the researcher’s own variant writes a PHP file and then restores the poller row to a benign value. That leaves the database looking clean while a web shell stays on disk, through both the database cleanup and the poller-cache rebuild. Check the filesystem, and check for accounts that gained admin realms and for rewritten path settings.

h the database cleanup and the poller-cache rebuild. Check the filesystem, and check for accounts that gained admin realms.

How hard is it to exploit 4HTTP2ROOT?

4HTTP2ROOT

  • Four plain HTTP requests, no race, no memory layout high: Six offensive PoCs public by 1 December, one built for mass exploitation high: 1,841 attempts from 111 IP addresses in four days, per Previdian honeypots high: Any logged-in Normal User can exploit it, per the vendor advisory mid: Unauthenticated use still needs Guest User assigned to a real account (the default is No User) outcome: Shell as the web or poller account, or administrator rights in Cacti. Access to config.php and every stored SNMP and device credential.

Easy, and now tooled

Mass exploitation against guest-enabled servers; targeted use by any account holder

Exploit difficulty, my assessment as of 3 December 2026

I could not validate how many internet-facing Cacti servers have guest access on. The logged-in path changes who should care about this vulnerability. Any setup that allocates Cacti accounts to contractors, NOC staff or other teams has a reachable attack surface even with guest off.

4HTTP2ROOT Timeline

The injection pattern has shipped in Cacti releases for at least 2,468 days, since 1.2.10 was tagged on March 1, 2020. Seven days after the public write-up, there is still no packaged fix. The first fix commit came 47 hours after the write-up and 31 hours after the exploit code, and Previdian saw the first attack about 15.5 hours after the exploit code went up.

4HTTP2ROOT timeline in days

  • Injection pattern in Cacti releases: 2468Mar 1, 2020 to Dec 3, 2026
  • Latest release 1.2.31 affected: 171Jun 15, 2026 to Dec 3, 2026 group: max=10
  • Write-up to first fix commit: 2Nov 26 to Nov 28, 2026
  • Write-up to vendor advisory: 3Nov 26 to Nov 29, 2026
  • Write-up with no packaged fix: 7Nov 26 to Dec 3, 2026, and counting
  • Days in CISA KEV: 0Not listed as of KEV 2026.11.30

As of December 3, 2026. 1.2.10 is the oldest release I checked; the pattern may be older.

Sources: Cacti git history and releases, GHSA-5x85-g4vc-gq53, CISA KEV 2026.11.30 4HTTP2Root CVE Timeline

The write-up went public on 26 November with no vendor notice reported. watchTowr’s FAQ followed at 20:09 UTC. Cacti committed fixes at 01:24 and 01:28 UTC on 28 November, between 29 and 49 hours later, depending on the hour of publication, which nobody has stated. CISA KEV release 2026.11.27 does not list it, and nobody has reported exploitation. Chronologically, this is the chain of events:

Date Event Source
December 3, 2026 Still no CVE and no 1.2.32 release Cacti releases, GHSA-5×85-g4vc-gq53
December 3, 2026 1.2.x disables stacked SQL statements on the database connection (8ed545f43, 04:04 UTC) 8ed545f43
December 1, 2026 1.2.31 branch: guest and Basic Auth sessions now pass the realm check; realtime hardened (507fb7312, 20:30 UTC) 507fb7312
December 1, 2026 Sixth offensive PoC repository appears (13:13 UTC) GitHub repository creation time
December 1, 2026 NSFOCUS advisory scores it CVSS 9.8, cites no CVE or GHSA, and says no fix exists NSFOCUS
December 1, 2026 Previdian updates its count: 1,841 attempts from 111 IP addresses, 27 to 30 November; no confirmed command execution Previdian
November 30, 2026 CISA KEV catalog 2026.11.30 does not list it CISA KEV
November 30, 2026 Fifth offensive PoC repository appears on GitHub (08:53 UTC) GitHub repository creation time
November 29, 2026 Cacti publishes GHSA-5×85-g4vc-gq53: any logged-in Normal User, CVSS 3.1 8.8, fixed in 1.2.32 GHSA-5×85-g4vc-gq53
November 29, 2026 watchTowr changes its status to In The Wild, citing a November 27 capture watchTowr FAQ
November 28, 2026 Further security hardening backported to the 1.2.31 branch (ef7009f24, 18:32 UTC) ef7009f24
November 28, 2026 Fixes land on develop (e23470d81, 01:24 UTC) and 1.2.x (49fd19b, 01:28 UTC) e23470d81, 49fd19b
November 28, 2026 First fix commit, on the 1.2.31 branch (8910e2aa4, 00:24 UTC) 8910e2aa4
November 27, 2026 CISA KEV catalog 2026.11.27: not listed (18:03 UTC) CISA KEV
November 27, 2026 First attacks on Previdian honeypots at about 08:48 UTC: 22 time-based SQL injection payloads, then attempts to change Cacti configuration Previdian
November 27, 2026 Researcher renames the write-up to 4HTTP2SHELL (02:29 UTC) Researcher repository commit history
November 27, 2026 Four third-party PoC repositories appear, one built for mass exploitation (09:13 to 18:18 UTC) GitHub repository creation times
November 26, 2026 watchTowr FAQ published (20:09 UTC) watchTowr FAQ
November 26, 2026 Exploit script, transcript and video uploaded (17:19 UTC) Researcher repository
November 26, 2026 ek0ms savi0r uploads the 4HTTP2ROOT write-up (01:34 UTC); no vendor report first, by the author’s account Researcher repository
November 6, 2026 POST and CSRF backport on 1.2.x (e0c162da9); does not stop this chain e0c162da9
June 15, 2026 1.2.31 released: fixes the June guest SQL injections, still carries this bug Cacti releases
March 1, 2020 1.2.10 tagged: oldest release I checked that carries the injection pattern release/1.2.10

What should Cacti owners do first?

  1. Set Guest User to No User (impact: medium). Console > Configuration > Settings > Authentication. Wall displays lose anonymous access; give them a named read-only account.
  2. Restrict the web interface (impact: medium). VPN or an IP allowlist in front of Cacti. This also covers the next SQL injection.
  3. Patch (impact: medium to high). Apply 49fd19b to a 1.2.31 source install after testing, or wait for 1.2.32. Distro users have no package yet, so steps 2 and 3 are the control.
  4. After patching (impact: medium). Rebuild the poller cache, clear sessions, and confirm a guest gets 403 on update_data.
  5. If you find a poisoned row (impact: high). Isolate the host. Rotate SNMP communities, device and SSH credentials, the database password and mail relay credentials. Look for pivots from the Cacti host into management networks.

Detecting 4HTTP2ROOT Exploitation Attempts

The full Sigma, Zeek and ModSecurity bodies are in my Sigma repository.

  • cacti.log: A non-numeric value encountered in graph_view.php on PHP 8, or A non well formed numeric value encountered on PHP 7. High fidelity.
  • Database: any numeric setting in settings_user that is not an integer, and any script poller_item whose arg1 points outside the scripts directory or carries shell syntax. poller_item.last_updated moves on update, which helps date the write.
  • Process: /bin/sh started by php poller_realtime.php or cmd.php without /scripts/ in the command line.
  • Filesystem: a new .php file under the Cacti webroot written by the web server or poller account, not by a package manager. This catches the web-shell variant, which no database query will show after the attacker restores the poller row. An auditd watch on the webroot and a Sigma file-creation rule are in the repository.
  • Web and Zeek: a client that hits auth_profile.php with action=update_data and then graph_realtime.php?action=init without ever posting to auth_login.php. Hunting only: the Cacti front end puts action=update_data in the URL for normal profile edits too.
  • ModSecurity: deny update_data when the setting is one of the 23 numeric names from the fix and the value is not an integer.

FAQ

Is my Cacti server vulnerable to 4HTTP2ROOT?

Yes if it runs 1.2.31 or earlier and either guest access is on or untrusted people hold Cacti accounts. Any logged-in Normal User can exploit it; guest access makes it unauthenticated.

Is there a patch for 4HTTP2ROOT?

The fix is committed to the 1.2.31, 1.2.x and develop branches and will ship in Cacti 1.2.32, which is not released as of 3 December 2026. Cacti tracks it as GHSA-5×85-g4vc-gq53.

Does turning off the guest account protect me?

Only from anonymous attackers. Also restrict the Update Profile realm for accounts you do not fully trust, which is Cacti’s own workaround, and put the web interface behind a VPN or allowlist.

Is 4HTTP2ROOT exploited in the wild?

Exploitation attempts are reported: Previdian logged 1,841 attempts from 111 IP addresses between 27 and 30 November, and watchTowr lists it as in the wild. No confirmed compromise has been published, and it is not in CISA KEV as of catalog 2026.11.30.

Does 4HTTP2ROOT give root?

It gives whatever account runs the Cacti web server and poller, or administrator rights inside Cacti. That is root only if you run them as root.

Does it have a CVE?

No. CVE-2026-132165 and CVE-2026-39893 are sometimes attached to it, but the first is a Drupal flaw and the second is an earlier Cacti bug fixed in 1.2.31.