# Cacti unpatched remote code execution detection pack (v1.0.0, 27 Nov 2026)

Slot: `cacti-unpatched-rce-2026-11-pack-v1`

This pack is for an unpatched remote code execution issue in Cacti that was publicly disclosed on 26 and 27 Nov 2026. Allowed news coverage tracks it as 4HTTP2SHELL (also 4HTTP2ROOT). No CVE identifier and no vendor or CNA CVSS score had been published as of 27 Nov 2026. This pack therefore rates the issue Unscored.

The issue is confirmed on Cacti Core 1.2.31 (the latest official release at the time of this pack) when the guest account is enabled. Whether earlier versions are also affected is unverified. Official Cacti documentation states that by default in 0.8.7 and later the guest user is not enabled, which disables unauthenticated guest access, until an administrator designates and enables a guest user in Authentication Settings.

Use the read-only checkers to compare a version you already know, or the official `include/cacti_version` file, with 1.2.31 and an operator-supplied guest flag. The checkers never open `include/config.php` (it holds database credentials), never connect to a database, and never contact a Cacti server. Manual, read-only SQL for guest and poller review is in this README only. Use the KQL hunts and Sigma rules to review requests to `auth_profile.php`, `graph_view.php` and `graph_realtime.php`, shells started by web or PHP processes, and outbound traffic from Cacti hosts. The KQL in this pack has NOT been run against a live tenant. Parsed offline with Kusto.Language against Microsoft Learn column lists. Test it in your own workspace before you rely on it.

There is no exploitation reported by BleepingComputer or Cacti as of 27 Nov 2026; not listed in CISA KEV as of 27 Nov 2026 (catalogue 2026.11.25, released 25 Nov 2026 at 19:48 GMT, 1805 entries; the only Cacti entry remains CVE-2022-46169 from 2023). KEV due dates bind US federal agencies only (BOD 26-04). Apply mitigations/patch now regardless.

Research is credited to security researchers only. Name no reporter, firm, team or programme. Cacti and The Cacti Group may be named as the vendor.

## Sources

- BleepingComputer, 27 Nov 2026: https://www.bleepingcomputer.com/news/security/unpatched-cacti-zero-day-with-public-poc-gives-remote-code-execution/
- The Hacker News, 27 Nov 2026: https://thehackernews.com/2026/11/unpatched-cacti-zero-day-enables-rce-in.html
- Official Cacti repository (latest release 1.2.31, published 15 Jun 2026 at 23:35 UTC, 16 Jun 2026 at 00:35 Europe/London): https://github.com/Cacti/cacti and https://github.com/Cacti/cacti/releases/tag/release/1.2.31
- Official version file `include/cacti_version`: https://github.com/Cacti/cacti/blob/release/1.2.31/include/cacti_version
- Official 1.2.31 settings (guest user and log paths): https://github.com/Cacti/cacti/blob/release/1.2.31/include/global_settings.php
- Official user management documentation (guest default in 0.8.7 and later): https://github.com/Cacti/documentation/blob/develop/User-Management.md
- Cacti project site: https://www.cacti.net/
- CISA KEV catalogue: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- CISA BOD 26-04 implementation guidance: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
- NVD Cacti publications 1-27 Nov 2026: no new records (checked 27 Nov 2026)

## Verified facts

Allowed news coverage describes this path, at a high level:

1. A guest session writes a non-numeric value into the `preview_graphs_per_page` setting via `auth_profile.php?action=update_data`. Official 1.2.31 source accepts a name and value on that action through `get_nfilter_request_var` and `api_auth_update_user_setting`.
2. Loading `graph_view.php` then uses the stored value in a way that allows a second-order SQL injection.
3. The Hacker News says the demonstrated SQL is an UPDATE against Cacti's poller table. Official 1.2.31 schema has both a `poller` table and a `poller_item` table; `poller_item` includes an `arg1` text column used as a poller command. Operators should review both. The precise table and column that the public demonstration changed is treated as UNVERIFIED beyond that news wording and the official schema.
4. Invoking `graph_realtime.php` then causes a modified poller command to be passed to PHP `popen()`. Official 1.2.31 `lib/poller.php` defines `exec_poll()` which opens the command with `popen()`.
5. Privileges depend on the account running the Cacti web server and poller processes.

