Cacti 1.2.31 (4HTTP2SHELL, no CVE): second-order SQL injection and code execution through the guest account
Cacti 4HTTP2SHELL, no CVE: unauthenticated code execution through the guest account, public exploit since 26 November 2026. Affected versions, fix not yet in a release, how to check.

Context
A researcher publishing as "ek0ms savi0r" released an exploit for Cacti, the network monitoring tool, on 26 November 2026. The chain takes four HTTP requests, is called 4HTTP2SHELL (it was called 4HTTP2ROOT in the first version of the repository) and gives command execution on the server. It needs no credentials, on one condition: the Cacti guest account must be enabled.
The researcher did not warn the project before publishing, according to BleepingComputer and the Cloud Security Alliance note. There is no CVE and no official score to date.
The first articles, including the one from The Hacker News that put us on the trail, described a flaw without a fix. That was true on the 26th and the 27th. On 28 November at 00
UTC, a fix was merged into the1.2.31 branch of the Cacti repository, without a new release. The number on screen stays 1.2.31 before and after, and no release has been published since 15 June.
For an operator, that is the point that matters. An inventory tool that compares version numbers will not see the difference, and the absence of a CVE deprives it of any rule that would look for an identifier.
We did not read the exploit code or replay the full chain. We read the fix, built a lab from the upstream archives of Cacti 1.2.30 and 1.2.31 (with and without the fix, guest account enabled or not), checked the first step of the chain on each, and wrote a Nuclei template that only reads. The watchTowr FAQ, Previdian's analysis and RavenAI's summary covered the rest. The GBHackers page and the Cloud Security Alliance note repeat the same elements.
Technical sheet
| Item | Value |
|---|---|
| Identifiers | No CVE. Working names: 4HTTP2SHELL, 4HTTP2ROOT. Previdian tracking: VULN-2026-0010 |
| Component | Cacti Core, auth_profile.php, graph_view.php, lib/auth.php, graph_realtime.php, lib/poller.php |
| Class | Second-order SQL injection (stored value reused in a LIMIT clause), then command execution by the poller |
| Severity | No official score. watchTowr shows 0.0 as a default value; other sources say "critical" or "high" with no method |
| Affected versions | 1.2.31 (confirmed by the researcher). Earlier ones: not established. Lab: 1.2.30 accepts the first step |
| Fix | Pull request 9013, merged on 28 November 2026 into the 1.2.31 branch, no release published |
| Conditions | Guest account enabled, web interface reachable |
| Discovery | ek0ms savi0r, published without prior report on 26 November 2026 |
| Exploitation | SQL injection probes on honeypots on 27 November (Previdian), exploitation reported by watchTowr; absent from the CISA KEV catalog on 28 November |
The score deserves a remark. A 0.0 is not a severity judgment, it is the empty field of a form. Two articles say "critical" and "high" without writing a CVSS vector, and we do not repeat them.
We would treat the flaw as critical on any instance whose guest account is active and whose interface can be reached from a network the operator does not control. Unauthenticated command execution with a public exploit does not rank any other way.
Affected systems
The guest account
Cacti can serve its graphs without a login. The administrator designates an existing user as the guest, in the "Guest User" authentication setting, whose default value is "No User". As long as that setting stays at zero, an anonymous visitor sees only the login form.
We checked it in the lab, on the same version 1.2.31: with "No User", graph_view.php returns the login form; with the guest user designated, it returns the graph view to anyone. The two instances are otherwise identical.
A guest account is therefore not a configuration flaw as such. It is enabled on purpose, for example to show graphs on a wall display in the operations room, and the installation that forgot it did so is the one that ends up exposed.
Versions
The researcher only tested 1.2.31, the latest stable release, and the three analyses that mention it (watchTowr, Previdian, RavenAI) say the exact extent is not established.
We checked what we could without replaying the chain. On the 1.2.30 code (March 2025), the guest account stores a non-numeric value in its graph preferences, which the November fix refuses. That is the starting condition of the chain, not the chain. We do not know whether the rest works on 1.2.30 or on older versions, and we did not try.
For the 1.2.x line in general, we would therefore assume that an instance with an active guest is in scope until a reading of the code or the fix says otherwise.
What is not affected
An instance whose guest account is disabled cannot be reached by this chain. The analyses do not say an authenticated user can do nothing with it, and the fix also hardens the preferences of regular accounts, but we saw nothing that establishes it.
This flaw is distinct from the fixes in 1.2.28 and 1.2.29 (CVE-2025-66399, authenticated). GBHackers insists on the point, and we have no reason not to follow it.
How it works
This section stays at the level of public analyses. It is enough to understand where to look, not to reproduce anything.
The three sources describe the same chain, reconstructed from the exploit repository. It starts from a guest session, obtained without credentials, which stores a forged value in a graph display setting (the number of graphs per page). Cacti writes that value with a prepared statement, so there is no injection at that point, but it does not check that the value is an integer.
The preview view then reads the setting back and inserts it as is into the LIMIT clause of an SQL query. That is what makes the flaw a second-order injection: the data is harmless when it goes in and dangerous when it comes out. The database driver Cacti uses accepts stacked queries, and the stored value can then rewrite a command in the poller table.
The last step triggers the real-time graph, which runs that command with the web server's rights. These sources do not let us conclude that the path is the same on every installation: RavenAI only writes that the exploit worked on the researcher's lab.
The guest account is shared by all visitors. The forged value is stored once for that account, and every following visitor reads it: it persists in the database until someone removes it. That is worth remembering for the compromise hunt.
The divergence on the rights obtained is real. watchTowr writes that the account is "often a low-privileged web user", where Previdian and RavenAI describe a root shell, which came from the researcher's lab. We believe watchTowr: Cacti has no reason to run as root, but a web server account still reads include/config.php, hence the database credentials, and those Cacti keeps to poll the monitored devices.
The fix
The fix is pull request 9013, opened and then merged on 28 November into the 1.2.31 branch. A project developer, quoted by BleepingComputer, confirms that it fixes the flaw. It touches seven files, one of them a unit test, and works at three levels.
The first forbids the guest user from saving preferences: auth_profile.php only answers POST requests for write actions and refuses the guest with a 403. The second validates the value at write time, an integer for a numeric setting, a closed list for a drop-down. The third normalizes pagination at read time, before it reaches an SQL query.
We find this third level more significant than the others. The code comment says stored preferences "can predate validation at write time": a value planted before the update is neutralized when read. Without it, a database already poisoned would stay dangerous, which is not the case.
We applied the fix to the 1.2.31 of our lab. The guest gets a 403 when it tries to save a preference, where it succeeds without the fix. We did not replay the exploit against the fixed instance.
For an installation made from the upstream archive, the file has to be applied by hand. The project recommends testing it before production, and so do we: the release that contains this fix does not exist yet.
Checking a machine
Three questions: is the guest active, is the fix present, is a forged value already in the database.
# 1. Is the guest served without a login? 0 = yes (no login form)
curl -s https://cacti.example.org/graph_view.php | grep -c login_username
# 2. Is the fix in the code? 0 = no
grep -c cacti_user_can_save_own_settings /var/www/html/cacti/auth_profile.php-- 3. Guest setting (0 or absent = no guest) and non-numeric values
SELECT value FROM settings WHERE name = 'guest_user';
SELECT user_id, value FROM settings_user
WHERE name = 'preview_graphs_per_page' AND value NOT REGEXP '^[0-9]+$';The first check opens a guest session on the instance, which changes nothing. In the lab it returns 0 when the guest is active and 3 when it is disabled.
A row from the third query is a serious sign, not proof: it says a value that is not an integer was stored, and an exploit stores one.
From the outside
We wrote a Nuclei template, cacti-guest-4http2shell-flawfence, that does the first reading. It sends a single GET to graph_view.php (at the root, then under /cacti/), checks whether the graph view is served without a login and reads the version the page publishes. It sends no POST, does not touch auth_profile.php and writes no setting.
We verified it on the lab: it reports 1.2.31 with the guest active, 1.2.31 under /cacti/, 1.2.30 (under a distinct name, "version not confirmed"), and stays silent when the guest is disabled or when no Cacti answers.
It also reports the fixed 1.2.31, since the number does not change. A result is a candidate, to close with the second command above. We did not want to add a test that stores a value on the target to tell them apart: that is the first step of the chain.
Remediation
- Set "No User" as the guest user (Console, Configuration, Settings, Authentication). This is the measure that closes the path, without an update. The graphs served to the guest no longer are: a login will be needed, or another way to feed the wall display.
- Apply pull request 9013, or follow the
1.2.31branch, then re-read point 2 of the previous section. A prior test is needed, since the fix has not yet gone through a published release. - Restrict access to the web interface to an administration network or a VPN. A monitoring console has no reason to be on the Internet.
- Check that the web server and the poller do not run as root, and that
include/config.phpis readable only by them. - Watch for a 1.2.32 release or a CVE, neither of which we saw on 30 November.
The fix without closing the guest leaves the guest able to view graphs, which is an operating choice, not a defect. We would close the guest anyway on an instance exposed to the Internet.
Compromise hunting
No indicator of compromise has been published: no hash, no address, no domain. Previdian saw twenty-two time-based SQL injection requests from one address on 27 November, and writes that no command execution is confirmed.
The signs to look for come from the three analyses and from how the chain works:
- a non-numeric value in the guest's graph display setting (query in the previous section);
- PHP warnings about a non-numeric value in the Cacti log;
- a command that matches no known script in the
poller_itemtable (arg1column); - recent files created by the poller account, outside the cache and log folders;
- in the web server logs, the sequence
auth_profile.php, thengraph_view.php?action=preview, thengraph_realtime.php?action=init, from the same address.
On an instance exposed with the guest active since 26 November and whose poller_item table contains an unexpected command, we would not settle for cleaning it. The web server account reads config.php, and Cacti stores the SNMP strings and credentials of the devices it polls: we would rotate those secrets across the monitored estate, which is often wider than the server itself.
Timeline
The sources do not all give the same dates. The watchTowr FAQ mentions an update on 28 November but contains an entry from the 29th, and it still writes "patch pending" next to observed exploitation. For the fix, we kept the date of the pull request itself.
Timeline of 4HTTP2SHELL
Before
15 June 2026
Cacti 1.2.31
the latest release published to date.
Publication
26 November 2026
Public exploit
ek0ms savi0r publishes the repository and the write-up without having warned the project.
27 November 2026
First probes
Previdian records 22 SQL injection attempts on its honeypots; BleepingComputer writes that no exploitation is confirmed.
Fix
28 November 2026, 00
Pull request 9013
opened against the 1.2.31 branch.
28 November 2026, 00
Fix merged
no release is published.
29 November 2026
Exploitation observed
watchTowr adds it to its FAQ.
30 November 2026
This article
still no CVE and no release.
Frequently asked questions about 4HTTP2SHELL
What is 4HTTP2SHELL?
The name of a Cacti exploitation chain published on 26 November 2026, which goes from the guest account to command execution on the server in four HTTP requests. It was first called 4HTTP2ROOT.
Is there a CVE?
Not as of 30 November 2026. There is no official score either, which deprives many vulnerability management tools of any signal. Previdian's internal tracking calls it VULN-2026-0010.
Which Cacti versions are affected?
1.2.31 is the only one the researcher confirmed. In our lab, 1.2.30 also accepts the guest write that opens the chain, but we did not replay the rest. We can say nothing about older versions or the 1.3 branch.
My Cacti has no guest: am I affected?
Not by this chain, which goes entirely through the guest session. The setting is off by default. Check it anyway, it takes one line in the database.
Does the fix really exist?
Yes, in the repository: pull request 9013 has been merged into the 1.2.31 branch since 28 November. No published release contains it, so the number 1.2.31 does not tell you whether an installation carries it.
Is the flaw being exploited?
Previdian saw SQL injection attempts on 27 November with no command execution confirmed, and watchTowr writes that exploitation is observed, without detail. It was not in the CISA KEV catalog on 28 November.
Can I safely test my own instance?
Yes, for the guest question: an unauthenticated GET on graph_view.php is enough, and our template does only that. We advise against testing the chain itself on a production instance: it writes to the database.
What should I do right now?
Set "No User" as the guest user, apply pull request 9013 after a test, and restrict access to the interface. If the guest was active since 26 November, look for a non-numeric value in the guest's preferences and an unexpected command in poller_item.
Sources
- Cacti, pull request 9013, "protect profile changes and validate graph pagination on 1.2.31"
- BleepingComputer, "Unpatched Cacti zero-day with public PoC gives remote code execution"
- watchTowr, 4HTTP2ROOT FAQ
- Previdian, "Cacti zero-day: what we know so far"
- RavenAI, "Four requests to shell: Cacti"
- Cloud Security Alliance, research note on 4HTTP2SHELL
- GBHackers, "Cacti 4HTTP2ROOT zero-day enables unauthenticated remote code execution"
- Cacti, published releases
Let’s discuss your external exposure
Request a personalized Flawfence demo and discover your real exposure level.
