Latest briefing

Cacti monitoring tool flaw allows unauthenticated remote command execution

TL;DR

Cacti Core version 1.2.31 is vulnerable to a high-severity SQL injection flaw dubbed 4HTTP2SHELL. Attackers can use this to execute OS commands on the server without a valid account. Update to version 1.2.32 immediately or disable guest access.

What happened

A high-severity SQL injection vulnerability in Cacti Core 1.2.31 allows an attacker to escalate from a guest or "Normal User" session to full administrator rights and remote command execution. The flaw exists because the application fails to validate a user's profile setting before using it in a database query. By injecting a malicious string into the preview_graphs_per_page setting, an attacker can append arbitrary SQL statements that the server executes.

The vulnerability was privately reported on November 19. Following the publication of a proof-of-concept exploit on November 26, active exploitation was detected in the wild starting November 27. Previdian reported observing nearly 1,800 exploitation attempts.

Why it matters

Cacti is a central monitoring tool that often holds high-value assets, including SNMP community strings, device credentials, and SSH keys. Because the vulnerability can be triggered via a guest session, it effectively turns a monitoring tool into an unauthenticated entry point. An attacker who gains a shell on a Cacti server can leverage its trusted position to move laterally through a network or access sensitive management data.

Who is affected

  • Cacti Core version 1.2.31 (specifically when the guest account is enabled)

What to do now

  1. Upgrade to Cacti version 1.2.32 or apply the 1.2.31 maintenance patch (commit 8910e2a).
  2. Disable guest access via Console -> Configuration -> Settings -> Authentication.
  3. Restrict Cacti access so it is only reachable from trusted networks.
  4. Review user profile settings for unexpected or non-numeric values in graph settings.

What we don't know yet

  • The specific CVE identifier assigned to this vulnerability.
  • The total number of successful exploitations globally.

Sources

  1. securityweek.comhttps://www.securityweek.com/4http2shell-cacti-vulnerability-exploited-in-attacks/
  2. github.comhttps://github.com/Cacti/cacti/security/advisories/GHSA-5x85-g4vc-gq53
  3. github.comhttps://github.com/ekomsSavior/Sad-Girls-0day-Club/tree/main/4http2shell

Offensive security engineer, ethical hacker and penetration tester. Writes Unpatched Intel from h4rithd.com.