Description
A SQL injection issue in color.php in Cacti 1.2.12 allows an admin to inject SQL via the filter parameter. This can lead to remote command execution because the product accepts stacked queries.
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.13+ds1-1 | — |
| Debian 13 | cacti | 1.2.13+ds1-1 | — |
| Debian 12 | cacti | 1.2.13+ds1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | cacti | 1.2.10+ds1-1ubuntu1+esm1 | USN-5214-1 |
| Ubuntu Pro 18.04 LTS | cacti | 1.1.38+ds1-1ubuntu0.1~esm1 | USN-5214-1 |
| Ubuntu Pro 16.04 LTS | cacti | 0.8.8f+ds1-4ubuntu4.16.04.2+esm1 | USN-5214-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP1 | cacti +1 | 1.2.13-bp151.4.12.1 | openSUSE-SU-2020:1106-1 |
| SUSE Package Hub 12 | cacti | 1.2.13-11.1 | openSUSE-SU-2020:1060-1 |
| SUSE Package Hub 12 | cacti-spine | 1.2.13-8.1 | openSUSE-SU-2020:1060-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.2 | cacti | 1.2.13-11.1 | openSUSE-SU-2020:1060-1 |
| openSUSE Leap 15.2 | cacti-spine | 1.2.13-8.1 | openSUSE-SU-2020:1060-1 |
| openSUSE Leap 15.1 | cacti | 1.2.13-11.1 | openSUSE-SU-2020:1060-1 |
| openSUSE Leap 15.1 | cacti-spine | 1.2.13-8.1 | openSUSE-SU-2020:1060-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | cacti | 1.2.13-r0 | — |
| Alpine v3.23 | cacti | 1.2.13-r0 | — |
| Alpine v3.22 | cacti | 1.2.13-r0 | — |
| Alpine v3.21 | cacti | 1.2.13-r0 | — |
| Alpine v3.20 | cacti | 1.2.13-r0 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | cacti | 1.2.13-r0 | — |
| Alpine v3.18 | cacti | 1.2.13-r0 | — |
| Alpine v3.17 | cacti | 1.2.13-r0 | — |
| Alpine v3.16 | cacti | 1.2.13-r0 | — |
| Alpine v3.15 | cacti | 1.2.13-r0 | — |
| Alpine v3.14 | cacti | 1.2.13-r0 | — |
| Alpine v3.13 | cacti | 1.2.13-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.
Metasploit 1 module
-
Cacti color filter authenticated SQLi to RCE
exploit/unix/http/cacti_filter_sqli_rce
Exploit-DB 1
- Cacti 1.2.12 - 'filter' SQL Injection EDB-49810 · webapps · Apr 29, 2021
GitHub 2 repositories
-
0z09e/CVE-2020-14295 ★ 2 · Apr 28, 2021
Authenticated SQL injection to command execution on Cacti 1.2.12
-
mrg3ntl3m4n/CVE-2020-14295 ★ 0 · May 28, 2021
Proof of Concept for CVE-2020-14295.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 4
- USN-5214-1 cacti vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- openSUSE-SU-2020:1060-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
- openSUSE-SU-2020:1106-1 Security update for cacti, cacti-spine SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/Cacti/cacti/issues/3622
- FEDORA-2020-8a15713da2 vendor-advisory
- FEDORA-2020-7dddce530c vendor-advisory
- openSUSE-SU-2020:1060 vendor-advisory
- GLSA-202007-03 vendor-advisory
- openSUSE-SU-2020:1106 vendor-advisory
- http://packetstormsecurity.com/files/162384/Cacti-1.2.12-SQL-Injection-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/162918/Cacti-1.2.12-SQL-Injection-Remote-Command-Execution.html