Breaking
SecurityDeveloping Story

Cacti Flaw Exploited Within a Day of PoC Release

Attackers began exploiting a high-severity SQL injection in Cacti one day after proof-of-concept code went public, researchers say.

··3 hours ago·5 min read
red padlock on black computer keyboard
Photo by FlyD on Unsplash

Within 24 hours of proof-of-concept exploit code being published online, attackers began targeting a high-severity SQL injection flaw in Cacti, the open source network monitoring and graphing tool built on RRDtool. The exploit, initially called 4HTTP2ROOT and later renamed 4HTTP2SHELL, turns a bug that normally requires authentication into an unauthenticated path to remote command execution on the Cacti server.

The flaw affects Cacti Core version 1.2.31. Cacti’s maintainers have released patches for the 1.2.31, 1.2.x, and ‘develop’ branches, with the fixes to be included in version 1.2.32. The vulnerability carries a CVSS score of 8.8 but has no CVE identifier yet.

From Normal User to Admin

At its core, the bug is a SQL injection that lets any authenticated user with the default ‘Normal User’ permissions gain read/write access to the entire Cacti database as the application DB user. From there, an attacker can take over the administrator account and, through intended administrative features, execute remote commands on the Cacti server.

“Any authenticated user holding the default ‘Normal User’ permissions obtains read/write access to the entire Cacti database as the application DB user. This yields administrator takeover and, through intended administrative features, remote command execution on the Cacti server,” Cacti said.

The defect was privately reported to Cacti by DevOps engineer Amdadul Bari on November 19. The maintainers credited Bari in their advisory and announced that patches had been released.

The Guest Account Multiplier

On November 26, two days before Cacti’s advisory, another researcher published proof-of-concept exploit code that chains the SQL injection with ‘guest’ access and real-time graph handling. Cacti has had the guest account disabled by default since version 0.8.7, but when that account is enabled, the exploit requires no account or valid session at all.

The chained exploit, 4HTTP2SHELL, has been tested against Cacti Core version 1.2.31 with the guest account enabled. It uses four HTTP requests to turn the SQL injection into a shell.

“The four-request path is also quiet. A guest session is normal. A profile update is normal. A preview request is normal. A real-time graph request is normal. There is no upload, no exploit payload in a URL that looks like a shell, and no authentication event,” the researcher says.

Preemptive cybersecurity firm WatchTowr described the mechanics in detail: “The attacker starts as an anonymous guest, writes an unvalidated value into a per-user display setting, and that value is later inserted into a database query that the server treats as more than one command. One of those extra commands changes a poller setting to a shell command, which a separate guest-reachable page then executes,” WatchTowr explains.

“The four-request path is also quiet. A guest session is normal. A profile update is normal. A preview request is normal. A real-time graph request is normal. There is no upload, no exploit payload in a URL that looks like a shell, and no authentication event.”

— the researcher who published the 4HTTP2SHELL proof-of-concept

Exploitation Begins

The first in-the-wild exploitation attempts targeting 4HTTP2SHELL were observed on November 27, according to warnings from Previdian and WatchTowr. Previdian reported observing nearly 1,800 attempts.

The rapid turn from published proof-of-concept to active exploitation compresses the window organizations have to patch. Cacti’s advisory and patches arrived after the exploit code was already public, and attacks followed within a day.

Mitigation Steps

Organizations running Cacti are advised to disable the guest account in their deployments. They should also ensure the platform is only accessible from trusted networks, review unexpected changes to user settings, and enforce least privilege policies.

Because the exploit relies on a guest session, deployments that have the guest account enabled are directly exposed to the unauthenticated variant. Cacti’s default configuration disables guest access since version 0.8.7, but the researcher’s test environment had it enabled.

The Numbers Behind the Flaw

  • CVSS score: 8.8 — high severity, no CVE identifier assigned yet.
  • Affected version: Cacti Core 1.2.31 — patches also released for 1.2.x and ‘develop’ branches, to be included in version 1.2.32.
  • November 19 — date the flaw was privately reported by DevOps engineer Amdadul Bari.
  • November 26 — date the proof-of-concept exploit code was published.
  • November 27 — first observed in-the-wild exploitation attempts.
  • Nearly 1,800 attempts — volume observed by Previdian.
  • Four HTTP requests — number used by 4HTTP2SHELL to turn the SQL injection into a shell.

Why the Guest Account Matters

Cacti allows enterprises to collect and track data from network devices such as routers, servers, and switches. The platform’s guest account, disabled by default since version 0.8.7, provides limited access for unauthenticated users. When enabled, it becomes the entry point for the 4HTTP2SHELL chain.

The exploit’s four requests blend into normal traffic: a guest session, a profile update, a preview request, and a real-time graph request. None of these individually looks like an attack. As the researcher noted, there is “no upload, no exploit payload in a URL that looks like a shell, and no authentication event.”

WatchTowr’s explanation breaks down the sequence: an unvalidated value written into a per-user display setting is later inserted into a database query treated as multiple commands. One of those commands changes a poller setting to a shell command, which a separate guest-reachable page then executes.

What to Watch For

Security teams should review Cacti logs for unexpected changes to user settings, particularly display settings tied to guest accounts. The exploit leaves no obvious payload in URLs and no authentication event, making detection reliant on behavioral anomalies rather than signature-based tools.

Restricting Cacti access to trusted networks reduces exposure to unauthenticated attacks. Enforcing least privilege ensures that even authenticated users cannot exceed their intended permissions — though the SQL injection bypasses that boundary by design.

The absence of a CVE identifier means vulnerability scanners and tracking systems may not yet flag the flaw. Organizations should verify their Cacti version and apply the patches released for the 1.2.31, 1.2.x, and ‘develop’ branches.

Why It Matters

The sequence — private report on November 19, public proof-of-concept on November 26, Cacti’s advisory, then in-the-wild attempts on November 27 — suggests that attackers are monitoring for new exploit code and acting on it quickly. For defenders, the practical takeaway is that the gap between disclosure and exploitation can be measured in hours, not weeks. Organizations running Cacti should treat the guest account as a critical configuration item and confirm that patches are applied across all branches. The lack of a CVE identifier adds friction to automated tracking, so manual verification may be necessary. This story was reported by SecurityWeek; independent corroboration of the exploitation volume and timeline has not yet been published.

#cacti#sql injection#remote code execution#guest account#proof-of-concept#exploitation

Sources

Iliyas

Founder & Editor, Xploitwire

This article was written and reviewed against the sources listed above before publication, under editorial policies set by Iliyas. Read our Editorial Policy →

← Back to all stories