Description
graph_realtime.php in Cacti 1.2.8 allows remote attackers to execute arbitrary OS commands via shell metacharacters in a cookie, if a guest user has the graph real-time privilege.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cacti | 1.2.10+ds1-1 | — |
| Debian 13 | cacti | 1.2.10+ds1-1 | — |
| Debian 12 | cacti | 1.2.10+ds1-1 | — |
| Debian 10 | cacti | 1.2.2+ds1-2+deb10u5 | DLA-3252-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | cacti | No fix yet | — |
| Ubuntu Pro 14.04 LTS | cacti | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP1 | cacti +1 | 1.2.11-bp151.4.6.1 | openSUSE-SU-2020:0565-1 |
| SUSE Package Hub 12 | cacti | 1.2.11-5.1 | openSUSE-SU-2020:0558-1 |
| SUSE Package Hub 12 | cacti-spine | 1.2.11-2.1 | openSUSE-SU-2020:0558-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | cacti | 1.2.18-1.2 | openSUSE-SU-2024:10670-1 |
| openSUSE Leap 15.1 | cacti | 1.2.11-5.1 | openSUSE-SU-2020:0558-1 |
| openSUSE Leap 15.1 | cacti-spine | 1.2.11-2.1 | openSUSE-SU-2020:0558-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | cacti | 1.2.8-r0 | — |
| Alpine v3.23 | cacti | 1.2.8-r0 | — |
| Alpine v3.22 | cacti | 1.2.8-r0 | — |
| Alpine v3.21 | cacti | 1.2.8-r0 | — |
| Alpine v3.20 | cacti | 1.2.8-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | cacti | 1.2.8-r0 | — |
| Alpine v3.18 | cacti | 1.2.8-r0 | — |
| Alpine v3.17 | cacti | 1.2.8-r0 | — |
| Alpine v3.16 | cacti | 1.2.8-r0 | — |
| Alpine v3.15 | cacti | 1.2.8-r0 | — |
| Alpine v3.14 | cacti | 1.2.8-r0 | — |
| Alpine v3.13 | cacti | 1.2.8-r0 | — |
| Alpine v3.12 | cacti | 1.2.8-r0 | — |
| Alpine v3.11 | cacti | 1.2.8-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 2
- Cacti 1.2.8 - Authenticated Remote Code Execution EDB-48144 · webapps · Feb 3, 2020
- Cacti 1.2.8 - Unauthenticated Remote Code Execution EDB-48145 · webapps · Feb 3, 2020
GitHub 4 repositories
-
mhaskar/CVE-2020-8813 ★ 67 · Feb 22, 2020
The official exploit for Cacti v1.2.8 Remote Code Execution CVE-2020-8813
-
p0dalirius/CVE-2020-8813-Cacti-RCE-in-graph_realtime ★ 7 · Sep 30, 2022
CVE-2020-8813 - RCE through graph_realtime.php in Cacti 1.2.8
-
hexcowboy/CVE-2020-8813 ★ 1 · May 28, 2021
Cacti v1.2.8 Unauthenticated Remote Code Execution
-
0xm4ud/Cacti-CVE-2020-8813 ★ 1 · May 11, 2021
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Cacti v1.2.8 - Remote Code Execution http/cves/2020/CVE-2020-8813.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 5
- DLA-3252-1 cacti - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2020:0565-1 Security update for cacti, cacti-spine SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:0558-1 Security update for cacti, cacti-spine SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10670-1 cacti-1.2.18-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-0006 Cacti RRDtool: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit den Rechten des Dienstes BSI CERT-Bund (WID) · Jan 1, 2023
References
- https://gist.github.com/mhaskar/ebe6b74c32fd0f7e1eedf1aabfd44129
- https://drive.google.com/file/d/1A8hxTyk_NgSp04zPX-23nPbsSDeyDFio/view
- https://github.com/Cacti/cacti/releases
- https://shells.systems/cacti-v1-2-8-authenticated-remote-code-execution-cve-2020-8813/
- https://github.com/Cacti/cacti/issues/3285
- http://packetstormsecurity.com/files/156538/Cacti-1.2.8-Authenticated-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/156537/Cacti-1.2.8-Unauthenticated-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/156593/Cacti-1.2.8-Unauthenticated-Remote-Code-Execution.html
- FEDORA-2020-552e4e7879 vendor-advisory
- FEDORA-2020-10fe60d68b vendor-advisory
- FEDORA-2020-d6a9e27bb1 vendor-advisory
- openSUSE-SU-2020:0558 vendor-advisory
- http://packetstormsecurity.com/files/157477/Open-AudIT-Professional-3.3.1-Remote-Code-Execution.html
- openSUSE-SU-2020:0565 vendor-advisory
- GLSA-202004-16 vendor-advisory
- [debian-lts-announce] 20221231 [SECURITY] [DLA 3252-1] cacti security update mailing-list