P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

Unpatched Cacti 1.2.31 four-request 4http2shell RCE chain disclosed via guest access, researcher says

A 26 November 2026 write-up details 4http2shell, four unauthenticated HTTP requests chaining guest profile storage and second-order SQL injection to popen() in Cacti 1.2.31. As checked 165 days after 1.2.31 shipped (derived), no vendor patch or CVE exists.

By · LinkedIn · · 8 min read

165 days after Cacti 1.2.31 shipped, a four-request guest RCE chain remains unpatched

Cacti Core 1.2.31 was released on 15 June 2026 (2026-06-15T23:35:24Z) on Cacti's official GitHub repository. Exactly 164 days later (derived), on 26 November 2026, a researcher publishing under the handle ek0ms savi0r and the group name Church of Malware disclosed 4http2shell, an unauthenticated four-request remote code execution chain targeting Cacti Core 1.2.31 when the guest account is enabled. As checked at 12:26 UTC on 27 November 2026, 165 days after 1.2.31 shipped (derived), 1.2.31 remains the latest release tag on GitHub, no security advisory for 4http2shell appears in Cacti's GitHub security advisories list (whose most recent entry is dated 27 July 2026), and zero matching CVE records exist in the National Vulnerability Database.

That timeline does not establish active exploitation in the wild, the number of internet-exposed Cacti 1.2.31 servers with guest access enabled, whether earlier 1.2.x releases share the same code path, or whether any named enterprise uses a vulnerable configuration. What the primary technical write-up does establish is a reproducible chain in an isolated lab host where four ordinary-looking HTTP requests move from a fresh, unauthenticated visitor session to arbitrary shell execution via popen().

Four HTTP requests from guest session to popen() execution

The trigger condition requires no credentials, no valid API key, and no user interaction, provided the Cacti guest account is enabled. Unlike memory corruption or deserialisation bugs, 4http2shell chains a configuration write, a second-order SQL injection in get_allowed_graphs(), PDO stacked-statement support, and command execution in the realtime poller.

Request 1: Obtain a guest session (auth_profile.php). An unauthenticated GET request to auth_profile.php with tab=general and header=false returns HTTP 200 with a valid Set-Cookie: Cacti=... header, the page title User Profile (Edit), and a csrfMagicToken value embedded in the HTML response. No login form or credentials are submitted.

Request 2: Write the SQL payload (action=update_data). Using the guest cookie and extracted CSRF token, the visitor sends a POST request to auth_profile.php with action=update_data, name=preview_graphs_per_page, and a value containing a semicolon-terminated stacked UPDATE statement targeting poller_item.arg1 (with the shell command hex-encoded) and a trailing SQL comment (-- ). The endpoint verifies that the setting name exists and writes the string into the settings_user table using a prepared statement, but it does not validate that preview_graphs_per_page is an integer.

Request 3: Trigger second-order SQL injection (graph_view.php). A GET request to graph_view.php with action=preview, page=1, and clear=1 reads the stored preview_graphs_per_page value as the default for the graphs filter. At graph_view.php:657, Cacti constructs $limit by concatenating get_request_var('graphs') and get_request_var('page'), and lib/auth.php:1574-1578 inside get_allowed_graphs() builds $sql_limit = "LIMIT $sql_limit";. Because the graphs value is loaded from the database default rather than an HTTP query parameter, request-side FILTER_VALIDATE_INT never inspects it. PDO submits the concatenated string as a multi-statement query, executing the UPDATE against poller_item while returning a normal preview page and logging only a PHP warning about a non-numeric value.

Request 4: Execute the command (graph_realtime.php). The guest session then requests graph_realtime.php with action=init, local_graph_id=1, ds_step=10, and size=90, which invokes poller_realtime.php and cmd_realtime.php. At cmd_realtime.php:221, Cacti calls exec_poll($item['arg1']), reaching lib/poller.php:32-56 where $fp = popen($command, 'r'); executes the attacker-controlled poller_item.arg1 string through the system shell and returns a JSON object containing a graph image.

