Illustration of a monitoring dashboard breached, representing the Cacti zero-day vulnerability and guest-access RCE

Cacti Zero-Day Vulnerability: Guest-Access RCE in Four Requests

Key takeaways

  • The Cacti zero-day vulnerability (4HTTP2SHELL / 4HTTP2ROOT) lets an unauthenticated attacker reach command execution through four HTTP requests against the guest surface.
  • It affects Cacti Core 1.2.31 only when the guest account is enabled; guest has been disabled by default since version 0.8.7.
  • Fixes are merged across the 1.2.31, 1.2.x and develop branches, with an official release expected as Cacti 1.2.32.
  • Disable the guest user, restrict network access to the web interface, and review settings_user and poller entries for tampering.
  • A compromised Cacti server is a pivot point because it often stores credentials for routers, switches and servers.

The Cacti zero-day vulnerability lets an unauthenticated attacker reach command execution on a Cacti server in just four HTTP requests, but only when the guest account is enabled. According to The Hacker News, the flaw affects Cacti Core 1.2.31, the latest version, and is tracked as 4HTTP2SHELL and 4HTTP2ROOT. The fastest protection is to switch the guest user off, then apply the maintainers’ fix.

Cacti is an open-source network monitoring tool, and the proof-of-concept (PoC) exploit was published by a researcher using the alias “ek0ms savi0r.” It had no CVE identifier at the time of reporting. The story was later updated: the Cacti team has merged fixes, so “unpatched” no longer describes the whole picture. Many real-world servers will still be exposed until administrators pull the fix.

This guide explains how the attack works, how to check whether you are exposed, and what to do while you plan an upgrade.

What is the Cacti zero-day vulnerability?

It is a chain of weaknesses in Cacti 1.2.31 that turns a guest session into code execution. The researcher described it as “a path from a fresh, unauthenticated HTTP session to command execution as the Cacti server user in four requests. No login. No valid API key. No phishing.”

The issue is a form of zero-day vulnerability: details and a working PoC became public before an official release was available. A second researcher, Md. Amdadul Bari Imad, was credited with independently reporting the SQL injection flaw on November 19, 2026. It carries the GitHub security advisory identifier GHSA-5×85-g4vc-gq53.

The naming is worth a note. “4HTTP2ROOT” suggests root access, but the researcher’s own description refers to command execution as the Cacti server user. Treat the impact as full compromise of the Cacti application context rather than assuming root.

How does the four-request attack chain work?

The chain combines a missing input check with a second-order SQL injection. Second-order means the malicious input is stored first and only triggers later, when another page reads it back.

According to The Hacker News, the steps look like this:

  1. Write the payload. Using guest access, the attacker sends a non-numeric value, built from arbitrary SQL strings, into the preview_graphs_per_page setting through auth_profile.php?action=update_data. This setting controls how many graphs appear per page in Preview Mode. Cacti does not check that the value is an integer.
  2. Trigger the injection. Loading the graph preview page, graph_view.php, with default filters causes the stored string to be used in a SQL query. The demonstrated query is an UPDATE that modifies a record in Cacti’s poller table.
  3. Execute the command. From the same guest session, the attacker calls the realtime poller endpoint, graph_realtime.php. It reads the modified poller row and passes it to PHP’s popen() function with no allowlist or sanitization.

The researcher summarized the root causes as four separate failures:

Failure What it means
Guest can write a numeric setting as an arbitrary string No integer validation on user preferences
Stored default bypasses request validation The malicious value is accepted and kept
PDO driver accepts stacked statements via the SQL LIMIT clause One query can carry extra statements
Poller executes a database-stored command string A database edit becomes command execution

No single flaw is catastrophic alone. The danger comes from chaining them, which is why fixing any one link matters but fixing the root validation matters most.

Who is exposed to the Cacti guest access risk?

You are exposed if you run Cacti Core 1.2.31 and the guest account is enabled. The guest account has been disabled by default since Cacti 0.8.7, so a default install is not vulnerable to the unauthenticated path described by the researcher.

That said, administrators sometimes enable guest access so wall displays or shared dashboards can show graphs without a login. Those deployments are the realistic targets. The Cacti team also advises limiting untrusted accounts that hold Update Profile (realm 20) access, which suggests authenticated low-privilege users may be a concern too. The sources do not detail that scenario further, so treat it as a reason to tighten permissions rather than as a confirmed attack path.

How to check your exposure and look for tampering

