Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2020-8813: OS Command Injection in Cacti 1.2.8 graph_realtime.php

Published Feb 22, 2020 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS73.9%99th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
CactiDebian ProjectFedora ProjectOpmantekOpensuse
IdentifiersCVE-2020-8813CWE-78 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 4 not yet analyzed, such as Exploit-DB entries.

View more in app →
CVE-2020-8813This repository contains two Python exploit scripts targeting Cacti v1.2.8 (CVE-2020-8813) for remote code execution. The first script (Cacti-postauth-rce.py) exploits the vulnerability post-authentication, requiring valid credentials, and enables guest access before sending a malicious payload via a crafted cookie to the /graph_realtime.php endpoint. The second script (Cacti-preauth-rce.py) exploits the same vulnerability without authentication, provided guest access is already enabled, and also delivers the payload via the same endpoint. Both scripts use a netcat reverse shell payload to provide the attacker with shell access to the target system. The repository is well-structured, with clear separation between pre-auth and post-auth exploit scenarios, and includes a README describing the vulnerability and usage context.mhaskar · Disclosed Feb 22, 2020 · python · networkOperationalCVE-2020-8813-Cacti-RCE-in-graph_realtimeThis repository provides a proof-of-concept (PoC) exploit for CVE-2020-8813, a remote code execution vulnerability in Cacti version 1.2.8. The main exploit script, 'CVE-2020-8813.py', is a Python3 tool that targets the 'graph_realtime.php' endpoint of a Cacti installation. It allows an attacker to execute arbitrary shell commands on the target server by injecting a specially crafted payload into the 'Cacti' cookie. The exploit supports both unauthenticated (guest) and authenticated attack modes, depending on the target's configuration. If guest access is not enabled, the script can attempt to enable it using valid credentials. The repository also includes a Dockerfile and Makefile under 'test_env/' to set up a vulnerable Cacti 1.2.8 environment for testing. The exploit is network-based, requiring HTTP(S) access to the target Cacti instance. The payload is a base64-encoded shell command executed via bash. The repository is well-structured, with clear separation between exploit code, documentation, and testing environment setup.p0dalirius · Disclosed Sep 30, 2022 · python · dockerfile · networkPoC
Exposure surface

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.

VendorProductType
CactiCactiapplication
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
OpensuseSuse Package Huboperating_system
OpmantekOpen-Auditapplication
FAQ

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.
Activity feed

Recent activity

No public activity tracked yet. Mallory keeps watching.

View more in app →

No public activity observed for this vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.