BleepingComputer states: "The researcher tested the exploit against Cacti Core 1.2.31, but it is unclear whether earlier versions are also vulnerable." and "As of November 27, there have been no reports of the vulnerability being exploited in attacks." It also says administrators should deactivate the guest account, restrict the web interface to trusted networks, review poller configurations for unexpected commands, and examine application logs for warnings involving non-numeric values in graph display settings.

The Hacker News states the issue has yet to be assigned a CVE identifier, that it affects Cacti Core 1.2.31 when the guest account is enabled, and that the guest account is disabled by default starting with Cacti version 0.8.7.

Official Cacti documentation says that by default in 0.8.7 and later, the guest user is not enabled, effectively disabling guest (Unauthenticated) access to Cacti. The Guest User setting in official 1.2.31 code is `guest_user`, described as "The name of the guest user for viewing graphs; is 'No User' by default." Official text also says the Guest user must be enabled and be set as the guest user for anonymous access to work.

News reporting states the issue was disclosed publicly without a prior report to Cacti. The public write-up is dated to 26 Nov 2026 (Thanksgiving Day in the news coverage), with news articles on 27 Nov 2026.

No official Cacti security advisory, GitHub security advisory, or later release addressing this specific issue was found as of 27 Nov 2026. The latest official release remains 1.2.31 (15 Jun 2026). That release does fix earlier, separate issues in `graph_view.php` and `auth_profile.php` (for example an older pre-authentication SQL injection via `rfilter`, fixed in 1.2.31). Those are different bugs and do not close this issue.

Official Cacti 1.2.31 loads its version from `include/cacti_version` (a single token, for example 1.2.31) via `include/global.php`, which defines `CACTI_VERSION`. The default Cacti log path is `log/cacti.log` under the Cacti root (`path_cactilog`). An optional poller standard-error log is `log/cacti_stderr.log`.

## Checkers

`scripts/check-cacti-unpatched-rce.sh` and `scripts/Check-CactiUnpatchedRce.ps1` are read only: no network, no database connections, no file writes, no payloads. They never open `include/config.php`, `include/config.php.dist` or `csrf_secret.php`. They compare a version string, a saved `include/cacti_version` file, a Cacti install root (reading only `DIR/include/cacti_version`), or a CSV inventory with header `host,version,guest,fix`. Optional `--guest enabled|disabled|unknown` (default unknown) and `--fix none|shipped` (default none). Optional `--host` labels a single-row run. PowerShell also accepts `-VersionString`, `-VersionFile`, `-Root`, `-Csv`, `-Guest`, `-Fix` and `-HostName`.

Verdicts, until Cacti publishes a fixed release:

- Cacti Core 1.2.31 with guest enabled and `--fix none` is AFFECTED.
- Cacti Core 1.2.31 with guest disabled is REVIEW, with a note that disabling guest is the current mitigation, not a vendor fix.
- Cacti Core 1.2.31 with guest unknown is REVIEW.
- Versions earlier than 1.2.31 are REVIEW (affected range unverified). If guest is enabled, treat the host as potentially impacted until Cacti publishes a range.
- Versions later than 1.2.31 are REVIEW unless `--fix shipped` is set, in which case they are FIXED, and the operator must confirm the official release notes.
- Unparseable version strings are REVIEW and the input is printed as `(not shown)`.

On a multi-row CSV the worst result wins: AFFECTED, then REVIEW, then FIXED.

Exit codes:

| 0 | FIXED | operator asserted a shipped Cacti fix and the version is later than 1.2.31 |
| 2 | AFFECTED | at least one row is Cacti Core 1.2.31 with the guest account enabled and no shipped fix |
| 3 | REVIEW | nothing is AFFECTED, and at least one row is unverified, mitigated only, or unparseable |
| 5 | usage or read error | missing options, a missing file, a denied config file, a bad CSV header, or a duplicated option |

