Latest briefing

Cacti zero-day vulnerability enables unauthenticated remote code execution via guest access

TL;DR

Cacti users face a zero-day remote code execution vulnerability that allows unauthenticated attackers to gain a shell via the guest account. If you have the guest account enabled, disable it immediately to prevent attackers from pivoting into your network.

What happened

A new vulnerability, tracked as 4HTTP2SHELL and 4HTTP2ROOT, allows an attacker to achieve remote code execution through just four HTTP requests. The exploit targets the default guest access surface in Cacti Core 1.2.31.

The attack begins by using the guest account to write an unvalidated, non-numeric string into the preview_graphs_per_page setting via auth_profile.php?action=update_data. This triggers a second-order SQL injection because the application fails to validate that the input is an integer. The attacker uses a crafted SQL UPDATE statement to modify the poller_item.arg1 table entry. Finally, by invoking the graph_realtime.php endpoint, the attacker triggers the modified command, which is passed to PHP's popen() function, resulting in a shell.

Why it matters

Cacti is a central monitoring tool that often holds sensitive credentials for routers, switches, firewalls, and servers. Because the poller executes commands stored in the database, an attacker who achieves code execution can use the Cacti server as a pivot point to reach deeper into the target network. The shell privilege depends on the deployment, but the ability to execute commands is guaranteed. This vulnerability is particularly dangerous because it requires no login, no valid API key, and no phishing to execute.

Who is affected

  • Cacti Core 1.2.31 (specifically when the guest account is enabled)

What to do now

  1. Disable the guest account immediately.
  2. Restrict access to the Cacti web interface to trusted IP addresses only.
  3. Review poller configuration entries for unexpected or malicious command values in the poller_item table.
  4. Apply official patches as soon as they are released by the Cacti team.

What we don't know yet

  • Whether this vulnerability is currently being exploited in the wild.
  • The exact number of vulnerable installations globally.
  • When an official patch will be released.

Sources

  1. thehackernews.comhttps://thehackernews.com/2026/11/unpatched-cacti-zero-day-enables-rce-in.html
  2. github.comhttps://github.com/ekomsSavior/Sad-Girls-0day-Club/tree/main/4http2shell
  3. github.comhttps://github.com/Cacti/cacti/releases
  4. github.comhttps://github.com/Cacti/cacti/blob/develop/cacti.sql

Offensive security engineer, ethical hacker and penetration tester. Writes Unpatched Intel from h4rithd.com.