Friday, November 27, 2026
News

Cacti PHP vulnerability: how do you block the zero-day?

A researcher published a four-request attack chain on November 26. It needs the guest account switched on, and watchTowr reports no vendor patch yet.

a control room with a desk and two chairs

Block the Cacti PHP vulnerability called 4HTTP2ROOT, or 4HTTP2SHELL, by disabling the guest account and limiting the web interface to trusted networks. The zero-day affects Cacti 1.2.31 with guest access on, and watchTowr reports no confirmed vendor fix as of November 27.

Which Cacti versions are exposed to the PHP vulnerability?

Cacti 1.2.31 with the guest account enabled is the setup confirmed at risk. The flaw sits in how Cacti's own code handles a stored setting, and the attack ends in a shell command run through PHP. The researcher, who goes by ek0ms savi0r, tested the chain against that version on an isolated lab host and published it on GitHub on November 26. The project's GitHub page showed 1.2.31, released on June 15, as the latest version when we read it.

The Hacker News reported that the guest account has been off by default since Cacti 0.8.7, so the first thing to find out is whether someone turned it on. The write-up and watchTowr's advisory don't say whether older releases can be attacked the same way, and no CVE number had been assigned.

How does the 4HTTP2ROOT attack work?

It turns an ordinary guest session into command execution on the server in four HTTP requests, with no login. The guest saves text into a per-user setting, preview_graphs_per_page, that should only hold a page size. Cacti later drops that stored value into a database query without checking that it's a number.

Because the database driver accepts more than one statement at once, the attacker can rewrite a row in the poller table. A final request to the realtime graph page makes the poller run that row as a shell command. The command runs as the account behind the web server, often www-data or apache. The researcher's lab ran the web server and poller as root, while watchTowr says the account is often a low-privilege web user.

Is there a patch for the Cacti zero-day?

No fixed version was listed on November 27. watchTowr's advisory marks the vendor patch as pending, and The Hacker News advised users to apply fixes once they become available.

watchTowr also said no attacks in the wild had been reported as of the same day, and the flaw wasn't on the CISA Known Exploited Vulnerabilities list. A public proof of concept exists, though, so we wouldn't wait for a patch or a CVE entry before closing the guest route.

Why does a monitoring server matter so much?

The tool often keeps the logins used to reach routers, switches and servers across a network. watchTowr warned that an attacker who gets command execution there can reach well beyond the monitoring host.

The researcher listed SNMP community strings, device logins, database credentials in the configuration file and access to internal management networks among the things such a host may hold. An intruder could also edit poller entries or monitoring data to suppress alerts, so a quiet dashboard isn't proof that nothing happened.

What should Cacti admins do now?

Close the guest path today, then look for signs that someone already used it. watchTowr's advisory supports the first four steps; the last two are our suggestions.

  • Disable the guest account in Cacti's user administration settings.
  • Restrict the web interface to trusted internal networks.
  • Review poller configuration entries for commands that don't belong in your normal polling setup.
  • Search Cacti's logs for non-numeric value warnings tied to graph display settings, and look for unfamiliar files created by the poller.
  • If you find signs of use, isolate the host and change the SNMP strings, device passwords and database credentials it stored.
  • Watch the Cacti project's releases and security advisories for a version newer than 1.2.31.

Related: the PAN-OS versions that fix Fragnesia, which Linux NFS servers need the nfs2root patch.