8.8

CVSS 3.1 score in Cacti's advisory

1,841

exploitation attempts Previdian logged in four days

111

distinct source addresses behind them

1.2.32

the fixed release, not yet published

Why turning off Cacti guest access does not fix 4HTTP2SHELL

Switching off the Cacti guest account closes the door the public exploit uses. It does not close the flaw behind that door. That is the part of this week's Cacti story most teams will miss, because the workaround is quick, it is in every write-up, and it makes the scary headline go away.

The public chain, called 4HTTP2SHELL and first published as 4HTTP2ROOT, starts from an anonymous guest session on Cacti 1.2.31 and ends with operating system commands running on the monitoring server. Attempts to use it began the day after it went public. Turn guest access off and the anonymous version of that chain stops working.

The bug underneath it is a stored SQL injection in a user display setting, and Cacti's own advisory is blunt about who can reach it: any logged in user with the default Normal User permissions. That user can write to the whole Cacti database, make themselves an administrator, and from there run commands through features administrators are meant to have. Most Cacti installs have accounts like that. Operations staff, a help desk view, a shared login for the wall screen in the network operations centre, an account made for a contractor two years ago.

So our position is plain. Disable guest access today, because it removes the unauthenticated path that attackers are already trying. Then treat the job as half done. The fix is a patch you apply by hand, the release that carries it has not shipped, and the server you are protecting holds the credentials for much of your network. Until the patch is in and verified, every account that can log in to Cacti is a path to the routers and switches it watches.

What Cacti, watchTowr and Previdian have published

The timeline is short. Cacti 1.2.31, the current release, came out on 15 Jun 2026. According to the Cacti security advisory, GHSA-5x85-g4vc-gq53, the underlying flaw was reported privately to the project on 19 Nov 2026. On 26 Nov, before any fix was public, a separate researcher published a working chain on GitHub that reached command execution from a guest session in four HTTP requests. watchTowr and Previdian both describe that disclosure in their own write-ups.

Exploitation attempts followed within a day. Previdian says it first saw attempts against its Cacti honeypots on 27 Nov 2026 at about 08:48 UTC, starting with 22 time based SQL injection probes and moving on to requests consistent with trying to get command execution. Between 27 and 30 Nov it logged 1,841 exploitation attempts from 111 distinct source addresses. Previdian is careful about what that proves: it says successful command execution on production servers has not been confirmed from its observations. The watchTowr FAQ goes further and lists the flaw as exploited in the wild, saying it captured active exploitation on 27 Nov. SecurityWeek reported both firms' findings under the line that attacks began one day after the exploit code was published.

Cacti's maintainers moved quickly. They committed fixes to the 1.2.31, 1.2.x and develop branches on 28 Nov and published the advisory on 29 Nov. The advisory rates the flaw 8.8 under CVSS 3.1, network reachable, low complexity, low privileges required, no user interaction. It lists every version up to and including 1.2.31 as affected and names 1.2.32 as the fixed release. As of 2 Dec 2026 the project's releases page still shows 1.2.31 as the latest release, so the fix exists only as a patch. No CVE ID has been assigned.

Previdian rates the unauthenticated guest chain at 9.8 by its own assessment, which reflects the difference between the bug as Cacti scored it and the chain as attackers use it. On the scale we use across the site, an exposed Cacti 1.2.31 server with guest access on is critical. The same server with guest access off is still high, because a single ordinary account is all the flaw needs.

The same day, Cacti published six more advisories, including CVE-2026-39949, an authenticated remote code execution through host variable injection. All six cover issues the project lists as fixed in 1.2.31. They matter for one group in particular: anyone still on 1.2.30 or older has those six to deal with as well as this one.

4HTTP2SHELL (GHSA-5x85-g4vc-gq53)High
  • Product //

    Cacti network monitoring, core
  • Affected //

    up to and including 1.2.31
  • Fixed in //

    1.2.32, not yet released; maintenance patch for 1.2.31 available
  • CVSS //

    8.8 (3.1, Cacti); no CVE assigned
  • Login needed //

    a Normal User account, or none where guest access is on
  • Exploited //

    yes per watchTowr; 1,841 attempts seen by Previdian

How a display setting becomes a shell in four requests

Cacti lets each user change small display preferences, such as how many graphs show on a preview page. The advisory explains that one route for saving those preferences stored whatever value it was given, with no check that a number was really a number. Later, when the preview page loaded, Cacti used the stored value as a default and placed it into a database query without the filter that would normally have caught it. Because the database connection allowed several statements in one call, the extra text in the setting ran as its own SQL.

