Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access
About 3 min read
securitysoftwarehardwarenetworking
A new, unpatched zero‑day vulnerability in the open‑source network‑monitoring platform Cacti can be leveraged to obtain remote code execution (RCE) with only four HTTP requests, according to a proof‑of‑concept disclosed by a security researcher using the alias “ek0ms savi0r”. The flaw, tracked internally as 4HTTP2SHELL and 4HTTP2ROOT, has not yet been assigned a CVE identifier, but its impact is already being assessed by the security community.
The vulnerability resides in Cacti Core version 1.2.31, the most recent release, and is triggered when the default guest account is enabled on an isolated host. An attacker can start a fresh, unauthenticated HTTP session, bypass any login requirement, API key, or phishing step, and issue a sequence of four crafted requests against the guest‑exposed surface. The first request abuses the “auth_profile.php?action=update_data” endpoint to write a non‑numeric string into the configuration setting “preview_graphs_per_page”. This parameter normally expects an integer that determines how many graphs are shown per page in preview mode, but the application fails to validate the input type.
Because the input is not validated, the attacker can inject arbitrary SQL code into the setting. When the graph preview page (“graph_view.php”) is subsequently loaded with default filters, the malicious value is interpreted as part of an SQL statement, creating a second‑order SQL injection. The researcher demonstrated that the injected payload can execute an UPDATE query against Cacti’s poller table, altering a record that controls how the realtime poller operates.
The final stage of the exploit involves calling the realtime poller endpoint (“graph_realtime.php”) from the same guest session. The poller table entry that was modified in the previous step is read and passed directly to PHP’s popen() function without any allowlist or sanitisation. This lack of checks enables the attacker to execute arbitrary system commands on the server under the Cacti service user account, achieving full remote code execution.
Four distinct failures combine to make the attack possible: (1) the guest account is enabled by default and provides unauthenticated access; (2) the “preview_graphs_per_page” setting accepts non‑numeric input; (3) the application does not sanitise the injected SQL when rendering the graph preview page; and (4) the poller endpoint forwards data from the database to popen() without validation. Together, these weaknesses allow an unauthenticated adversary to compromise the Cacti server and potentially pivot to other devices on the monitored network.
The practical implications are severe for organisations that rely on Cacti to collect performance data from routers, switches, servers and other infrastructure. Because Cacti often stores credentials and connection details for these devices, an attacker who gains command execution on the monitoring server could harvest sensitive network information, suppress alerts by tampering with the poller table, or use the compromised host as a foothold for further lateral movement. WatchTowr, a security advisory service, warned that the breach could expose a wide range of network assets beyond the monitoring server itself.
At present there is no official patch for the flaw. Security experts recommend immediate mitigation steps for all installations of Cacti Core 1.2.31 and earlier versions that have the guest account enabled. Administrators should disable the guest user in the Cacti web interface, restrict access to the application through network‑level controls such as firewalls or VPNs, and audit poller configuration entries for any unexpected command values. Monitoring for anomalous activity on the “graph_realtime.php” endpoint and reviewing database logs for unusual UPDATE statements can also help detect exploitation attempts.
Users are urged to stay alert for forthcoming updates from the Cacti development team and to apply any patches as soon as they are released. In the meantime, disabling guest access and tightening web‑interface permissions represent the most effective defensive measures to reduce the attack surface and protect critical monitoring infrastructure from this emerging threat.
A new technique called Weight2Shell has been disclosed by cybersecurity researchers, which allows artificial intelligence (AI) models to produce different behavior on different machines, eve…
Season 2: Legacy for Gears of War: E‑Day launches tomorrow, marking the franchise’s twentieth anniversary and offering a wave of new content for both veteran players and newcomers. The updat…
Hela: of Mice & Magic is set to launch on December 1, 2026 for Xbox Series X|S, and the title will be available on day one through Xbox Game Pass. The game presents an open‑world adventure i…