Work through these checks in order. The first two reflect the Cacti team’s guidance; the log review is my own suggestion as a sensible addition.

  1. Confirm your version. Cacti Core 1.2.31 is the affected release named in the reporting.
  2. Check the guest setting. In the console, go to Configuration, then Settings, then Authentication, and look at the Guest User field. If it is anything other than “No User,” guest access is on.
  3. Inspect the settings_user table. Look for non-numeric values in numeric preferences: preview_graphs_per_page, treeview_graphs_per_page, realtime_interval, min_tree_width, max_tree_width and page_refresh. Any text there is suspicious.
  4. Review poller configuration entries. The Hacker News advises checking for unexpected command values, since the attack works by rewriting a poller row.
  5. Search web server logs (suggested). Look for requests to auth_profile.php with action=update_data followed closely by graph_view.php and graph_realtime.php from the same client. Anything from unfamiliar addresses deserves a closer look.

If you find tampering, assume the server and any credentials stored in it may be compromised, and follow your incident response process. The Cacti zero-day mitigation guide on this site covers a longer hardening checklist.

What mitigations and patches are available?

The Cacti team outlined three immediate mitigations:

  • Disable guest access (Console, Configuration, Settings, Authentication, Guest User, set to No User). The team says this immediately blocks unauthenticated exploitation.
  • Restrict network exposure behind a VPN, reverse-proxy authentication or an IP allowlist, and limit untrusted accounts with Update Profile (realm 20) access until you are patched or upgraded to 1.2.32.
  • Review the settings_user table for non-numeric values in the numeric preferences listed above.

On fixes, Sean Mancini of the Cacti team told The Hacker News that fixes have been merged across all active branches. An official fix is expected in Cacti 1.2.32. Until then, the commits below are available:

Branch Reference
1.2.31 maintenance branch Pull request #9013 commit
1.2.x branch PR #9014 commit
develop / 1.3.0 branch PR #9015 commit

Pulling a commit directly is a stopgap. Test it in staging if you can, and plan to move to the tagged 1.2.32 release once it ships. Keep the Cacti project page and the GitHub advisory on your watch list.

Why does a monitoring server make such a valuable target?

Monitoring tools sit in a privileged network position. watchTowr said in an advisory that “because Cacti often stores credentials and connection details for routers, switches, servers, and other devices across a network, an attacker who reaches this level of command execution can gain a foothold reaching far beyond the monitoring server itself.”

The Hacker News also notes that an attacker could expose sensitive data or suppress alerts by modifying the poller table. That second point is easy to overlook: a tampered monitor can hide the very intrusion it should be reporting.

From a defensive view, this is a classic example of SQL injection escalating to command execution. Input validation, least-privilege database accounts and strict network segmentation each break part of the chain. Attackers are also getting faster at turning public details into working exploits, a trend covered in how adversaries leverage AI for vulnerability exploitation, so waiting for a perfect maintenance window is a poor bet when a public PoC exists.

For wider guidance on prioritizing exposed, actively targeted software, see CISA and its resources on known exploited vulnerabilities, and the NIST guidance on patch management.

The Bottom Line

The Cacti zero-day vulnerability is serious but narrow: it needs Cacti 1.2.31 with the guest account enabled. That makes it highly fixable today. Disable the guest user, put the web interface behind a VPN or allowlist, and apply one of the merged commits or move to 1.2.32 when it is released.

Your next step: open Cacti’s authentication settings right now and confirm Guest User reads “No User.” Then audit settings_user and the poller entries for anything that should not be there, and rotate device credentials if you find signs of tampering.

Frequently Asked Questions

What is 4HTTP2ROOT in Cacti?

4HTTP2ROOT, also tracked as 4HTTP2SHELL, is the name given to a PoC exploit chain in Cacti Core 1.2.31. It uses four HTTP requests against the guest surface to reach command execution. It had no CVE identifier at the time of reporting, but it has GitHub advisory GHSA-5×85-g4vc-gq53.

Is my Cacti server vulnerable if I never changed the defaults?

Probably not to the unauthenticated path. The guest account has been disabled by default since Cacti 0.8.7, and the reported attack needs it enabled on version 1.2.31. Verify the Guest User setting anyway, since older or customized installs may differ.

Is there a patch for the Cacti zero-day?

Yes, in part. The Cacti team has merged fixes across the 1.2.31, 1.2.x and develop branches, and an official fix is expected in Cacti 1.2.32. Until that release, administrators can apply the published commits.

How do I disable guest access in Cacti?

Go to Console, then Configuration, then Settings, then Authentication, and set Guest User to No User. According to the Cacti team, this immediately blocks unauthenticated exploitation.

How can I tell if my Cacti server was targeted?

Check the settings_user table for non-numeric values in numeric preferences such as preview_graphs_per_page, and review poller entries for unexpected command values. Reviewing web logs for suspicious guest requests to the affected pages can add further evidence.

Why is a Cacti compromise so dangerous?

Cacti often stores credentials and connection details for routers, switches and servers. An attacker with command execution can therefore reach well beyond the monitoring host. They may also alter the poller table to suppress alerts.

Sources

Enjoyed this? Subscribe to the InnoVirtuoso newsletter for practical AI, security and tech insights — and share your thoughts in the comments.

Browse InnoVirtuoso for more!