DarkBase Secure · Curated · Live
booting_directory0%
DarkBase

// new encrypted note

ctrl+enter to create

Notepad

Encrypted · saves automatically

Alt+P to open or close from any page.

The Hacker News 4 min read

Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access

Details have emerged about a new zero-day vulnerability in Cacti, an open-source network monitoring tool, that could be exploited to achieve remote code execution.

The proof-of-concept (PoC) exploit, which has yet to be assigned a CVE identifier, has been tracked as 4HTTP2SHELL and 4HTTP2ROOT.

"I found a path from a fresh, unauthenticated HTTP session to command execution as the Cacti server user in four requests," a security researcher who goes by the online alias "ek0ms savi0r" said. "No login. No valid API key. No phishing. Just four HTTP requests against the default guest surface."

The shortcoming affects Cacti Core 1.2.31, the latest version, when the guest account is enabled. It's worth noting that the guest account is disabled by default starting with Cacti version 0.8.7.

At a high level, the vulnerability allows an attacker to abuse the guest access to write an unvalidated value (i.e., non-numeric text) into a setting called "preview_graphs_per_page" via "auth_profile.php?action=update_data." The configuration parameter controls how many graphs are displayed per page when viewing graphs in Preview Mode.

The crafted value takes the form of arbitrary SQL strings that can be turned into a second-order SQL injection by taking advantage of the fact that Cacti does not validate that the user-provided input is actually an integer value. This, in turn, opens the door for arbitrary SQL query execution when the graph preview page ("graph_view.php") is loaded with default filters.

The SQL query demonstrated by "ek0ms savi0r" is an UPDATE statement to modify a record in Cacti's poller table. In the final stage of the attack, the realtime poller endpoint ("graph_realtime.php") is invoked from the same guest session, which causes the modified row from the poller table to be read and passed as input to PHP's popen() function without any allowlist or sanitization checks.

The researcher has pointed out four failures that ultimately make it possible to achieve unauthenticated remote code execution -

  • The guest can write a numeric setting as an arbitrary string
  • The stored default bypasses request validation
  • Cacti's PHP PDO database driver accepts stacked statements through the SQL LIMIT clause
  • The poller executes a database-stored command string

Successful exploitation of the flaw can allow an attacker to compromise the Cacti server and provide a pivot point to the target network as it exposes sensitive data, or even suppress alerts by modifying the poller table.

"Because Cacti often stores credentials and connection details for routers, switches, servers, and other devices across a network, an attacker who reaches this level of command execution can gain a foothold reaching far beyond the monitoring server itself," watchTowr said in an advisory.

In the absence of a fix, users are advised to disable the guest account and restrict access to the Cacti web interface to mitigate potential risks. It's also essential to review poller configuration entries for unexpected command values and apply the fixes as soon as they become available.

Fixes for 4HTTP2ROOT Released

The maintainers of Cacti have released patches to address the Cacti 1.2.31 Vulnerability known as 4HTTP2ROOT. An official fix is expected to be included in the upcoming Cacti 1.2.32 release.

In the interim, users are advised to pull down this commit to have their systems patches -

"The Cacti Group has merged fixes across all active branches (1.2.31, 1.2.x, and develop) addressing the publicly disclosed Cacti 1.2.31 vulnerability chain ('4HTTP2ROOT' / '4HTTP2SHELL')," Sean Mancini from the Cacti team told The Hacker News in a statement.

A Bangladesh-based DevOps engineer and security researcher named Md. Amdadul Bari Imad has also been credited for independently discovering and reporting the SQL injection flaw on November 19, 2026. It has been issued the GitHub security advisory (GHSA) identifier "GHSA-5x85-g4vc-gq53."

As immediate mitigations, the Cacti team has outlined the following mitigations -

  • Disable Guest access (Console -> Configuration -> Settings -> Authentication -> Guest User -> No User). This immediately blocks unauthenticated exploitation.
  • Restrict network exposure behind a VPN, reverse-proxy auth, or IP allowlist, and limit untrusted accounts with Update Profile (realm 20) access until patched or upgraded to 1.2.32.
  • Review the settings_user table for any non-numeric values in numeric preferences (preview_graphs_per_page, treeview_graphs_per_page, realtime_interval, min_tree_width, max_tree_width, page_refresh).

(The story was updated after publication to include details of the fixes.)

Originally published by The Hacker News

Read the original

Related news

All news →
All news
Bot