News

Unpatched Cacti flaw allows unauthenticated remote code execution

The Back Room Tech Staff · Edited by Aseem Kishore
7 min read

The Back Room Tech is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

On November 26, 2026, a researcher published a working exploit for Cacti, the self-hosted, web-based network monitoring platform. It’s called 4HTTP2SHELL, and it gets remote code execution on Cacti Core 1.2.31 without a login.

If your Cacti box has the built-in guest account enabled, treat it as exposed and turn guest access off today. Fixes landed on November 28 in both the 1.2.31 branch (pull request #9013, commit 8910e2a) and the 1.2.x maintenance branch (pull request #9014), but no numbered release had shipped as of November 30, and a Cacti developer told BleepingComputer to lab-test it before it touches production.

What Happened: The Cacti Zero-Day RCE Timeline

Date (2026)EventSource
Nov 26Researcher ek0ms savi0r publishes the 4HTTP2SHELL PoC (previously 4HTTP2ROOT), a write-up, and a demo video in the “Sad Girls 0day Club” GitHub repo, with no prior report to CactiBleepingComputer
Nov 27BleepingComputer reports the disclosure and states that no in-the-wild exploitation had been reported as of that article’s publicationBleepingComputer
Nov 28Cacti merges pull request #9014 into the 1.2.x maintenance branch, hardening user settings validation, guest writes, and realtime graph access; a developer confirms the fix to BleepingComputerCacti PR #9014, BleepingComputer
Nov 29Cacti publishes GitHub advisory GHSA-5×85-g4vc-gq53 for an SQL injection through an unvalidated profile setting, with no CVE assignedCacti security advisories

That no-exploitation note is a November 27 snapshot, and it’s already out of date. The same day, Previdian logged 22 SQL injection probes against its Cacti honeypots from a single source IP, without confirmed command execution, according to a Cloud Security Alliance research note.

Later secondary reports say watchTowr has since updated its FAQ to describe the flaw as exploited in the wild, with activity first seen on November 27. We couldn’t independently load that FAQ, and no victim counts or indicators have been published. Either way, treat exposed guest-enabled servers as targets now, not a theoretical risk.

BleepingComputer article page showing the headline "Unpatched Cacti zero-day with public PoC gives remote code execution" and the article's opening paragraphs

How the chain works

The researcher says the exploit takes four HTTP requests. It needs no credentials or API key, only the guest surface. It runs in three stages:

  • Guest access. An unauthenticated visitor reaches the graph display preferences that the guest account can save.
  • Stored SQL injection. Weak validation lets the attacker store malicious SQL in those preferences. Cacti runs that SQL when it reads the preferences later. The attacker uses it to rewrite poller config.
  • Poller-driven execution. Cacti’s real-time poller picks up the poisoned config and runs the attacker’s OS commands.

The Ostorlab analysis describes the same second-order chain.

Who this affects

The researcher’s public chain targets Cacti Core 1.2.31 with the guest account enabled, and that’s the only version they tested. Cacti’s own advisory is broader: it lists every release up to and including 1.2.31 as vulnerable and names 1.2.32 as the patched version, which hadn’t shipped as of November 30.

The advisory also matters if you never enabled guest access. It says any logged-in account with the default “Normal User” permissions can use the same unvalidated profile setting to inject SQL and grant itself administrator rights, and from there reach OS command execution. Turning guest off removes the unauthenticated entry point, but it doesn’t protect you from a low-privilege account. Audit who has logins, remove stale ones, and plan for the fix.

No CVE identifier had been assigned as of November 30. Cacti’s November 29 advisory, GHSA-5×85-g4vc-gq53, rated high severity, describes stacked-query SQL injection through an unvalidated profile setting, lists no CVE, and covers versions through 1.2.31. Cite that advisory and PR #9014 when filing tickets, and watch the advisory page for a CVE or a numbered release.

The damage can go past your graphs. In many deployments, Cacti stores device credentials and SNMP passphrases so it can poll routers, switches, and firewalls, though this depends on how an installation is configured. The Cloud Security Alliance research note makes the same point: a compromised Cacti host can become a launch point into network infrastructure.

Whoever owns the Cacti server could gain access to those stored credentials. Depending on network segmentation, that access may extend further into the management network.

How It Stacks Up: Your Response Options

No vendor or independent benchmarks apply here. The useful comparison is what each response costs you.

OptionAdmin effortWhat it blocksDownside
Disable guest accountMinutesThe entry point of the documented guest-based chain (not other, unrelated Cacti flaws)Breaks any anonymous dashboard views you rely on
Restrict web UI to trusted networksUnder an hour with a host firewall or VLANDrive-by attempts from untrusted segmentsDoesn’t help if the attacker is already inside
Apply the branch fix (PR #9013 for the 1.2.31 branch, PR #9014 for 1.2.x; the advisory lists 1.2.32 as the patched release)Lab test plus a change windowGuest saving of profile and graph preferences, and adds stricter settings validationBranch code, no numbered release yet
Migrate to LibreNMS or ZabbixDays to weeks of template and graph rebuildsRemoves Cacti entirelyLarge effort for a bug with a one-toggle mitigation

On an Ubuntu or Debian host running ufw, the idea is to allow only your management subnet to reach the web UI. Treat the commands below as a starting template, not a drop-in fix. Check your existing rules first, keep your SSH access rule in place, and use the port your Cacti UI actually listens on:

# Review current rules before changing anything
sudo ufw status numbered
# Replace 10.0.10.0/24 with your admin subnet and 443 with your Cacti UI port
sudo ufw insert 1 allow from 10.0.10.0/24 to any port 443 proto tcp
sudo ufw deny 443/tcp
sudo ufw status numbered

Afterward, test from a host outside the trusted subnet, over both IPv4 and IPv6, to confirm the UI no longer answers.

Warning: Rule order matters in ufw, and these two commands only express the intended policy, not a guarantee of it. Check that the allow rule sits above the deny rule in ufw status numbered, confirm there’s no conflicting IPv6 rule or pre-existing rule overriding it, and make sure your SSH rule exists before you change anything remotely.

Then follow BleepingComputer’s other advice: review poller configs and the Cacti log for unusual entries. Anything unexpected in recent graph-setting changes is worth investigating as possible exploitation.

The Reaction

BleepingComputer’s reporting and the Cacti developer’s response point to the same two steps. Disable guest access and limit who can reach the web UI.

Our Take

Mitigate now, pilot the patch, hold on production rollout until it passes your lab.

Disabling the guest account takes minutes and closes the unauthenticated path. Do that first on any version, but remember the advisory’s logged-in-user exposure stays open until you patch. Next, put the web UI behind a management VLAN on a managed switch, or reach it through a VPN like WireGuard. A monitoring dashboard shouldn’t sit on a flat network anyway.

For the patch, a spare mini PC or Raspberry Pi with a copy of your Cacti config makes a cheap lab box. It’s branch code, and Cacti itself says to test it first. The trade-off is that you’re running unreleased code until a numbered release ships.

Migration isn’t worth it for this bug alone. Zabbix and LibreNMS have their own learning curves. Rebuilding years of graph templates is a lot of work to avoid flipping one toggle.

Wrapping Up

With guest access off and the UI limited to trusted subnets, the published chain loses its entry point. If your server was reachable from untrusted networks with guest enabled since November 26, rotate the SNMP and device credentials Cacti stores even if the logs look clean. Commands run as the account Cacti uses, typically www-data or apache, and that account can usually write to Cacti’s own logs and database. Apply the maintenance-branch fix, or 1.2.32 once it ships, after it passes your lab.

Keep running Cacti if you can live without anonymous dashboards. Plan a move to another tool if your workflow needs public guest views and you can’t wall them off.