That is the whole bug: a value one part of the code trusted because another part was supposed to have checked it. Each half looks fine on review. The flaw lives in the gap between them.

The public chain adds two things. It starts from the guest account instead of a real login, which is possible wherever an administrator has switched guest viewing on. And it uses the database write to change a poller setting into a shell command, which a page the guest can reach then runs. watchTowr's summary is that the requests involved look normal in isolation: a guest session, a profile update, a preview request, a real time graph request. There is no file upload and no obvious payload in a URL.

We describe what each stage achieves and leave the method out.

Figure 01

From a display setting to the network

  1. 01

    Enter //

    A guest or Normal User session opens.

  2. 02

    Store //

    A display setting saves unchecked text.

  3. 03

    Inject //

    A graph page runs that text as SQL.

  4. 04

    Run //

    A poller setting becomes a command.

  5. 05

    Reach //

    Stored device credentials are read.

Result //

The monitor becomes the attacker's map and keys.

Steps 02 and 03 are the bug, and any Normal User reaches them. Disabling guest access only removes the anonymous way into step 01.

The command runs with the privileges of the account behind the Cacti web server and poller. watchTowr notes that is often a low privilege web user rather than root. Previdian notes the original demonstration reached root on a lab install where Cacti itself ran as root. Either way the attacker holds the Cacti database and the server's view of the network, and that is the real prize.

Why Cacti admin means the keys to your network

Cacti exists to talk to other devices. To graph a router's interfaces or a server's load, it holds the details it needs to ask them. watchTowr lists SNMP strings and device logins among the credentials Cacti stores, and describes it as a central point of trust inside many enterprise networks. A monitoring server is rarely the most protected box in the estate, and it is often one of the best connected.

That changes how this flaw should be scored inside an organisation. Scored as one web application, it is an 8.8 in a tool many teams think of as plumbing. Scored by what it opens, it is a route to the credentials and the network position of the system that watches everything else. Four things come with it.

  • The map. Cacti's database lists the devices it polls, their addresses and what they are. An attacker gets a current inventory of the network without scanning it.
  • The credentials. SNMP strings with write access can change device configuration. Reused device passwords reach further.
  • The position. Monitoring servers are allowed through firewalls to management interfaces that ordinary hosts cannot reach. A shell on the poller inherits that reach.
  • The cover. A server that talks to every device all day is a quiet place to run reconnaissance from. Its traffic is expected.

This is not the first time Cacti has been on the front line. CISA's Known Exploited Vulnerabilities catalog has listed CVE-2022-46169, an earlier Cacti command injection, since 16 Feb 2023. The pattern holds: monitoring tools are attractive because they sit in the middle, and they are often left on old releases because they keep working.

For a defender, the practical point is ordering. Patching the server comes first. If there is any sign it was touched, the next job is rotating what it stored, because the patch does not take back a community string that has already been read.

How to patch Cacti 1.2.31 before 1.2.32 ships

There is no new release to install yet. The advisory gives a maintenance patch for the 1.2.31 tag as a single commit, with separate commits for the 1.2.x and develop branches, and tells administrators how to apply it to an existing install. Previdian's advice is the same: apply the vendor patch rather than wait for 1.2.32. We agree. Back up the install and the database first, apply the patch, and confirm it applied cleanly rather than assuming it did.

Patching by hand brings a problem that rarely gets discussed. Your inventory cannot see it. A server running patched 1.2.31 reports exactly the same version string as an unpatched 1.2.31. Vulnerability scanners that match on version will flag both, so the patched servers keep showing up as findings and teams learn to ignore the alert. Or a scanner rule gets written later that marks 1.2.31 as fine, and the unpatched ones vanish from the report. Either way the version number has stopped telling the truth.

We saw the same shape with PHP itself in October, where vendor backports and end of life branches made version strings unreliable; our PHP stale workers analysis covers it. The answer is the same here. Keep a record of which servers had the patch applied, by whom and when, and verify it on the box: the patched files differ from the release files, and a checksum comparison against the patched commit is quick. When 1.2.32 ships, upgrade, and the version string becomes useful again.

While you are on the box, apply the workarounds the advisory lists whether or not the patch went in:

  • Guest User set to No User under the authentication settings. This removes the unauthenticated path.
  • Web interface behind a VPN or an allowlist. Cacti's console has no reason to be reachable from the internet, and Previdian's honeypots show it is being looked for.
  • Update Profile permission limited for accounts you do not fully trust, until the patch is in.

