Network monitoring servers are supposed to watch the rest of the infrastructure. A newly disclosed flaw in Cacti, the open-source network monitoring and graphing platform, turned that watcher into an entry point: an unauthenticated attacker could reach remote code execution in just four HTTP requests when the guest account was enabled.
The proof of concept, tracked as 4HTTP2SHELL and 4HTTP2ROOT, was published on Thanksgiving Day by a researcher using the alias ek0ms savi0r. It has not yet been assigned a CVE identifier. The researcher tested it against Cacti Core 1.2.31, the latest version at disclosure. "I found a path from a fresh, unauthenticated HTTP session to command execution as the Cacti server user in four requests," the researcher wrote. "No login. No valid API key. No phishing. Just four HTTP requests against the default guest surface."
The chain starts with a display preference. Through the guest surface, an attacker can write a non-numeric string into a setting called preview_graphs_per_page, which controls how many graphs appear per page in Preview Mode. Cacti did not validate that the value was actually an integer. When the graph preview page is later loaded, that stored value becomes a second-order SQL injection, allowing arbitrary SQL to run. The demonstrated query modifies a record in Cacti's poller table. When the realtime poller endpoint is then invoked from the same guest session, the modified row is read and passed to PHP's popen() function without an allowlist or sanitization, so a database-stored string becomes an operating system command.
Researchers summarized the failure as four linked mistakes: a guest could write a numeric setting as an arbitrary string, the stored value bypassed request validation, the PHP PDO driver accepted stacked statements through the SQL LIMIT clause, and the poller executed a database-stored command string. The privileges obtained depend on the account running the Cacti web server and poller, which is often a lower-privileged account rather than root, despite the original 4HTTP2ROOT name.
The risk extends well beyond one monitoring host. As security firm watchTowr noted, Cacti often stores credentials and connection details for routers, switches, servers, and other devices across a network, so command execution on the Cacti server can become a pivot into the wider environment. An attacker could also tamper with the poller itself, suppressing or distorting the alerts an operations team relies on.
One important limit narrows the exposed population: the guest account has been disabled by default since Cacti 0.8.7. Installations that deliberately enabled guest viewing, or inherited that setting, are the ones in the direct line of fire. Even so, a public proof of concept for a widely deployed monitoring tool warrants same-day action.
The Cacti Group has now merged fixes across all active branches, covering the 1.2.31 maintenance branch, the 1.2.x branch, and the develop branch, with an official fix expected in the upcoming Cacti 1.2.32 release. The team also credited Md. Amdadul Bari Imad with independently discovering and reporting the SQL injection flaw on November 19, 2026; that report carries the GitHub security advisory identifier GHSA-5x85-g4vc-gq53.
Until systems are patched or upgraded, the Cacti team advises disabling guest access entirely, restricting the web interface behind a VPN, reverse-proxy authentication, or an IP allowlist, and reviewing the settings_user table for non-numeric values in numeric preferences such as preview_graphs_per_page, treeview_graphs_per_page, realtime_interval, min_tree_width, max_tree_width, and page_refresh. Poller configuration entries should also be checked for unexpected command values. For network teams, the lesson is familiar but sharp: monitoring planes hold privileged knowledge about everything they watch, and they need the same patching urgency as the systems they observe.