Cacti Zero-Day 4HTTP2ROOT Allows Unauthenticated Command Execution
A critical zero-day vulnerability, dubbed 4HTTP2ROOT, in Cacti 1.2.31 allows unauthenticated attackers to execute arbitrary OS commands if guest access is enabled.

A critical zero-day vulnerability, identified as 4HTTP2ROOT, has been disclosed in the popular open-source network monitoring tool Cacti, specifically affecting version 1.2.31. This flaw enables unauthenticated attackers to execute arbitrary operating system commands on affected servers, provided that the guest access feature is enabled within the Cacti configuration. The vulnerability was publicly detailed by security researcher ek0ms savi0r on November 26, 2026, with a proof-of-concept demonstrating command execution through a series of four HTTP requests.
The technical mechanism behind 4HTTP2ROOT is a stored SQL injection. This means that an attacker can inject malicious SQL code into Cacti, which the application then stores and executes later as part of a database command. The vulnerability arises from insufficient validation of settings that can be controlled by a guest user. By manipulating these settings, an attacker can alter Cacti's polling configuration, which is responsible for how the tool collects monitoring data from network devices.
In a laboratory setting, this manipulation led to remote code execution (RCE). While the researcher demonstrated root-level command execution on a test system where Cacti was already running with root privileges, it's important to note that the vulnerability does not inherently grant root access on all compromised servers. The commands executed will run with the same permissions as the Cacti process itself. Even without elevated privileges, a compromised Cacti server could expose the credentials it uses to access other network devices, potentially providing attackers with a pathway into sensitive parts of the network infrastructure.
This disclosure is particularly concerning because, unlike previous Cacti vulnerabilities that required authenticated access, 4HTTP2ROOT can be exploited without any login credentials if guest access is enabled. Guest access, while off by default, allows users to view Cacti monitoring graphs without requiring them to sign in. Administrators who have enabled this feature for convenience are now at significant risk.
As of the reporting date, there is no official CVE identifier assigned to this vulnerability, nor is there a confirmed severity rating or an immediate patch available from the Cacti project. Security researchers at Previdian have verified the exploitability of the flaw in Cacti 1.2.31, but the full extent of affected versions remains unclear. This situation underscores the importance for organizations to proactively manage their security configurations.
To mitigate the immediate risk, administrators are strongly advised to disable guest access in Cacti. This involves removing the designated Guest User from the authentication settings and deactivating the guest account under Console > Configuration > Users. Verifying this setting by attempting to access protected features without logging in is crucial. Furthermore, restricting access to the Cacti web interface to trusted management networks or authenticated VPN users is a recommended security practice.
While disabling guest access blocks the primary attack vector demonstrated, it does not fix the underlying SQL injection vulnerability. Security teams should remain vigilant for any unexpected changes in user settings or polling configurations within their Cacti deployments. Monitoring for unusual processes initiated by Cacti and ensuring that the application and its polling processes do not run with excessive privileges, such as root, unless absolutely necessary, are also critical steps.
Organizations suspecting a compromise should thoroughly assess which network device credentials the Cacti server might have had access to and rotate any credentials that may have been exposed. Staying updated with official Cacti security advisories and release notes will be essential for obtaining a permanent fix and further guidance.
This new report details the specific technical pathway for exploitation, highlighting how an attacker can leverage the guest account to inject SQL commands via the 'preview_graphs_per_page' setting. It further explains that the vulnerability can be chained through SQL injection and a PHP popen() function call to achieve remote code execution, even from an unauthenticated session.