A zero-day vulnerability in the open-source Cacti network monitoring platform has been publicly disclosed, along with a working proof-of-concept exploit that allows unauthenticated attackers to execute commands on vulnerable servers. The exploit, dubbed 4HTTP2SHELL (previously 4HTTP2ROOT), was published on Thanksgiving Day by a researcher known as ek0ms savi0r, who showed that the flaw can be reached with just four HTTP requests.

Why the target matters

Cacti is used to monitor the performance of servers, routers, switches, firewalls, and other network infrastructure. The software can store credentials and SNMP passphrases used to read data from monitored devices, so compromising a Cacti server could give an attacker a foothold to reach other systems on a corporate network.

How the flaw works

The vulnerability stems from weak input validation that allows an unauthenticated attacker to inject SQL statements into the application database. According to RavenAI, the issue abuses weak validation of guest users’ graph display settings, producing a stored SQL injection. Malicious SQL saved in those preferences is executed when Cacti processes them, letting the attacker modify the real-time poller’s configuration so it runs operating system commands. The attack requires the Cacti guest account to be enabled, but no valid credentials are needed.

The researcher demonstrated root-level access on a vulnerable server. However, watchTowr notes that the privileges gained depend on the account running the Cacti web server and poller processes, which in many deployments may be a low-privileged account rather than root.

Affected versions

The researcher tested the exploit against Cacti Core 1.2.31. It is not yet clear whether earlier versions are also affected.

Disclosure

The researcher published a technical write-up, the PoC, and a video demonstration in a GitHub repository. The vulnerability was not reported to Cacti before release. In separate comments, the researcher criticized the way companies handle vulnerability reports, describing years of submissions being dismissed or closed as duplicates or expected behavior.

Recommended actions

  • Deactivate the Cacti guest account until a patch is released.
  • Restrict access to the Cacti web interface to trusted networks only.
  • Review poller configurations for unexpected commands.
  • Check application logs for warnings about non-numeric values in graph display settings, which may indicate attempted exploitation.

As of November 27, there were no reports of the vulnerability being exploited in attacks in the wild.