If you run Cacti on 1.2.30 or earlier, the patch is written for 1.2.31. Upgrade to 1.2.31 first, which also clears the six other advisories published on 29 Nov, then patch.

How to tell if your Cacti server was hit

The chain leaves traces in three places: the stored settings, the logs, and the processes the poller starts.

The settings. The advisory tells administrators to check the per user settings table for non numeric values in preferences that should hold numbers. It names six of them, including the graphs per page settings for the preview and tree views and the real time interval. A value in one of those fields that is anything other than a plain number is a strong sign someone tried this. Check the guest account's row in particular, and check every account, because the authenticated path does not need guest access at all.

The poller. The public chain rewrites a poller setting to a shell command. Compare the poller and path settings with a known good backup or with what your team configured. A command you did not write in a field that normally points at a binary or a script is a compromise until shown otherwise.

The logs. watchTowr says the chain produces warnings about non numeric values in display settings, and that the request still succeeds. The advisory confirms Cacti's error handler logs that warning and carries on. A burst of those warnings tied to the graph view pages, especially from a guest session or an account that does not normally use the web interface, is worth a look.

On the host, the signal is the poller or the web server starting processes it does not normally start. Cacti does run scripts as part of normal polling, so the rule below needs a baseline of what your data input methods call.

Figure 02

Cacti log warnings and unexpected children of the poller

Sigma

title: Non numeric value warnings from Cacti graph view pages
status: experimental
description: Flags PHP warnings about non numeric values raised by the Cacti graph view pages, which watchTowr describes as a side effect of the 4HTTP2SHELL chain. Ship cacti.log to your SIEM under this log source.
logsource:
  product: cacti
  service: application
detection:
  keywords_warning:
    - 'non-numeric value'
  keywords_page:
    - 'graph_view.php'
  condition: keywords_warning and keywords_page
falsepositives:
  - Misconfigured preferences after an upgrade; review the account and the stored value
level: high
---
title: Shell or network tool started under the Cacti poller or web server
status: experimental
description: Flags shells and download or network tools started by the Cacti poller or the web server process on the Cacti host. Baseline the scripts your data input methods call and exclude them.
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentCommandLine|contains:
      - 'poller.php'
      - 'cmd.php'
      - 'script_server.php'
      - 'graph_realtime.php'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/curl'
      - '/wget'
      - '/nc'
      - '/python3'
  condition: selection_parent and selection_child
falsepositives:
  - Data input methods that call shell or Python scripts by design
level: medium
A starting point to tune against your own telemetry, not a production rule.

If any of those checks finds something, the response is wider than the Cacti server. Rotate the SNMP strings and device credentials Cacti holds, review the configuration of the devices it could write to, and look at management interface logs on those devices for logins from the poller that did not come from normal polling. Image the server before you clean it.

How we test monitoring servers on an engagement

On internal and assumed breach engagements, monitoring servers are among the first things we look for, and Cacti is a common find. Our first hour on an internal network walkthrough explains why: the systems that watch the network usually know the most about it.

When we find one, the questions are simple. Which release is it on, and if it claims 1.2.31, is the patch really in? Is guest access on? Which accounts exist, and does a low privilege login we already hold, or can get, reach it? We test the injection class with the same care our SQL and command injection testing guide describes: prove that the flaw is there and what it reaches, without changing poller settings or running commands on a production monitor.

Then we answer the question the client actually cares about. What does this server hold, and where can it go? We show which device credentials are stored, which of them still work elsewhere, and which management networks the poller can reach that our foothold could not. We prove that impact at the lightest touch possible, the way our network impact without damage guide sets out. That turns one finding in a tool nobody thinks about into a clear line from an ordinary account to the network core.

For internet facing estates, the first step is simpler: find out whether any Cacti console is reachable from outside at all. Our open source recon tool, atarus-recon, builds that list from a domain before we touch a single host.

What to do today

  1. Turn off guest access now. Set Guest User to No User on every Cacti install, and take the console off the internet if it is reachable from there.

  2. Apply the 1.2.31 maintenance patch by hand. Back up first, apply the commit from the advisory, confirm it applied, and record which servers carry it. Upgrade to 1.2.32 when it ships.

  3. Upgrade anything older than 1.2.31 first. That clears the six other advisories published on 29 Nov, then the patch applies.

  4. Check every account's stored settings. Look for non numeric values in the six preferences the advisory names, and compare poller settings with a known good backup.

  5. Load the Detection rules and review accounts. Remove logins nobody uses and limit Update Profile until the patch is in.

  6. Rotate what Cacti holds if anything looks wrong. SNMP strings and device credentials first, then review the devices those credentials could change.