Key facts
- An unpatched zero-day in Cacti enables remote code execution through four unauthenticated HTTP requests using guest access, and neither a CVE identifier nor a patch exists yet.
- ek0ms savi0r said an unauthenticated web session can reach command execution under the Cacti server account in four requests with no login, API key, or phishing.
- The attack needs the Cacti guest account turned on but no valid credentials from the attacker.
- Administrators should turn off the guest account and limit Cacti web interface access to trusted networks until a patch arrives.
Security researcher ek0ms savi0r disclosed an unpatched zero-day in Cacti on Thanksgiving Day, Nov. 26. The flaw enables remote code execution through four unauthenticated HTTP requests when guest access is enabled. The researcher, operating under the online alias ek0ms savi0r and affiliated with the Church of Malware, said the attack path runs from a fresh, unauthenticated HTTP session to command execution as the Cacti server user. It requires no login, API key, or phishing.
Neither a CVE identifier nor a patch exists for the flaw. It affects Cacti Core version 1.2.31, the latest release, provided the guest account is turned on. The guest account has been disabled by default since Cacti version 0.8.7.
Cacti is an open-source network monitoring and graphing application used to track servers, routers, switches, firewalls, and related network infrastructure. The application stores credentials and SNMP passphrases for monitored devices. A compromised server may expose other systems on a corporate network. Cybersecurity firm watchTowr said that because Cacti holds those credentials and connection details, an attacker who reaches command execution on the monitoring server can move beyond it into the broader network.
The attack requires the Cacti guest account to be enabled. The attacker needs no valid credentials.
Using guest access, the attacker writes an unvalidated non-numeric value into the preview_graphs_per_page setting through auth_profile.php?action=update_data. That parameter controls how many graphs appear per page in Preview Mode. Because Cacti does not check that user input is an integer, arbitrary SQL strings become a second-order SQL injection.
Cybersecurity firm RavenAI describes the flaw as weak validation of guest graph display settings that produces a stored SQL injection vulnerability. Loading the graph preview page graph_view.php with default filters permits arbitrary SQL query execution. The SQL statement shown by ek0ms savi0r is an UPDATE command that changes a record in Cacti’s poller table.
The attack ends by calling graph_realtime.php from the same guest session. That call passes the changed poller table row to PHP’s popen() function without allowlisting or sanitization.
Several weaknesses combine in the chain. The guest can write a numeric setting as an arbitrary string. The stored default setting bypasses request validation. Stacked statements can pass through the SQL LIMIT clause in Cacti’s PHP PDO database driver.
A command string stored in the database is executed by the poller.
Exploitation can compromise the Cacti server. It can create a pivot into the target network. It can expose sensitive data. It can suppress alerts by changing the poller table.
watchTowr explained that exploitation privileges hinge on the account under which the Cacti web server and poller run. That account is frequently a low-privileged web server account instead of root.
Tests by ek0ms savi0r used Cacti Core 1.2.31. Earlier versions may or may not be vulnerable.
No in-the-wild exploitation reports existed as of November 27. The proof-of-concept is tracked as 4HTTP2SHELL and 4HTTP2ROOT. It has not been assigned a CVE identifier.
ek0ms savi0r posted a technical write-up, proof-of-concept exploit, and demonstration video in a GitHub repository called Sad Girls 0day Club. The researcher said the vulnerability was not reported to Cacti before release. The statement came in an Instagram post announcing the exploit with a video demonstration.
ek0ms savi0r described the finding directly: “I found a path from a fresh, unauthenticated HTTP session to command execution as the Cacti server user in four requests.”
ek0ms savi0r said on Nov. 26 that companies dismissed or closed years of security reports as duplicates, expected behavior, or unreproducible issues. The researcher also said billion-dollar companies treat vulnerability disclosure like a public relations problem.
These comments appeared in a separate post on the Sad Girls 0day Club repository. They described a pattern of major firms ignoring or rejecting security submissions over many years. The same GitHub post framed disclosure as a public relations problem for large corporations rather than a security concern. The researcher showed that the exploit could obtain root access on a vulnerable Cacti server on Nov. 26.
Administrators should turn off the guest account. They should limit Cacti web interface access to trusted networks until a patch arrives. Teams should inspect poller settings for unexpected commands.
Teams should also look in application logs for warnings about non-numeric graph display values that could signal attempted exploitation. Administrators should apply fixes as soon as they are released.

Join the discussion