Summary
- A zero-day vulnerability in Cacti 1.2.31 allows unauthenticated remote code execution via a stored SQL injection in guest user graph display preferences.
- The researcher published a full technical write-up, PoC exploit, and video demonstration without prior disclosure to the Cacti project.
- Exploitation requires the Cacti guest account to be enabled but needs no valid credentials.
- A patch has been merged into the Cacti 1.2.31 maintenance branch; administrators must apply it manually and are advised to test in a lab environment first.
- No exploitation in the wild had been reported as of 27 November, but the public PoC significantly raises the risk window.
What happened
A cybersecurity researcher using the handle ek0ms savi0r, affiliated with a group called the Church of Malware, publicly disclosed a zero-day vulnerability in the Cacti network monitoring platform on Thanksgiving Day. Along with the disclosure, the researcher published a technical write-up, a proof-of-concept exploit named 4HTTP2SHELL, and a video demonstration hosted in a GitHub repository. The vulnerability had not been reported to the Cacti project before publication.
How the attack works
The vulnerability stems from weak input validation of guest user graph display settings, which allows an unauthenticated attacker to inject SQL statements into Cacti's database. These stored SQL statements are later processed by the application, enabling the attacker to modify Cacti's poller configuration and cause it to execute arbitrary operating system commands. According to the researcher, the full chain from an unauthenticated HTTP session to command execution takes only four HTTP requests.
Scope of access
While the researcher demonstrated the exploit achieving root access in their test environment, cybersecurity firm watchTowr notes that the privileges obtained depend on the account running Cacti's web server and poller processes. In many production deployments that account is a low-privileged web server user, not root. The exploit was confirmed against Cacti Core 1.2.31; whether earlier versions are also affected has not been established by the available sources.
Why Cacti is a valuable target
Cacti is widely used to monitor servers, routers, switches, firewalls, and other network infrastructure. Critically, the platform stores credentials and SNMP passphrases used to access or query monitored devices. A compromised Cacti instance can therefore serve as a pivot point into broader corporate network infrastructure, making it an attractive target well beyond its own footprint.
Guest account is the prerequisite
The attack path requires the Cacti guest account to be enabled, which is not the default in all deployments but is present in some. No valid credentials, API keys, or social engineering are required beyond that. The researcher described it plainly: no login, no valid API key, no phishing.
Patch status
Cacti developer Sean Mancini confirmed to BleepingComputer on 28 November that a security fix has been merged into the Cacti 1.2.31 maintenance branch. The patch prevents guest users from saving profile or graph display preferences and adds additional validation of graph settings. The Cacti team has recommended that administrators test the patch in a lab environment before deploying to production.
Exploitation status
As of 27 November, no exploitation of this vulnerability in live attacks had been reported. However, the existence of a detailed public write-up and functional PoC code substantially shortens the time before opportunistic actors may attempt to weaponise it.
Why it matters
Network monitoring platforms occupy a privileged position in enterprise environments. Cacti sits on the network with credentials to query infrastructure devices, making it a high-value lateral movement target. The combination of an unauthenticated attack path, a detailed public PoC, and the platform's credential storage means security teams need to treat this as an urgent remediation item even where full exploitation evidence is absent. Organisations relying on Cacti for infrastructure visibility should assume the guest account posture and patch availability are known to threat actors.
What to do now
- Disable the Cacti guest account immediately on all Cacti deployments as an interim control.
- Restrict access to the Cacti web interface to trusted networks or internal IP ranges only.
- Manually apply the security patch merged into the Cacti 1.2.31 maintenance branch, following the Cacti team's recommendation to test in a lab environment first.
- Review Cacti poller configurations for any unexpected or unauthorised commands.
- Examine Cacti application logs for warnings involving non-numeric values in graph display settings, which may indicate attempted exploitation.
- Audit credentials and SNMP passphrases stored in Cacti and assess the blast radius should those be exposed.
