A researcher has published a full exploit chain for an unpatched vulnerability in Cacti, the open-source network graphing and monitoring platform, that lets an attacker without credentials run operating system commands on the server. The attack works against Cacti 1.2.31, the current release, whenever the built-in guest account has been enabled, and needs only four HTTP requests from start to finish.
The flaw, nicknamed 4HTTP2SHELL by its finder and tracked by watchTowr as 4HTTP2ROOT, has no CVE identifier and no vendor fix at the time of writing. Because the proof of concept is already public, administrators who expose Cacti with guest access switched on should treat this as urgent and apply the workarounds below.
What happened
On 26 November, a researcher who goes by ek0ms savi0r posted a write-up and exploit materials titled “Four Requests to Root: A Cacti 0day” to a public GitHub repository. The Hacker News reported on the findings on 27 November, and watchTowr published an FAQ the same week describing the issue as an unpatched zero-day.
According to the researcher’s write-up, the chain starts with a guest user saving a crafted value into the per-user preview_graphs_per_page setting through auth_profile.php?action=update_data. Cacti checks the setting name but not that the value is an integer. When the guest then loads graph_view.php?action=preview, the stored value is used as the default row limit and, the researcher says, is concatenated directly into the LIMIT clause of a SQL query in get_allowed_graphs(). Input validation applied to request parameters never sees this stored default.
Because the database driver accepts stacked statements, the injected text can carry a second statement that rewrites entries in the poller_item table, including the command field the poller later executes. A final request to graph_realtime.php?action=init triggers real-time polling, which passes that command to popen() without an allowlist, according to the write-up. The four steps are: obtain a guest session and CSRF token, write the payload to the profile, trigger the SQL, and fire the real-time poller.
Who is affected
watchTowr lists Cacti 1.2.31 as affected and states that no fixed version is available. Exposure depends on configuration: the attack requires the guest account to be enabled. The Hacker News notes that Cacti has shipped with guest access disabled by default for many years, so only installations where an administrator has turned it on, typically to share dashboards without logins, are directly reachable. Neither source states whether earlier releases are also vulnerable, so administrators running older versions should not assume they are safe.
The privileges an attacker gains match the account that runs the Cacti web server and poller. The researcher’s lab ran both as root, hence the “to root” title, but watchTowr and the researcher both point out that on a typical deployment commands would run as the web service user, such as www-data or apache. From there, an attacker would have access to the monitoring database, stored device credentials such as SNMP community strings, and a foothold inside the management network.
Severity and exploitation
No CVE or official CVSS score has been assigned. The issue is not listed in the CISA Known Exploited Vulnerabilities catalogue, and watchTowr said it was not aware of exploitation in the wild as of 27 November. However, the researcher has published working exploit material, including a shell script and a recording of the chain, which lowers the bar for attackers considerably. Cacti servers have been targeted repeatedly in the past once public exploits appeared, and monitoring systems are attractive because they usually have broad network reach.
We found no Cacti security advisory or new release addressing the flaw on the project’s GitHub pages at the time of writing.
What defenders should do now
- Check whether the guest account is enabled in Cacti’s authentication settings and disable it unless there is a strong business need.
- Restrict access to the Cacti web interface to trusted management networks or a VPN; it should not be reachable from the internet.
- Review the
poller_itemtable and data input methods for unexpected command values, and compare against a known-good backup where possible. - Search web server and Cacti logs for requests to
auth_profile.php,graph_view.php?action=previewandgraph_realtime.php?action=initfrom guest sessions, and for warnings about non-numeric values. - Look for new files, shells or unexpected child processes created by the web server or poller account.
- Make sure the web server and poller do not run as root, and rotate SNMP and device credentials stored in Cacti if compromise is suspected.
- Watch the Cacti GitHub releases and security advisories for an official fix and apply it as soon as it is published.
SCVM analysis
This chain is a reminder that “validated on input” is not the same as “safe at use”. The Cacti code checks request parameters, but a value stored earlier through a different page arrives at the SQL query by a path the validation never covers. Second-order injection of this kind is easy to miss in review and in automated scanning. The practical saving grace is the guest-account requirement, but that setting is exactly the sort of convenience option that gets switched on for a wall dashboard and forgotten. Monitoring platforms hold credentials for, and connectivity to, a large share of the network, so an exposed Cacti instance with guest access is a direct path into infrastructure. With a public exploit and no patch, organisations should close that door now rather than wait for a release.
Sources
- The Hacker News: Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access
- ek0ms savi0r (GitHub): Four Requests to Root, A Cacti 0day
- watchTowr: Frequently Asked Questions About the Cacti Remote Code Execution (4HTTP2ROOT Zero-day)
- Cacti (GitHub): Releases
About this article: produced by the SCVM Newsroom with AI assistance from the public sources linked above, enriched with NVD, FIRST EPSS and CISA KEV data, and checked by automated quality controls under our editorial policy. Spotted an error? Request a correction.

