Cacti Zero-Day Turns Guest Access Into a Shell in Four HTTP Requests
A researcher published an unpatched Cacti chain that takes an anonymous guest session to command execution in four HTTP requests, with no CVE or fix yet.

On this page
Key takeaways
- A researcher published a Cacti chain called 4HTTP2SHELL, or 4HTTP2ROOT, on 26 November 2026 that reaches command execution from an unauthenticated guest session in four HTTP requests.
- The chain was demonstrated against Cacti Core 1.2.31, the latest release, on a lab host with the guest account enabled; Cacti's documentation says guest access is disabled by default.
- No CVE has been assigned, no vendor patch is available, and no exploitation in the wild had been reported as of 27 November.
- The chain abuses an unvalidated per-user setting, turns it into a second-order SQL injection, edits a poller row and gets the realtime poller to run the stored command through popen().
- The practical mitigation is to disable the guest account, restrict the web interface to trusted networks, and inspect the settings_user and poller_item tables for unexpected values.
A researcher published an unpatched Cacti vulnerability chain on 26 November that starts with an anonymous guest session and ends with commands running on the monitoring server, using four HTTP requests. The disclosure has no CVE, no vendor fix and no confirmation from the Cacti project. The Hacker News reported the write-up on 27 November.
Related reading: Hackers Say They Leaked 2.1 Million LifeStance Patient Records, Then Emailed the Patients · Hackers Stole 125,000 Files From Canada's Military Export System in an AI-Assisted Breach.
“I found a path from a fresh, unauthenticated HTTP session to command execution as the Cacti server user in four requests,” the researcher, who uses the handle ek0ms savi0r, wrote in the GitHub post. “No login. No valid API key. No phishing. Just four HTTP requests against the default guest surface.”
The chain is called 4HTTP2SHELL. The vulnerability is tracked as 4HTTP2ROOT. It was demonstrated against Cacti Core 1.2.31, released on 15 June 2026 and still the latest version, on an isolated lab host with the guest account enabled. watchTowr’s advisory lists the status as of 27 November: CVE not assigned, exploitation none reported, CISA KEV not listed, vendor patch pending.
Four requests from guest to shell
In the published chain, Cacti gives an unauthenticated visitor a session and a CSRF token through auth_profile.php. The first request collects both. The second posts to the same profile endpoint with name=preview_graphs_per_page and an arbitrary string as the value. The setting is supposed to hold the number of graphs displayed per page in preview mode. The profile update function checks that the setting exists and writes it with a prepared statement, but it does not check that the value is an integer.
The write itself is not the weak point. Cacti stores the string safely. The failure appears when the value is read back and treated as a number, because the code that builds the pagination limit trusts storage that was never validated.
The string carries a number, a semicolon, an UPDATE against poller_item and a comment marker. The third request opens graph_view.php?action=preview. The preview code reads the stored setting as the default for its graphs filter and builds a pagination limit from it. The line in graph_view.php concatenates that value into the query, and get_allowed_graphs() prefixes it with LIMIT. The request-side integer filter never sees the value that came from the database.
In the demonstration, Cacti’s MySQL PDO layer accepts the stacked statement, so the UPDATE runs. It rewrites poller_item.arg1 for a data source to a shell command.
The fourth request calls graph_realtime.php?action=init. That starts the realtime poller, which reads the edited row and passes arg1 to PHP’s popen() without an allowlist. The command runs inside the same HTTP request. The response still looks like a normal graph image.
“The database row the guest can write is the row the poller executes,” the researcher wrote.
SQL injection usually ends at the database. Here the database is a stepping stone to the poller, because Cacti stores the commands it runs in a table the web application can write. That design is what turns a database write into command execution, and it is why a fix has to cover both the setting validation and the poller’s trust in its own table.
Guest access is the gate, and it is off by default
The chain needs one configuration choice: the guest account has to be enabled. Cacti’s user management documentation says guest access has been disabled by default since version 0.8.7. Anonymous viewing only starts when an administrator assigns a Guest User in the authentication settings, and the shipped guest account can then see every graph on the system unless its permissions are narrowed.
That distinction matters. The researcher describes “the default guest surface,” but a stock Cacti install is not reachable this way. The exposed group is the installations that turned anonymous access on, often for a wall display in a network operations centre or a dashboard that should not require a login. Cacti’s documentation warns against giving the guest user more than graph viewing, and notes that an administrator can remove a user’s ability to change profile defaults. That switch targets the write this chain depends on.
The lab result is a root shell because the researcher ran the web tier and the poller as root. A normal Linux deployment runs them as www-data or apache, so the command inherits that account. The lower privilege does not remove the risk. Cacti’s configuration file holds database credentials, and the database holds the credentials and SNMP strings used to poll network devices.
Only 1.2.31 has been demonstrated. SecurityOnline reports that earlier 1.2.x builds sharing the profile and realtime poller code are likely affected, but that is an assessment, not a tested range. No scan data yet shows how many installations have guest access enabled and are reachable from the internet.
Four separate failures make the chain work
The researcher lists the conditions that have to line up:
- The guest can write a numeric setting as text. The profile endpoint validates the setting name, not the value type.
- The stored default skips request validation. Parameters sent to
graph_view.phpare filtered. The value read back fromsettings_useris not. - The pagination limit is concatenated into SQL. PDO accepts more than one statement in the string, so the injected UPDATE executes.
- The poller runs a database-stored command.
poller_item.arg1reachespopen()with no allowlist or sanitisation.
Each failure is ordinary on its own. Together they move an anonymous visitor from a profile form to the operating system. The chain is quiet in the logs: a guest session, a profile update, a preview request and a realtime graph request are all normal traffic. The researcher says the loudest artifact is a PHP warning about a non-numeric value, and that the request still succeeds.
Why the monitoring server is worth reaching
Cacti sits in the management plane. It polls routers, switches, firewalls, servers and power equipment, and it stores what it needs to do that: SNMP community strings, device logins, SSH keys, database credentials and mail relay settings. It also decides which alerts fire.
An attacker with a shell does not have to exploit every device. The credentials are already on the host. watchTowr’s FAQ makes the same point: “an attacker who reaches this level of command execution can gain a foothold reaching far beyond the monitoring server itself.” Editing the poller or the database can hide an outage from the people watching the graphs.
A large security release, then a different route
Cacti 1.2.31 was itself a security release. Its changelog lists 33 CVE fixes, including pre-authentication SQL injection in graph_view.php (CVE-2026-39948, CVE-2026-39955 and CVE-2026-39893). The new chain reaches the same file through a stored per-user default rather than a query parameter. That does not establish that it bypasses a particular fix, and the researcher does not claim one.
Administrators who treated June’s release as the end of a cleanup now have the current version as the vulnerable one, with no later release to move to.
What administrators can do before a patch
The first step is to disable the guest account. In Cacti, that means setting Guest User to “No User” under Settings, Authentication. If anonymous graph viewing is required, removing the guest user’s ability to modify user settings is the narrower alternative, and it targets the write this chain depends on.
The rest is containment and checking:
- Restrict the Cacti web interface to management networks or a VPN. The chain needs HTTP access to the web tier.
- Query
settings_userfor apreview_graphs_per_pagevalue that is not an integer. - Query
poller_itemforarg1values that do not match the expected polling command. - Confirm that the web server and poller do not run as root.
- Search PHP logs for non-numeric value warnings from
graph_view.php, and look for files created by the poller account. - Apply a fixed release when the project publishes one. No CVE exists yet, so vulnerability scanners are unlikely to flag the installation.
Caveats
The technical account comes from one researcher, with a shell script, a transcript and a demonstration video in the GitHub repository. watchTowr’s FAQ summarises the chain and the exposure but does not say that its own team reproduced it. The Cacti project has not published an advisory, assigned a CVE or commented publicly, and no exploitation in the wild had been reported as of 27 November. No attacker has been identified.
The affected version range is unverified beyond 1.2.31. The root outcome is specific to the lab, where the web tier ran as root. How many production installations enable guest access, and how many of those are reachable from untrusted networks, is unknown. The four-request count assumes the guest account is enabled and the default profile update path is available. The GitHub post does not say whether the researcher contacted the Cacti maintainers before publishing.
A public proof of concept usually changes the exposure calculation before a patch arrives. Scanning, attempts to write the setting and unusual poller commands are the events to watch for.
No fixed release exists as of 27 November.
Cover image: the Graph Management screen from Cacti’s official documentation, showing the monitoring tool’s graph list. Screenshot courtesy of the Cacti project.
Tags
Frequently asked questions
- Is the Cacti 4HTTP2ROOT vulnerability being exploited in the wild?
- No exploitation had been reported as of 27 November 2026, according to watchTowr's advisory. The proof-of-concept code, transcript and demonstration video are public, which usually increases scanning and attempted exploitation against exposed installations.
- Which Cacti versions are affected?
- The researcher demonstrated the chain against Cacti Core 1.2.31, the current release, with the guest account enabled. Earlier 1.2.x releases that share the profile and realtime poller code are likely to be affected, but no wider version range has been tested and published.
- Does the Cacti zero-day give an attacker root access?
- It depends on how the installation runs. The researcher's lab ran the web tier and poller as root, so the demonstration returned a root shell. On a normal Linux deployment the command runs as the web user, such as www-data or apache, which can still read Cacti's configuration and database credentials.
- How can administrators check whether the Cacti chain has been used?
- Look for a preview_graphs_per_page value in the settings_user table that is not an integer, unexpected commands in poller_item.arg1, files created by the poller account, and PHP warnings about non-numeric values from graph_view.php. A guest profile update followed by a realtime graph request is the sequence to review.








