- cacti
- zero-day
- sqli
- rce
- php
- popen
- monitoring
news
Cacti 4HTTP2ROOT Unpatched Zero-Day Enables 4-Request Guest RCE
An unpatched Cacti Core 1.2.31 zero-day (4HTTP2ROOT / 4HTTP2SHELL) lets unauthenticated visitors chain stored SQL injection in preview_graphs_per_page and poller_item.arg1 into popen() shell execution when guest access is enabled. No CVE or vendor fix exists yet; not in CISA KEV.
- Status
- Not KEVChecked, not listed
- Organization
- Church of Malware / watchTowr
Summary
On 26 November 2026, researcher ek0ms savi0r (Church of Malware) published 4HTTP2SHELL (also tracked as 4HTTP2ROOT and cve.now early warning SZB-2d2e53b206), an unpatched zero-day vulnerability chain affecting the latest stable release Cacti Core 1.2.31 (full earlier affected range not yet established). When Cacti's optional guest user is enabled, an unauthenticated visitor can execute arbitrary OS commands as the Cacti web/poller user (www-data, apache, or root in misconfigured containers) across four plain HTTP requests.
Both watchTowr and Previdian (VULN-2026-0010) independently analyzed and verified the exploit sequence within hours of release. No CVE identifier or official severity metric has been assigned yet, no vendor patch exists as of 27 November 2026, and no in-the-wild exploitation has been confirmed; not in CISA KEV catalog 2026.11.25.
Why stored defaults bypass validation (4-request chain)
- Guest session & CSRF (
auth_profile.php): An anonymous request toauth_profile.php?tab=general&header=falsereceives a valid guest session cookie and CSRF token (csrfMagicToken). - Unvalidated persistent setting write: Submitting
auth_profile.php?tab=general&action=update_data&header=falsestores an arbitrary string inside thesettings_userdatabase table forpreview_graphs_per_page. While the storage query itself uses a prepared statement,auth_profile.phpchecks only that the setting name exists—not that its value is an integer. - Stored SQL injection into stacked
UPDATE(graph_view.php:657,lib/auth.php:1574-1578): Requestinggraph_view.php?action=preview&page=1&clear=1pulls the storedpreview_graphs_per_pagesetting directly as the default for$graphsinsideget_allowed_graphs(), bypassing request-sideFILTER_VALIDATE_INTchecks and concatenating$sql_limitstraight into the query'sLIMITclause. Because Cacti's PDO MySQL/MariaDB connection permits stacked statements, a malicious preference string terminates theSELECT ... LIMITquery and executes a trailingUPDATEmodifyingpoller_item's command argument column (arg1) using hex-encoded literal syntax and SQL comments, while returning a normal HTTP200preview page (logging only a PHP non-numeric warning). - Command execution (
graph_realtime.php?action=init): Triggering the guest-reachable realtime graph poller routes throughpoller_realtime.php->cmd_realtime.php:221->lib/poller.php, passing the modifiedpoller_item['arg1']directly topopen().
See our full architectural breakdown in 4HTTP2ROOT Deep Dive: Why Stored Settings Bypass Request Validation.
Operator actions (interim mitigations)
Because Cacti servers routinely store SNMP community strings, device logins, SSH keys, database credentials (include/config.php), and direct management-plane routes to routers, switches, and PDUs, compromise often grants immediate network-wide pivot access.
- Disable the guest account immediately: In the Cacti Console go to Configuration → Settings → Authentication, set Guest User to No User, and verify anonymous access to
auth_profile.phpandgraph_realtime.phpreturns access denied or login redirects. - Isolate the Cacti UI: Restrict HTTP/HTTPS access strictly to trusted management VLANs, VPN segments, or authenticated reverse proxies—never expose Cacti directly to untrusted networks.
- Hunt database tables and logs:
- Query
settings_userfor non-numericpreview_graphs_per_pagevalues (SELECT user_id, value FROM settings_user WHERE name='preview_graphs_per_page' AND value NOT REGEXP '^[0-9]+$';). - Audit
poller_item.arg1for unexpected shell commands, redirects, or modifiedaction/host_identries, and inspect web/PHP logs for non-numeric value warnings alongsideauth_profile.php?action=update_datafollowed bygraph_realtime.php?action=init.
- Query
- Rotate credentials if tampering is found: Assume SNMP strings, stored device credentials, mail relay passwords, and
include/config.phpsecrets were exposed.
Sources
- watchTowr — 4HTTP2ROOT FAQ: Cacti Zero-Day Exposure and Fix
- Previdian — Cacti Zero-Day: What We Know So Far (
VULN-2026-0010) - GitHub (
ekomsSavior/Sad-Girls-0day-Club) — 4http2shell Technical Write-Up - CVE.now Early Warning —
SZB-2d2e53b206 - The Hacker News — Unpatched Cacti Zero-Day Enables RCE in Four HTTP Requests