Every non-usage run prints Apply mitigations/patch now regardless. Examples:

    bash scripts/check-cacti-unpatched-rce.sh --version 1.2.31 --guest enabled
    bash scripts/check-cacti-unpatched-rce.sh --version 1.2.31 --guest disabled
    bash scripts/check-cacti-unpatched-rce.sh --root /opt/cacti --guest enabled
    bash scripts/check-cacti-unpatched-rce.sh --version-file saved-cacti_version.txt
    bash scripts/check-cacti-unpatched-rce.sh --csv inventory.csv

Do not pass `include/config.php` to `--version-file` or `--root`. The checker refuses those names without opening them.

## KQL and Sigma

Eleven KQL hunts in `kql/cacti-unpatched-rce-hunting.kql` and seven Sigma rules in `sigma/`. Every hunt and rule is labelled OUR PATTERN. The KQL in this pack has NOT been run against a live tenant. Sigma descriptions include the line that the rules were not run against live data. Replace the Cacti host list and the RFC 5737 management-range placeholders with your values.

The hunts cover requests to `auth_profile.php` (including `action=update_data` and `preview_graphs_per_page`), `graph_view.php` and `graph_realtime.php`, chained requests from the same source, those scripts from outside management ranges, forwarded syslog that names the scripts, a web or PHP process starting a shell on a Cacti host, outbound connections from a Cacti host, and log file events on official default log names. No exploit payload strings are used as indicators.

Converted Sigma output lives in `sigma/converted/`. Some pipelines have documented conversion failures; see that folder after `tests/run_all.sh` with `REGEN=1`.

## Manual checks (no payloads)

These are operator steps only. This pack's checkers do not perform them, do not connect to MySQL or MariaDB, and must not be changed to reach a live Cacti server or its database.

1. In the Cacti UI, open Authentication Settings (Console, Configuration, Settings, Authentication). Confirm whether a Guest User is selected. Official documentation: the guest user must be enabled and set as the guest user for anonymous access to work. If a guest user is selected, disable guest access: set Guest User to No User, and disable or restrict that account under User Management.
2. Restrict the Cacti web interface to trusted management networks or a VPN. Do this at the web server or a firewall, not with this pack's checkers.
3. Read the official version file only: `include/cacti_version` under the Cacti root (a single token such as 1.2.31). Do not open `include/config.php`.
4. Review `log/cacti.log` (and `log/cacti_stderr.log` if you set it) for warnings about non-numeric values in graph display settings, unexpected poller activity, and SQL errors. Line formats are UNVERIFIED.
5. If you have database access, run only the read-only queries below, as a database administrator, and never select password, community string or passphrase columns. Do not change any rows with these checks.
6. If you find unexpected guest access, unexpected `preview_graphs_per_page` values, or unexpected poller commands, rotate credentials stored in Cacti (including monitored-device and SNMP credentials). This is OUR advice, not a quoted Cacti step.
7. Apply a Cacti patch when one is published. Apply mitigations/patch now regardless.

Read-only SQL (official 1.2.31 table and column names). Do not use `SELECT *`. The `poller` and `poller_item` tables contain credential columns; they are omitted on purpose.

    -- Guest user id in settings. Official default is 0, meaning No User.
    SELECT name, value FROM settings WHERE name = 'guest_user';

    -- Accounts and enabled flags. Do not select password.
    SELECT id, username, enabled, realm FROM user_auth;

    -- Stored preview page size. Look for values that are not a plain integer.
    SELECT user_id, name, value FROM settings_user WHERE name = 'preview_graphs_per_page';

    -- Poller command strings. Do not select snmp_community, snmp_password, snmp_priv_passphrase,
    -- snmp_username, dbuser, dbpass or other secret columns.
    SELECT local_data_id, poller_id, host_id, action, last_updated, rrd_name, arg1 FROM poller_item;
    SELECT id, disabled, name, hostname, status, last_update FROM poller;

## Unverified

