Front pageVulnerabilities & Patches
Four web requests Turn Cacti guest access into a shell
A publicly disclosed exploit chain could let attackers execute commands on Cacti monitoring servers without logging in, provided guest access is enabled. With a working PoC available and no official patch identified as of 27 November, administrators are being urged to disable guest access.
- Filed
- Read
- 3 min read
Four ordinary web requests. One changes a display preference, another loads a page of graphs, and a third asks for a live chart. By the end of the sequence, someone who never logged in can execute commands on the server responsible for monitoring an organisation's network.
That is the attack chain disclosed by a researcher using the handle ek0ms savi0r on GitHub on 26 November 2026. It targets Cacti, a free, open-source monitoring platform used by IT teams to generate performance graphs for routers, switches, firewalls and servers.
Security firm watchTowr tracks the vulnerability as 4HTTP2ROOT, while the researcher calls it 4HTTP2SHELL. The disclosure includes a working proof-of-concept (PoC), meaning attackers do not have to develop the entire exploit chain themselves. As of 27 November, watchTowr reported no confirmed exploitation in the wild and no assigned CVE or official vendor patch.
A number field that accepts a sentence
The vulnerability does not begin with a stolen password or a compromised administrator account. It starts with a setting that should only contain a number.
Here's how the chain works:
- The opening: Cacti allows anonymous guests to change certain display preferences when guest access is enabled. One of these settings,
preview_graphs_per_page, is supposed to contain a numeric value. The application does not adequately validate the input, allowing an attacker to store malicious SQL statements instead. - The trigger: When the graph preview page is subsequently loaded, Cacti reuses that stored value in a database query. This is known as second-order SQL injection: the malicious input is saved first and executed later when another part of the application processes it. In the affected query path, stacked SQL statements allow the attacker to modify a poller configuration entry.
- The payoff: The attacker then requests the real-time graph page. Cacti processes the manipulated poller configuration and passes the resulting command to the operating system through PHP's
popen()function, providing remote command execution.
The researcher demonstrated the chain against Cacti Core 1.2.31 in an isolated test environment. However, there is an important condition: guest access must be enabled. It is disabled by default, meaning installations that retain the default setting are not exposed to this particular attack path.
Commands execute with the privileges of the account running Cacti's web application and polling processes. That does not automatically mean root access, but it is enough to give an attacker a foothold on the monitoring server.
Why a monitoring server matters
A monitoring server might not seem like the most valuable target in an organisation's infrastructure. The information it holds makes it considerably more interesting.
Cacti installations can contain SNMP community strings, device credentials and connection details for the equipment they monitor. These may provide an attacker with useful information about the organisation's internal infrastructure and potential routes towards other systems.
watchTowr warns that compromising Cacti could therefore have consequences beyond the monitoring application itself.
There is another concern. The poller is responsible for collecting monitoring data and executing scheduled polling tasks. An attacker who gains control over its configuration could potentially interfere with monitoring activity, making suspicious behaviour harder to detect. The Hacker News has also highlighted the possibility of manipulating monitoring and suppressing alerts.
In other words, the system responsible for telling administrators when something goes wrong could itself become part of the problem.
What Cacti administrators should do today
Until an official fix becomes available, administrators should focus on reducing exposure and checking for signs of manipulation.
- Disable guest access: If anonymous graph viewing is not essential, turn off the guest account in Cacti's user settings. This breaks the attack chain's initial access condition.
- Restrict network exposure: Keep the Cacti management interface off the public internet. Allow access only through trusted internal networks or a secured administrative connection.
- Inspect poller configuration: Review poller entries for unexpected commands or modifications that do not match the organisation's normal monitoring setup.
- Review application logs: Look for unusual requests involving graph display preferences, particularly warnings about non-numeric values in settings such as
preview_graphs_per_page. - Rotate potentially exposed credentials: If there are indications of compromise, change device credentials and SNMP community strings stored in the affected installation.
The timing makes this disclosure particularly uncomfortable for defenders. A working exploit became public before a vendor patch was available, giving administrators and potential attackers access to the same technical details.
There is also a distinction worth keeping in mind: public exploit code does not automatically mean widespread compromise. Previdian subsequently reported observing SQL injection attempts against its Cacti honeypots on 27 November. Those observations indicate that the vulnerability was attracting attention, but they do not establish successful remote command execution or confirmed victim compromises.
For administrators running Cacti with guest access enabled, the immediate priority is straightforward: disable anonymous access, restrict the management interface and inspect the poller configuration.
The monitoring system should not become the easiest way into the network it was installed to protect.
Sources:
- Researcher's original GitHub disclosure and proof-of-concept
- watchTowr – Cacti Remote Code Execution (4HTTP2ROOT) FAQ
- Cacti – Official GitHub Releases
- Previdian – Cacti Zero-Day Investigation
This brief was prepared with AI assistance from the sources above and reviewed by our editors.