CVE-2020-8813: OS Command Injection in Cacti 1.2.8 graph_realtime.php
- Vendors
- CactiDebian ProjectFedora ProjectOpmantekOpensuse
CVE-2020-8813 is an OS command injection vulnerability in Cacti 1.2.8, specifically in the graph_realtime.php script. The vulnerability allows remote attackers to execute arbitrary operating system commands by supplying shell metacharacters in a cookie, provided that the guest user has the graph real-time privilege. The vulnerable code fails to properly sanitize user-supplied input from cookies before passing it to a shell command.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary OS commands on the server hosting Cacti, potentially leading to full system compromise, data exfiltration, or lateral movement within the network.
Mitigation
If you can’t patch tonight, do this now.
As an interim measure, restrict guest user access and remove the graph real-time privilege from guest accounts. Employ web application firewalls to detect and block malicious input, and monitor for suspicious activity in Cacti logs.
Remediation
Patch, then assume compromise.
Upgrade Cacti to a version where this vulnerability is patched (1.2.9 or later). Ensure that all user input, especially from cookies, is properly sanitized before being used in shell commands.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 4 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2020-8813 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2020-8813 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2020-8813?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2020-8813, the earliest disclosed Feb 22, 2020.
- Is there a patch for CVE-2020-8813?
- Upgrade Cacti to a version where this vulnerability is patched (1.2.9 or later). Ensure that all user input, especially from cookies, is properly sanitized before being used in shell commands.
- What products are affected by CVE-2020-8813?
- Cacti, Debian Project Debian Linux, Fedora Project Fedora, Opmantek Open-Audit, and Opensuse Suse Package Hub.
- How severe is CVE-2020-8813?
- CVE-2020-8813 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 73.9% (99th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.