The four-request 4http2shell RCE chain in Cacti Core 1.2.31, drawn from the 26 November 2026 technical write-up.

Across the MITRE ATT&CK framework, the disclosed chain maps directly to four evidenced techniques: Exploit Public-Facing Application (T1190) against the exposed Cacti web tier, Valid Accounts: Default Accounts (T1078.001) via the unauthenticated guest session, Application Layer Protocol: Web Protocols (T1071.001) over standard HTTP endpoints, and Command and Scripting Interpreter: Unix Shell (T1059.004) when popen() runs poller_item.arg1.

Why the guest label and prepared statement failed to hold

Two comforting labels do the work of security controls in this architecture, and both fail when chained. The first is the guest account label. Administrators frequently assume a guest session is read-only or harmlessly confined to viewing graphs. In Cacti 1.2.31, a guest session can write per-user preferences in auth_profile.php, trigger graph preview queries in graph_view.php, and invoke the realtime poller in graph_realtime.php. As the researcher notes, the guest account itself is not the boundary failure; what the guest account is permitted to write and trigger is.

The second friendly label is the prepared statement used by auth_profile.php (action=update_data). Writing preview_graphs_per_page into settings_user with a prepared statement prevents first-order SQL injection during the profile save, creating an appearance of database safety. However, graph_view.php later trusts its own settings_user table as if stored defaults had already passed FILTER_VALIDATE_INT, concatenating the raw string straight into a LIMIT clause before PDO executes stacked statements.

The write-up summarises the chain as four stacked failures: an unvalidated integer setting writable by a guest, stored defaults bypassing request-side validation, string concatenation into LIMIT with stacked PDO queries enabled, and poller_item.arg1 passed to popen() without an allowlist. In the researcher's isolated lab, the web tier and poller ran as root, producing a proof file owned by uid=0(root). On a standard production deployment, the chain executes as the Cacti web user, typically www-data or apache. Even without root, the write-up highlights eight asset categories commonly stored on or reachable from a Cacti host: SNMP community strings, device credentials in the database, poller SSH keys or service accounts, database credentials in include/config.php, mail relay credentials, internal management network routes, cron jobs and backup scripts, and the implicit trust of monitored network devices.

What the primary write-up states, and what remains unverified

Stated facts versus unverified gaps across the 26 November 2026 primary write-up, Cacti GitHub releases, and NVD as checked on 27 November 2026.

Primary write-up claims cross-checked against Cacti GitHub releases, advisories, and NVD on 27 November 2026

TopicWhat is stated on the recordWhat is not stated or unverified
Target version and preconditionCacti Core 1.2.31 on an isolated lab host with the guest account enabled.Whether earlier Cacti 1.2.x versions are vulnerable; no multi-version matrix is reported.
Privilege levelLab web tier and poller ran as root; normal deployments run as www-data or apache.Whether any local privilege escalation path exists from www-data to root in default packages.
Vendor patch and advisory statusCacti 1.2.31 shipped 15 June 2026; latest GitHub advisory is dated 27 July 2026 (checked 27 Nov 2026).No Cacti 1.2.32 release, no vendor patch timeline, and no vendor acknowledgement on GitHub.
CVE and severity scoreZero matching records in NVD for 4http2shell or preview_graphs_per_page as of 27 November 2026.No assigned CVE identifier and no CVSS v3.1 or v4.0 score from Cacti or CISA-ADP.
Exploitation and named usersSubheading claims companies including Amazon, Alibaba, Huawei, and 'Microslop' use Cacti.No confirmed in-the-wild exploitation count, no exposed-host count, and no telemetry for named organisations.

Code paths, database fields, and detection signals

