- A researcher published a four-request exploit for Cacti Core 1.2.31 that reaches command execution on the server when the guest account is enabled.
- Cacti keeps device credentials, so a taken-over monitoring server can reach far beyond itself. Guest access is off by default, and no CVE or fix exists yet.
- Check whether any Cacti guest account is on, limit who can reach the web interface, and review poller entries for unfamiliar commands.
Checked at the door, trusted inside
Most applications check what visitors send them. Far fewer check what they stored earlier. A new proof-of-concept for Cacti shows how much depends on that gap.
Cacti is an open-source tool that watches network health. An independent researcher who goes by "ek0ms savi0r" published the exploit on November 26. The researcher says that where the guest account is enabled, an unauthenticated visitor can reach command execution on the Cacti server in four HTTP requests. Guest access is off by default. The Hacker News reports the flaw has no CVE identifier yet. It is tracked as 4HTTP2SHELL and 4HTTP2ROOT.
The lesson here is simple. A system that validates input but trusts its own storage has a boundary on only one side.
What is affected
The researcher tested Cacti Core 1.2.31, which The Hacker News calls the latest version, on an isolated lab host. The guest account was enabled. The Hacker News notes that the guest account has been disabled by default since Cacti 0.8.7.
So exposure depends on whether someone turned guest access on. The sources do not say how many installations do. They also do not report attacks in the wild.
The power of the resulting shell also varies. The lab machine ran its web server and poller with the highest system rights. The researcher says a typical setup would instead give the attacker the web server's own account, usually named www-data or apache. The researcher puts the point this way: how much an attacker can do afterwards depends on the setup, but getting a shell does not.
How the four requests work
First, the visitor asks Cacti for a guest session. No credentials are sent.
Second, the visitor uses the profile update page to save text in a setting called preview_graphs_per_page. It is meant to hold a page size, a number. Cacti confirms the setting name is real but never tests whether the value is a number. The researcher says the write itself is safe. The stored text is the problem.
Third, the visitor loads the graph preview page. That page reads the stored value as its default and pastes it into the database query that limits how many graphs appear. The filter that checks request parameters never sees this stored default. The database driver also accepts several statements in one call. The researcher used this to run an UPDATE that changed a command field in the poller table.
Fourth, the visitor calls the realtime graph endpoint from the same session. The poller reads that field and hands it to popen(), a PHP function that runs a command through the shell. The researcher says no allowlist stands in the way.
The researcher counts four stacked failures: unvalidated input, a stored default that skips validation, a value pasted into SQL, and a database-held command that gets executed. Fix any one and this route to a shell is closed, though the earlier flaws would remain.
Why the monitoring server is the prize
The researcher argues that Cacti holds credentials far beyond monitoring. It stores SNMP community strings, which are the shared passwords used to query network devices. It also holds SSH keys or service accounts used by its pollers, and database credentials in include/config.php. In a lot of shops, the researcher says, the Cacti server is "more valuable than the domain controller" because it is "trusted everywhere and audited by nobody." That is an opinion, not a measurement.
The security firm watchTowr made a similar point in an advisory. An attacker with command execution on Cacti "can gain a foothold reaching far beyond the monitoring server itself." The Hacker News adds that an attacker could also suppress alerts by editing the poller table.
An attacker on this host could also change the data the operations team sees. The team that watches the network may be reading numbers the attacker controls.
The researcher also says the chain is quiet. A guest session, a profile update, a preview and a realtime graph all look routine. The loudest trace in the logs is a PHP warning about a value that is not a number. The researcher says most teams do not set alerts for that.
What to ask your team
The Hacker News says no fix exists yet. For now it points to two steps: turn the guest account off and limit who can reach the Cacti web interface. It also advises reviewing poller entries for unexpected command values and applying fixes when they appear.
Put four questions to the people who run your monitoring:
Is Cacti in use, and is the guest account enabled on any instance? Who can reach the web interface, and does it need to be reachable beyond the operations network? Has anyone checked the poller entries for command values nobody recognises? If this server were taken over, which device credentials would the attacker hold, and how fast could they be replaced?
The fourth question is the one that sets the cost. A monitoring tool often holds credentials for much of what it watches, so its own front door deserves the same scrutiny as the systems behind it.
Produced by the WebPulse Newsroom with AI assistance from the original reporting credited below, and checked against that source by our editorial review. How we use AI.
Original reporting: ek0ms savi0r (independent security researcher, published the 4http2shell proof-of-concept on GitHub).





