Skip to content
Our open-source security work.See the research

Blogvulnerabilities

30 Nov 2026

A Cacti guest session should not run commands

2 min read

On 26 November 2026 a researcher published a working exploit for Cacti, the open source network monitoring tool, that goes from a fresh guest session to command execution in four HTTP requests. The flaw was not reported to Cacti first, and watchTowr reports that it is now being exploited in the wild.

What happened

The chain, known as 4HTTP2ROOT or 4HTTP2SHELL, has no CVE yet. It needs four small failures to line up:

  • A guest can save non-numeric text into the preview_graphs_per_page display setting.
  • That stored value is used as a default and skips request validation.
  • It is then pasted into the LIMIT clause of a query, and the database driver accepts extra stacked statements.
  • One of those statements rewrites a poller entry, which graph_realtime.php passes to popen() as a shell command.

Cacti has published GHSA-5x85-g4vc-gq53, rated high, for the same unvalidated setting reaching the LIMIT clause. It affects 1.2.31 and earlier and shows that any default Normal User can make themselves an administrator, even with guest access turned off.

Who is affected

The guest path needs Cacti Core 1.2.31 with the guest account enabled. Guest access has been off by default for many years, but any install that has switched it on is exposed.

Commands run as whichever account runs the web server and poller. That is often a low privileged user rather than root. It is still serious, because Cacti stores SNMP strings and device logins for the routers, switches and servers it watches.

What to do

  • Turn off the guest account now.
  • Keep the Cacti web interface on trusted networks only.
  • Apply the fix. Cacti has merged patches on all active branches and the official release will be 1.2.32. The maintainers advise testing the patch before production.
  • Check poller entries for commands you did not set up.
  • Look in the logs for warnings about non-numeric values in graph display settings. The chain produces them even when it succeeds.
  • If you find signs of compromise, rotate every credential Cacti holds for your devices.

Monitoring tools hold the keys to the whole network, so their guest pages deserve the same scrutiny as their login page.

Filed under: vulnerabilities