"I found a path from a fresh, unauthenticated HTTP session to command execution as the Cacti server user in four requests," security researcher ek0ms savi0r wrote, describing a proof-of-concept that turns Cacti's guest surface into a remote code execution vector.
How ek0ms savi0r's proof-of-concept works
The exploit, tracked as 4HTTP2SHELL and 4HTTP2ROOT, targets Cacti Core 1.2.31 on hosts where the guest account is enabled. According to the researcher, an attacker needs only four HTTP requests from an unauthenticated session to reach command execution as the Cacti server user. The chain requires no login, no API key and no phishing — the attack proceeds entirely through the default guest interface.
The technical chain: auth_profile.php → graph_view.php → graph_realtime.php
At a high level the attack abuses a numeric configuration parameter named preview_graphs_per_page. The guest endpoint auth_profile.php?action=update_data can be used to write an arbitrary, non-numeric string into that setting. Because Cacti does not validate that the value is an integer, the crafted value can carry arbitrary SQL text. When the graph preview page (graph_view.php) is subsequently loaded with default filters, that stored value becomes a second-order SQL injection and enables the attacker to execute arbitrary SQL.
The researcher demonstrated an UPDATE statement that alters a row in Cacti's poller table. In a final step, the realtime poller endpoint graph_realtime.php — invoked from the same guest session — reads the modified poller row and passes its contents to PHP's popen() function. The stored database value therefore becomes executable code on the server because it is handed to popen() without any allowlist or sanitization.

Audit-ready is a season. It shouldn't be.
Evidence in spreadsheets, controls drifting between audits, frameworks multiplying on flat headcount. Nubivance runs continuous compliance on Rapid7 Cyber GRC - SOC 2, HIPAA, ISO 27001, PCI, CMMC.
End the scrambleFour specific failures that make unauthenticated RCE possible
- The guest account can write what should be a numeric setting as an arbitrary string.
- The stored default value bypasses request validation when later used.
- Cacti's PHP PDO database driver accepts stacked statements through the SQL LIMIT clause.
- The poller executes a database-stored command string (it invokes popen() on the stored value without sanitization).
Consequences for Cacti servers and connected networks
Successful exploitation can compromise the Cacti server itself and provide a pivot point into the broader network. The advisory from watchTowr notes that "Cacti often stores credentials and connection details for routers, switches, servers, and other devices across a network," meaning command execution on the monitoring host can expose sensitive data or allow an attacker to suppress alerts by modifying the poller table.
The exploit therefore threatens both confidentiality — through access to stored credentials and connection details — and operational visibility, by enabling tampering with the poller configuration that drives monitoring and alerting.
What this means for technologists, affected enterprises, and adversaries
- Technologists and security teams should treat the guest account as an immediate risk: the advisory explicitly recommends disabling the guest account and restricting access to the Cacti web interface while a fix is not available, and to review poller configuration entries for unexpected command values.
- Affected enterprises and network operators will need to inventory Cacti Core 1.2.31 instances and confirm whether guest access is enabled; those with exposed instances should limit web access and inspect poller rows for unauthorized modifications.
- Adversaries who can reach vulnerable Cacti instances could use this chain to gain a foothold on monitoring infrastructure, harvest credentials or connection details, and alter monitoring behavior — including suppressing alerts — to sustain or conceal intrusion activity.
There is no CVE identifier associated with this proof-of-concept at the time of the advisory. In the absence of a vendor-supplied fix, the practical mitigations available are defensive and immediate: disable guest access, restrict web interface exposure, and audit poller entries for unexpected command values. Operators should apply any fixes as soon as they become available and monitor for signs that poller configuration rows have been modified.
Read the original advisory at The Hacker News: https://thehackernews.com/2026/11/unpatched-cacti-zero-day-enables-rce-in.html




