Cacti — Unpatched Zero-Day Vulnerability Grants Remote Code Execution

Publication date: November 27, 2026
Category: Zero Days (realtime trigger)

Introduction

A critical zero-day flaw in the Cacti network monitoring platform has been publicly disclosed alongside a proof-of-concept (PoC) exploit. Dubbed “4HTTP2SHELL” by its creator, the attack allows unauthenticated actors to execute operating system commands on vulnerable servers using just four HTTP requests. The finding was uncovered by cybersecurity researcher ek0ms savi0r from the Church of Malware and published in a GitHub repository titled “Sad Girls 0day Club.” Because Cacti manages critical corporate credentials and SNMP passphrases, compromising these servers opens a direct path for lateral movement across enterprise networks.

What is Cacti and the Discovered Vulnerability? (General Analysis)

Cacti is an open-source, web-based network monitoring and graphing tool utilized to track performance metrics across servers, routers, switches, firewalls, and core infrastructure. Due to its role in storing device credentials and SNMP keys, a compromised Cacti instance presents a high-value target for attackers aiming at wider corporate network infiltration.

The vulnerability stems from weak input validation that permits unauthenticated attackers to inject SQL statements into the application database, subsequently altering commands executed by Cacti’s real-time poller. The attack exploits how guest user graph display settings are validated and processed.

  • Estimated CVSS Score: 8.8 (High) / Estimated Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Reasoned estimate based on flaw type).
  • Estimated CWE Classification: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command / SQL Injection) and CWE-20 (Improper Input Validation). (Reasoned estimate).

How Does It Work? (Technical Analysis)

The exploitation vector operates entirely without valid credentials or API keys, interacting directly with Cacti’s default guest surface.

  • Initial Entry and Persistence Flow: The exploit executes four consecutive HTTP requests against the web interface. The attacker exploits missing input validation within guest graph preferences, successfully storing malicious SQL statements directly inside Cacti database tables (stored SQL injection).
  • Poller Modification and Command Execution: As Cacti’s real-time poller processes these stored preferences, the malicious queries alter internal polling configurations. This forces the server to execute arbitrary OS commands under the security context of the user running the web server or poller daemons.
  • Privilege Context: Although the researcher demonstrated code execution with root privileges in test environments, cybersecurity firm watchTowr notes that actual privileges gained depend heavily on the specific account running the Cacti web server and poller processes (often a low-privileged account).

Affected Systems / Environments

The vulnerability has been tested and confirmed against:

  • Cacti Core: Version 1.2.31 (it remains unconfirmed whether prior versions share the same architectural flaw).
  • Risk Profile: Organizations keeping the Cacti guest account enabled and exposing the web frontend directly to untrusted networks or the public internet.

Mitigation and Detection

Remediation

Until an official patch is released by Cacti maintainers to resolve the input validation flaw, defensive teams should implement the following steps:

  • Disable Guest Account: Immediately deactivate the guest user account within the Cacti administrative console.
  • Network Restriction: Restrict access to the Cacti web interface exclusively to trusted internal networks using firewall rules or IP-based access controls (VPN or secure gateways).
  • Configuration Review: Conduct thorough audits of poller configurations and database contents to identify unexpected or unauthorized OS commands.

Detection

Defensive engineering teams should actively monitor application logs for anomalous warning patterns involving non-numeric inputs or suspicious SQL constructs within graph display preferences.

“The exploitation of this vulnerability relies on four HTTP requests targeting Cacti’s guest surface, injecting stored SQL statements that manipulate real-time polling to achieve command execution.”

text
# Suggested search pattern for web access logs or IDS/WAF monitoring
# Monitor HTTP GET/POST requests directed at guest endpoints containing SQL structures (UNION SELECT, char(), etc.) in graphing parameters.

Wrapping Up

The public disclosure of this Cacti zero-day highlights ongoing risks associated with input validation flaws in critical infrastructure monitoring platforms. Requiring only four unauthenticated HTTP requests, the attack vector significantly lowers the barrier for adversaries. Disabling guest access and strictly segmenting web interfaces remain essential defensive postures while awaiting official patches from the vendor.

References