Security

Four HTTP requests to run commands: Cacti patches 4HTTP2ROOT guest flaw ahead of 1.2.32

A public chain lets a guest run commands on Cacti 1.2.31. Fixes are merged and 1.2.32 is not out yet: apply the patch or turn Guest off.

Published

3D illustration of a dark metal server vault with padlocked shields and an open door revealing a glowing key, with the Cacti logo
AI-generated image

TL;DR

  • 4HTTP2ROOT lets an unauthenticated guest run OS commands on Cacti Core 1.2.31 when the guest account is enabled, and watchTowr reports exploitation in the wild [1].
  • Cacti says the flaw is patched on its 1.2.31, 1.2.x and develop branches and will ship in 1.2.32; the latest release on GitHub is still 1.2.31 [2][4].
  • Until you patch, set Guest User to No User, put the web UI behind a VPN or allowlist, and check stored settings for non-numeric values [2].

A researcher using the handle ek0ms savi0r published an exploit chain for Cacti on GitHub on 26 November 2026 that reaches command execution on a lab Cacti Core 1.2.31 server with four unauthenticated HTTP requests [1]. The chain, called 4HTTP2ROOT or 4HTTP2SHELL, needs the guest account to be enabled [1][2]. watchTowr, which tracks the flaw, says no CVE has been assigned and reports exploitation in the wild [1]. ThaiCERT issued an alert about it on 29 November [5].

Why it matters

Cacti is an open source tool for monitoring and graphing routers, switches and servers [1]. watchTowr notes that it often stores SNMP strings and device logins, so command execution on the Cacti server can give an attacker a foothold far beyond the monitoring box [1]. The commands run as the account behind the Cacti web server and poller, often a low-privileged web user rather than root [1].

How the chain works

The guest writes an unvalidated value into a per-user display setting, and Cacti later places that value into a database query that the server runs as more than one statement [1]. Cacti’s own advisory traces the bug to the preview_graphs_per_page setting: auth_profile.php?action=update_data stores it without validation, and the graph preview page puts it into the LIMIT clause of an unprepared query [2]. In the public chain, one of the extra statements changes a poller setting to a shell command, which a guest-reachable page then runs [1]. The advisory scores the underlying SQL injection at CVSS 8.8 and says it was reported privately on 19 November [2].

Patch and workarounds

Cacti says the flaw is patched on the 1.2.31, 1.2.x and develop branches and will be included in 1.2.32 [2]. The 1.2.31 maintenance fix, PR #9013, was merged on 28 November; it stops shared guest sessions from saving profile or graph preferences, validates setting values and normalizes pagination before graph queries are built [3]. The advisory gives a patch -p1 command for applying that commit to 1.2.31 [2]. At the time of writing, the latest release on Cacti’s GitHub releases page is still 1.2.31 [4].

Until you patch or upgrade, Cacti advises [2]:

  • Set Guest User to No User under Console > Configuration > Settings > Authentication, which blocks the unauthenticated chain.
  • Put the web interface behind a VPN or allowlist and limit untrusted accounts that have Update Profile (realm 20) access.
  • Check the settings_user table for non-numeric values in numeric preferences such as preview_graphs_per_page.

watchTowr also suggests checking poller settings for unexpected commands and watching logs for warnings about non-numeric values [1]. ThaiCERT likewise tells administrators to disable the guest account and restrict access to Cacti right away [5].

Sources

Written and checked by AI from the sources below

  1. Frequently Asked Questions About the Cacti Remote Code Execution (4HTTP2ROOT Zero-day)watchTowr ·
  2. Authenticated SQL injection (stacked queries) via unvalidated profile setting reaching the graph preview LIMIT clause (GHSA-5x85-g4vc-gq53)Cacti ·
  3. fix(security): protect profile changes and graph pagination on 1.2.31 (PR #9013)Cacti ·
  4. Cacti releasesCacti
  5. แจ้งเตือน! พบช่องโหว่ Zero-Day ใน Cacti เสี่ยงถูกสั่งรันคำสั่งอันตรายโดยไม่ต้องเข้าสู่ระบบ ยังไม่มีแพตช์แก้ไขThaiCERT ·

Fact-checked by gpt-6.1-sol on · Editorial policy