Cacti zero-day lets an unauthenticated guest session run commands in four HTTP requests

· CyberSecurity

TLDR

  • A public proof of concept lets an unauthenticated guest run commands on Cacti Core 1.2.31 in four HTTP requests.12
  • It needs the guest account enabled; a patch reached the 1.2.31 branch on 28 November, but no release is listed.36
  • Disable the guest account and restrict web access; BleepingComputer and watchTowr report no attacks as of 27 November.13

A zero-day in the Cacti network monitoring platform has been publicly disclosed together with a proof-of-concept exploit that lets unauthenticated attackers execute commands on vulnerable servers, BleepingComputer reports.1 The researcher, who uses the alias ek0ms savi0r and publishes with Church of Malware, put the chain on GitHub on 26 November 2026, describing a path from a fresh, unauthenticated HTTP session to command execution as the Cacti server user in four requests against the default guest surface.4 BleepingComputer says the researcher stated in an Instagram post announcing the exploit that the flaw was not reported to Cacti before it was released.1 The Hacker News and BleepingComputer published their reports on 27 November.12

The researcher's write-up and RavenAI's summary of it describe the same four steps.45 A guest session obtained from auth_profile.php lets the attacker write an arbitrary string into the per-user preview_graphs_per_page setting, which is meant to hold a graph count but is not validated as an integer.45 When graph_view.php loads the preview page, the stored value is used as the default and concatenated into a SQL LIMIT clause; the researcher says the request-side integer filter never sees that database default and that PDO accepts stacked statements, so an UPDATE runs.4 The Hacker News describes the result as a second-order SQL injection that modifies a record in Cacti's poller table.2 A final request to graph_realtime.php?action=init makes the realtime poller read the altered poller_item.arg1 value and pass it to PHP's popen() function, which The Hacker News says happens without any allowlist or sanitisation checks.24

The researcher tested Cacti Core 1.2.31, which The Hacker News describes as the latest version, with the guest account enabled; it adds that the guest account has been disabled by default since Cacti 0.8.7.2 BleepingComputer says it is unclear whether earlier versions are also vulnerable, and RavenAI says the research does not establish whether other versions, guest configurations or database settings are exploitable.15 The researcher's lab web tier and poller ran as root; the researcher says that on a normal deployment the chain runs as the Cacti web user, usually www-data or apache.4 watchTowr likewise says the privilege gained matches the account running the Cacti web server and poller, and its FAQ lists no fixed version and no CVE for Cacti Core 1.2.31.3 A Cacti pull request merged into the 1.2.31 maintenance branch at 00:24 UTC on 28 November stops guest sessions from saving profile or graph preferences, validates the settings and pagination values, and requires a CSRF-checked POST; its title does not mention the exploit, and it says the patch also applies to the original 1.2.31 release tag.6

Until a release ships, BleepingComputer and watchTowr advise disabling the guest account and restricting the web interface to trusted networks.13 They also advise reviewing poller configuration entries for unexpected command values and watching application logs for warnings about non-numeric values in display settings, which the chain produces even though the request succeeds.13 The Hacker News adds that a successful attacker could also suppress alerts by modifying the poller table.2 BleepingComputer and watchTowr both say that, as of 27 November, no exploitation in the wild had been reported, and watchTowr says no attribution has been made public.13

Why it matters: watchTowr says Cacti often stores credentials and connection details for routers, switches and servers, so command execution on it can give an attacker a foothold reaching far beyond the monitoring server.3

Sources

  1. Unpatched Cacti zero-day with public PoC gives remote code execution (BleepingComputer)
  2. Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access (The Hacker News)
  3. 4HTTP2ROOT FAQ: Cacti Zero-Day Exposure and Fix (watchTowr)
  4. Four Requests to Root: A Cacti 0day (ekomsSavior (GitHub))
  5. Four Requests to Shell: Ek0ms's Cacti 0-Day Chain (RavenAI)
  6. fix(security): protect profile changes and graph pagination on 1.2.31 (Cacti (GitHub))