- Whether Cacti versions earlier than 1.2.31 are affected.
- The exact table and column modified by the public demonstration (news coverage says "poller table"; official schema also has `poller_item.arg1`).
- Web and application log line formats for non-numeric warnings and SQL errors.
- Exact Defender or firewall ActionType values on your tenant, and parent process names for PHP or the web server.
- Whether a CVE, GitHub security advisory, or official patch will be published after 27 Nov 2026.
- A live-tenant test of the KQL or Sigma rules.
- Any later CISA KEV listing after catalogue 2026.11.25.

## Differences from the original flag

The original flag is accurate on the lead facts: public disclosure on 26 to 27 Nov 2026, the high-level mechanism and script names, confirmed on Cacti Core 1.2.31 with guest enabled, earlier versions unverified, guest disabled by default from 0.8.7, Unscored (no CVE or CVSS), no official Cacti advisory or patch as of 27 Nov 2026, not in live KEV, and the mitigation to disable guest and restrict the web UI. Nuances:

1. BleepingComputer, not Cacti, is the source for "no reports of the vulnerability being exploited in attacks" as of 27 Nov 2026. No official Cacti statement on exploitation was found. This pack uses: no exploitation reported by BleepingComputer or Cacti as of 27 Nov 2026.
2. The Hacker News says the SQL updates "Cacti's poller table". Official 1.2.31 schema has both `poller` and `poller_item`. Review both, and do not print secret columns.
3. 1.2.31 already contains fixes for earlier, separate `graph_view.php` and `auth_profile.php` issues. Those fixes do not address this issue.
4. Official guest wording is that in 0.8.7 and later the guest user is "not enabled" / not set, which effectively disables guest access, and that a designated guest user must be both enabled and selected in Authentication Settings.
5. NVD returned no Cacti CVE records published between 1 and 27 Nov 2026. Do not invent a CVE.
6. The public tracking names 4HTTP2SHELL and 4HTTP2ROOT appear in allowed news. This pack uses them as names only and does not link to any exploit repository.

## Notes for the web page

1. Attach pack slot `cacti-unpatched-rce-2026-11-pack-v1` and the store folder `threat-hunt/cacti-unpatched-rce-2026-11/`.
2. Title the page as an unpatched Cacti remote code execution issue, optionally with the news names 4HTTP2SHELL or 4HTTP2ROOT. Do not invent a CVE.
3. Rate it Unscored. Never apply a 9.0-or-higher severity label on this page until a vendor or CNA CVSS of 9.0 or higher exists, and then only on the same line as that score.
4. Use: no exploitation reported by BleepingComputer or Cacti as of 27 Nov 2026; not listed in CISA KEV as of 27 Nov 2026. Do not write a flat denial of use.
5. Confirmed affected configuration: Cacti Core 1.2.31 with the guest account enabled. Say that earlier versions are unverified, and that official documentation disables guest by default from 0.8.7.
6. There is no official patch as of 27 Nov 2026. Lead with disabling the guest account and restricting the web UI to trusted networks.
7. Credit security researchers only. Name no reporter, firm, team or programme. Do not link to any exploit repository, write-up repo or demonstration video.
8. Mark hunting advice as OUR PATTERN. Do not invent payloads, log lines, or process names, and do not reproduce exploit SQL.
9. If you mention poller review, name official tables `poller` and `poller_item`, and tell operators not to print credential columns.
10. Include the live-tenant KQL caveat, the BOD 26-04 KEV caveat (US federal agencies only), and Apply mitigations/patch now regardless.
11. If a standalone hunting.kql upload is blocked, keep the file inside the KQL zip and the full-pack zip.
12. Cite BleepingComputer and The Hacker News as allowed news, plus official Cacti repository and documentation links. Do not cite other blogs or repositories.

## Layout

- `scripts/check-cacti-unpatched-rce.sh` and `scripts/Check-CactiUnpatchedRce.ps1`
- `kql/cacti-unpatched-rce-hunting.kql`
- `sigma/` and `sigma/converted/`
- `tests/` (including `tests/run_all.sh`)
- `README.md` and `CHANGELOG.md`
