A newly disclosed zero-day in Cacti, the open-source network monitoring tool, lets an unauthenticated attacker reach remote code execution in four HTTP requests when the guest account is enabled. No vendor patch exists yet, and the flaw has not been assigned a CVE identifier. It affects Cacti Core 1.2.31, which is the latest release. Original reporting for this article comes from The Hacker News.
The proof-of-concept exploit is tracked under two names, 4HTTP2SHELL and 4HTTP2ROOT. Each name describes the goal: four HTTP requests, then a shell or root-level control. The researcher who published it, known online as "ek0ms savi0r," demonstrated command execution as the Cacti server user from a fresh session and summarized the requirements this way:
"No login. No valid API key. No phishing. Just four HTTP requests against the default guest surface."
Cacti is a web-based tool that polls routers, switches, and servers and turns their traffic and health data into graphs. IT and network teams often install it once and leave it running in the background with little ongoing review. According to watchTowr, Cacti often stores credentials and connection details for devices across a network. For your business, that means a compromised Cacti server can give an attacker a foothold that reaches well beyond the monitoring system itself.
The guest account is what makes this exploitable. Cacti has shipped with guest access disabled by default since version 0.8.7, but some organizations turn it on so staff can view dashboards without signing in. That convenience removes the login requirement, and the entire exploit runs through the guest session. If your team enabled guest viewing on a Cacti instance at any point, that instance meets the condition for this attack.
Some threat feeds may label this as malware because named exploit tooling exists. The underlying issue is a flaw in Cacti's own code, with public proof-of-concept tooling built around it. Current reporting does not include confirmed in-the-wild exploitation, a list of affected versions beyond 1.2.31, or a fixed release, so those details remain unknown at this time.
How 4HTTP2SHELL and 4HTTP2ROOT Reach Code Execution in Four Requests
The chain depends on one precondition: the guest account must be enabled. Cacti has shipped with guest access disabled by default since version 0.8.7, so this path only exists where an administrator has turned guest viewing back on, usually so staff can view graphs without logging in. Once it is on, any visitor who opens a fresh HTTP session is treated as the guest user and inherits that account's permissions.
From there, the published research describes a three-stage flow. The source does not map each HTTP request to a stage, so the breakdown below follows the order of oper Why a Compromised Cacti Server Exposes More Than One Host Cacti exists to watch your routers, switches, and servers, so it needs a working connection to every one of them. That design is why watchTowr's advisory treats command execution on the Cacti host as a network-wide concern. "Because Cacti often stores credentials and connection details for routers, switches, servers, and other devices across a network, an attacker who reaches this level of command execution can gain a foothold reaching far beyond the monitoring server itself." (watchTowr advisory) Three properties make a monitoring server a useful foothold for an attacker: Stored device credentials.
Cacti typically holds SNMP community strings (the shared secrets network devices use to answer monitoring queries) along with connection details for the hosts it polls. Anyone who reads them can query or log into your network gear with the same access Cacti has. A ready-made network map. Device lists, interface graphs, and host names inside Cacti describe your topology in detail. An attacker can skip most of the reconnaissance that would otherwise create noticeable traffic. Trusted network reach. Monitoring hosts are usually allowed through firewalls into management networks and segments that ordinary servers and workstations cannot reach. That turns the Cacti server into a pivot point into the parts of your network that segmentation was built to protect. The exploit chain also gives an attacker write access to the poller table, the list of polling jobs Cacti runs on a schedule.
The source notes that altering this table can suppress alerts. In practice, your dashboards could keep showing normal graphs while devices are being accessed or reconfigured, and your team would have reason to doubt any monitoring data collected during the compromise. Command execution on the host opens the door to follow-on activity as well. With control of the server, and potentially root privileges, an attacker could install a cryptominer, stage tools for moving into infrastructure devices, or use harvested credentials to prepare a ransomware deployment elsewhere in your environment. The source does not report any of these outcomes occurring, but they are common uses for this level of access. Timing matters here. With no vendor fix available, the usual patch cycle offers no endpoint for this exposure.
Any Cacti instance in the vulnerable configuration stays exploitable for as long as that configuration remains in place, and a public proof of concept reduces the skill needed to attempt it. If your Cacti server is compromised, the incident-response scope extends to every device whose credentials it stored. Your team would need to treat those credentials as exposed, review router and switch configurations for unauthorized changes, and establish a timeline without fully trusting the monitoring records that would normally support it. That work consumes staff time, may require outside forensic help, and can cause planned downtime as credentials are changed across network equipment. Breach-notification obligations depend on what the attacker reached. Cacti's own data is largely operational, so the server alone may not hold personal information. If the attacker pivoted from it into systems containing customer, patient, or employee records, your regulatory, contractual, and cyber-insurance reporting duties could apply.
Tampered polling data also makes it harder for you to show that no sensitive data left the network, and that uncertainty often weighs on notification decisions. For decision-makers, the practical scope of a Cacti compromise is the full set of devices and network segments the monitoring server was trusted to reach. Reducing Exposure to the Cacti Guest Access Flaw Before a Patch Ships The most important step you can take is to turn off guest access in Cacti. In Cacti's authentication settings, clear the guest user selection or disable the guest account itself. Then confirm that a fresh browser session with no login lands on the sign-in page. The published chain cannot start without an enabled guest account, and there is no fixed release to install yet. Two more actions belong on today's list: Remove Cacti from direct internet exposure.
Restrict the web interface with firewall rules or an allowlist so only management networks or VPN users can reach it. This blocks outside visitors even if someone later re-enables guest viewing by mistake. Inventory every Cacti instance. Include lab builds, branch office installs, and servers set up by staff who have since moved on. An instance nobody tracks will not get the guest setting changed or the eventual patch applied. This week, check whether anyone used the flaw before you closed it. Review your web server access logs for unauthenticated or guest-session traffic. Look for a single session that requests auth_profile.php?action=update_data, then graph_view.php, then graph_realtime.php. That sequence matches the published exploit flow, so a guest session that submits a profile update and then calls the realtime endpoint needs a closer look. The database can show tampering too. The source advises reviewing poller configuration entries for unexpected command values.
You should also check the stored preview_graphs_per_page values for anything other than a plain number, since the exploit plants SQL text in that setting. On the Cacti host itself, hunt for the usual signs of post-exploitation activity: Shells or processes spawned by the web server user, such as command interpreters or network tools running under the account that serves Cacti. New cron jobs that would let an attacker regain access after a reboot. Unfamiliar files in the Cacti web root, including PHP files that do not belong to the standard install. New local accounts created after guest access was enabled. If you find evidence of compromise, rotate SNMP community strings and every device credential stored in Cacti, then rebuild the host from a clean install rather than trying to clean it. An attacker with command execution can leave persistence you will not find in a manual review.
Rotating credentials matters just as much, because the copied secrets still open your routers, switches, and servers after the Cacti host is gone. Over the longer term, track the Cacti project's security advisories and apply the fix as soon as it ships. After upgrading, recheck that guest access is still disabled and that your stored settings and poller entries look normal. Two design changes reduce the impact of the next flaw in a monitoring tool. First, place monitoring tools behind authenticated access by default, so no dashboard is reachable without a login, even internally. Second, segment monitoring servers so they have only the outbound access they need, typically polling traffic to the devices they watch. A Cacti server that cannot open arbitrary outbound connections gives an attacker far less room to pull in tools or send data out.
Document these rules so they survive staff changes and future rebuilds of the monitoring host. Key Action for Cacti Administrators The Cacti flaw behind 4HTTP2SHELL and 4HTTP2ROOT turns an enabled guest account into command execution on your monitoring server, and it takes only four HTTP requests. Because the issue sits in Cacti Core 1.2.31, the newest release, upgrading your installation does not close it. Your exposure comes down to two things you control: whether guest access is on, and who can reach the web interface. Your team relies on Cacti to report when something on the network breaks. The published research notes that an attacker can modify the poller table to suppress alerts. A compromised Cacti server could then stop reporting problems on the very devices it watches. With a public proof of concept available, using this flaw requires little skill.
The single most important action is to disable guest access and keep Cacti off public networks until the vendor ships a fix and you have applied it. With both in place, the published chain has no starting point on your server. If you are unsure how your Cacti instance is set up, the person or provider who manages your network monitoring and firewall rules can confirm the guest setting and whether the interface is reachable from outside. A security assessment is another reasonable step. It is a 15-minute call followed by written findings on five areas: remote access, security controls, dark web exposure, phishing risk, and employee training readiness.