Cacti Let a Guest Run Code. Four Requests, No Login.
Four HTTP requests. No login, no API key, no phishing email. That is all it takes to run code on a Cacti server — if the guest account is switched on.
A security researcher who goes by the alias “ek0ms savi0r” has published a proof-of-concept exploit for a new zero-day in Cacti, the open-source network monitoring tool. The flaw, tracked as 4HTTP2SHELL and 4HTTP2ROOT, has no CVE identifier yet and no fix. It affects Cacti Core 1.2.31, the latest version, when the guest account is enabled. The guest account has been disabled by default since Cacti 0.8.7 — but any deployment where someone turned it on is exposed, and there is no exploitation in the wild reported so far.
What makes this one stand out is the path: an unauthenticated visitor walks in through a feature designed to be harmless — the guest view of network graphs — and walks out with command execution on the server.
How four requests become a shell
The attack starts with a setting called preview_graphs_per_page, which controls how many graphs are shown per page when a user views graphs in Preview Mode. A guest can change that setting through auth_profile.php?action=update_data — and Cacti never checks that the new value is actually a number.
That is the crack. The researcher sends a crafted value that is really an arbitrary SQL string. Cacti stores it without complaint. Then, when the graph preview page (graph_view.php) loads with its default filters, the stored value is used in a query — a second-order SQL injection, where the poison was planted in one request and fires in another.
The demonstration query is an UPDATE statement that rewrites a row in Cacti’s poller table. In the final step, the attacker calls the realtime poller endpoint (graph_realtime.php) from the same guest session. The poller reads the modified row and passes it straight into PHP’s popen() function — with no allowlist and no sanitization. The command runs as the Cacti server user.

Four failures, one open door
The researcher lists four failures that line up to make this possible. Each one alone would be a bug. Together, they are a chain:
- The guest can write a numeric setting as an arbitrary string. A value that should only ever be a number accepts anything.
- The stored default bypasses request validation. The poisoned value is trusted because it came from the database, not from a fresh request.
- Cacti’s PHP database driver accepts stacked statements through the SQL LIMIT clause. The injected SQL actually runs.
- The poller executes a database-stored command string. A row in a table becomes a command on the server.
Remove any one of those four and the chain breaks. Leave all four in place and a stranger on the internet gets a shell.
Why this one matters
A monitoring server is a high-value target. Cacti does not just draw graphs — it stores credentials and connection details for the routers, switches, servers, and other devices across a network. As watchTowr put it in its advisory, “an attacker who reaches this level of command execution can gain a foothold reaching far beyond the monitoring server itself.”
That is the real risk here. The Cacti box is rarely the prize; it is the doorway. From it, an attacker can pivot into the network it watches, harvest the credentials it holds, and — because the flaw lives in the poller table — even suppress alerts by modifying the very data the monitoring system relies on.
Unauthenticated chains that end in full control have become a pattern this month: N-able took its entire cloud platform offline after more than 30 zero-days were published in a single night, several of them chaining an unauthenticated flaw straight to root. Cacti’s flaw is smaller in scope, but the shape of the attack is the same — the guest, the gap, and the straight line to control.
What to do now
There is no patch yet, so the fix is configuration — and it is quick. Four checks:
- Turn the guest account off. It is disabled by default since Cacti 0.8.7, but verify it on your deployment. If nobody needs guest access, it should not exist.
- Restrict access to the Cacti web interface. It should not be reachable from the open internet. Put it behind a VPN or an internal network, and limit who can reach it even inside.
- Review your poller configuration entries. Look for command values you do not recognize — anything unexpected in the poller table is a red flag.
- Apply the fix as soon as it lands. Watch for the CVE assignment and the patched release, and treat it as urgent when it arrives.

Cacti is not the only unpatched flaw making the rounds this week: Drupal’s installer flaw hit the exploited list with a patch deadline of today, and administrators are still racing it. The lesson is the same in both cases — an unpatched flaw with a public proof-of-concept does not wait for a convenient maintenance window.
Four requests is not a sophisticated attack. It is a guest account left on, a number that was never checked, and a poller that runs whatever it is told. Check the setting, close the door, and check the poller table.



















