Skip to content
[HIGH] Vulnerabilities #vulnerabilities

Unpatched Cacti Zero-Day Flaw Enables Remote Code Execution

By Rockstar Media Editorial Original report: The Hacker News ↗

┌─ unpatched-cacti-zero-day-rce.md :: hero

Illustrative stock photo for: Unpatched Cacti Zero-Day Flaw Enables Remote Code Execution
Illustrative stock photo for: Unpatched Cacti Zero-Day Flaw Enables Remote Code Execution Photo by Tima Miroshnichenko on Pexels

An unpatched zero-day vulnerability in the open-source network monitoring tool Cacti allows unauthenticated attackers to achieve remote code execution in four HTTP requests when guest access is enabled. Tracked via proof-of-concept exploits named 4HTTP2SHELL and 4HTTP2ROOT, the flaw affects Cacti Core 1.2.31, the latest version, and currently has no CVE identifier or official patch. Successful exploitation lets attackers run commands as the Cacti server user and potentially access stored credentials for routers, switches, and servers. Malaysian organisations running Cacti with guest access enabled face elevated network exposure.

Key Facts

Attribute Value
Affected Product and Versions Cacti Core 1.2.31 (latest version, when the guest account is enabled)
Disclosure Date Nov 27, 2026

How Does the Four-Request Cacti Exploit Work?

The attack chains a second-order SQL injection with unvalidated command execution across four unauthenticated HTTP requests against Cacti's default guest surface. An attacker first abuses guest access to store arbitrary text in a numeric setting, triggers that payload via graph previews, modifies the poller table, and executes it through the realtime poller endpoint.

According to security researcher "ek0ms savi0r", who demonstrated the proof-of-concept exploits tracked as 4HTTP2SHELL and 4HTTP2ROOT, the chain begins at auth_profile.php?action=update_data, where non-numeric text is written into the preview_graphs_per_page setting. When graph_view.php loads with default filters, the stored value triggers an arbitrary SQL UPDATE statement against Cacti's poller table. Invoking graph_realtime.php from the same guest session then passes the modified poller record directly into PHP's popen() function.

An unauthenticated attacker requires no login, API key, or phishing to reach command execution as the Cacti server user when guest access is enabled.

What Architectural Failures Enable Remote Code Execution?

The researcher identified four consecutive security failures within Cacti Core 1.2.31 that turn guest access into unauthenticated code execution. These span missing input type validation on profile settings, trusted retrieval of stored defaults, database driver handling of stacked queries, and unsanitised command execution inside the poller workflow.

Specifically, the researcher highlighted four breakdowns in Cacti's validation and execution controls:

  • The guest account can write an arbitrary string into a setting intended only for numeric values.
  • The stored default value bypasses request validation when later retrieved.
  • Cacti's PHP PDO database driver accepts stacked statements through the SQL LIMIT clause.
  • The poller reads a database-stored command string and executes it without allowlist or sanitisation checks.

Because Cacti's PHP PDO driver accepts stacked SQL statements via the LIMIT clause, an unsanitised integer setting can alter the poller table before PHP's popen() runs it.

Why Does This Flaw Threaten Wider Networks?

Compromising a Cacti server puts surrounding infrastructure at risk because network monitoring systems hold sensitive operational data. Beyond running commands on the monitoring host itself, attackers can extract stored credentials for connected equipment or tamper with the poller table to suppress alerts and conceal unauthorised activity.

In an advisory cited by The Hacker News, security firm watchTowr warned that gaining execution on a Cacti instance creates a pivot point into the wider network environment:

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.

watchTowr advisory, quoted in The Hacker News

A compromised Cacti instance exposes stored connection details and credentials for routers, switches, and servers across the monitored network.

What Should You Do?

No official patch or fixed version of Cacti is available yet. Administrators should apply the following mitigations immediately:

  • Disable the guest account in Cacti to remove unauthenticated access to the affected surface.
  • Restrict access to the Cacti web interface to mitigate potential exploitation.
  • Review poller configuration entries for unexpected command values.
  • Apply official vendor fixes as soon as they become available.
  • Malaysian organisations can report suspected security incidents to Cyber999 (MyCERT).

Common Questions

Is there a CVE identifier or patch for this Cacti vulnerability?

No. As of Nov 27, 2026, the flaw has not yet been assigned a CVE identifier, and no official patch is available for Cacti Core 1.2.31. Administrators must rely on mitigations such as disabling the guest account until vendor fixes are released.

Are Cacti servers safe if the guest account is disabled?

According to the source details, the vulnerability affects Cacti Core 1.2.31 when the guest account is enabled, and the four-request attack targets the default guest surface. Disabling the guest account and restricting web interface access are the primary recommended mitigations while awaiting a fix.

What happens if attackers exploit 4HTTP2SHELL or 4HTTP2ROOT?

Successful exploitation allows attackers to execute arbitrary commands as the Cacti server user without authenticating. Because Cacti often stores credentials and connection details for routers, switches, and servers, attackers can pivot further into the network or modify the poller table to suppress alerts.

Sources and Methodology

This dispatch is based solely on the article Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access, published by The Hacker News on Nov 27, 2026. No external advisories, vendor pages, or independent technical documents were reviewed or verified in preparing this report.

$ ls ./tags

  • #Vulnerabilities

From the network