The primary write-up prints the exact PHP file paths, line references, database columns, and request endpoints involved in the chain. Defenders can inspect these code locations and database tables directly without running exploit payloads. The first block lists the four code and database points where the trust boundary breaks, as printed in the 26 November 2026 write-up.

Text
Storage endpoint:  auth_profile.php?tab=general&action=update_data&header=false
Stored setting:    settings_user (name = preview_graphs_per_page)
SQL assembly:      graph_view.php:657 ($limit from get_request_var('graphs'))
LIMIT injection:   lib/auth.php:1574-1578 ($sql_limit = "LIMIT $sql_limit";)
Command target:    poller_item.arg1 (updated via PDO stacked query)
Realtime trigger:  graph_realtime.php?action=init -> poller_realtime.php -> cmd_realtime.php:221
Shell execution:   lib/poller.php:32-56 ($fp = popen($command, 'r');)
Vulnerable code paths and database fields cited in the 26 November 2026 write-up (read 27 November 2026)

Because Request 3 returns a normal HTTP preview page, the primary write-up notes that the loudest application-layer signal is a PHP warning about a non-numeric value when graph_view.php evaluates the stored preview_graphs_per_page string. Security teams should correlate PHP non-numeric warnings with POST requests to auth_profile.php (action=update_data) and subsequent GET requests to graph_realtime.php (action=init) from guest or unauthenticated sessions.

What defenders should do, in order

The primary disclosure does not publish a vendor patch or a formal remediation guide. The ordered checklist below translates the documented preconditions and code paths into immediate containment steps, labelled where they are this site's suggestion.

Take this with you

Ordered containment and hunting checklist for Cacti operators

  • Disable the Cacti guest account immediately in user management if it is enabled, and verify unauthenticated visitors cannot obtain a session from auth_profile.php.
  • Restrict network access to the Cacti web interface behind a VPN, identity-aware proxy, or management allowlist so it is not reachable from untrusted segments (this site's suggestion).
  • Audit the settings_user table for any non-integer preview_graphs_per_page values and inspect poller_item.arg1 for unexpected shell commands or recent changes (this site's suggestion).
  • Confirm the web tier and poller execute as an unprivileged service account such as www-data or apache rather than root, and review include/config.php file permissions (this site's suggestion).
  • Correlate web access logs for auth_profile.php (action=update_data) followed by graph_view.php (action=preview) and graph_realtime.php (action=init) alongside PHP non-numeric warnings (this site's suggestion).
  • Where compatible with your database driver configuration, disable PDO multi-statement queries and monitor Cacti's official GitHub releases for a patched version beyond 1.2.31 (this site's suggestion).

The question this disclosure leaves open

If a monitoring server holds SNMP community strings, poller SSH keys, and database credentials across your core network, how many minutes would pass before an unauthenticated guest session writing to settings_user would be noticed, and why is that interface reachable without authentication at all?

Key facts

Sources

  1. PrimaryFour Requests to Root: A Cacti 0day (4HTTP2SHELL), 26 November 2026: four-request PoC chain, PHP code paths, database fields, and post-exploitation impact on Cacti Core 1.2.31ek0ms savi0r (Church of Malware)accessed 2026-11-27
  2. PrimaryCacti official GitHub releases page: verifies release/1.2.31 shipped on 15 June 2026 (2026-06-15T23:35:24Z) and remains the latest release as of 27 November 2026The Cacti Groupaccessed 2026-11-27
  3. PrimaryCacti official GitHub security advisories page: confirms the latest published advisory is dated 27 July 2026 and no advisory exists for 4http2shell as of 27 November 2026The Cacti Groupaccessed 2026-11-27
  4. PrimaryNVD CVE 2.0 API query for 4http2shell: returns zero matching CVE records as of 27 November 2026National Vulnerability Database (NIST)accessed 2026-11-27

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

How often

Every new briefing in one email, at 7am, or at 7am, 12:30pm and 6pm. Nothing is sent when nothing is new. Unsubscribe any time.