Description
An issue was discovered in Cacti 1.2.x through 1.2.16. A SQL injection vulnerability in data_debug.php allows remote authenticated attackers to execute arbitrary SQL commands via the site_id parameter. This can lead to remote code execution.
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.16+ds1-2 | — |
| Debian 13 | cacti | 1.2.16+ds1-2 | — |
| Debian 12 | cacti | 1.2.16+ds1-2 | — |
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 SP2 | cacti | 1.2.17-bp152.2.10.1 | openSUSE-SU-2021:0787-1 |
| SUSE Package Hub 15 SP2 | cacti-spine | 1.2.17-bp152.2.7.1 | openSUSE-SU-2021:0787-1 |
| SUSE Package Hub 12 | cacti | 1.2.17-20.1 | openSUSE-SU-2021:0755-1 |
| SUSE Package Hub 12 | cacti-spine | 1.2.17-14.1 | openSUSE-SU-2021:0755-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.17-20.1 | openSUSE-SU-2021:0755-1 |
| openSUSE Leap 15.2 | cacti-spine | 1.2.17-14.1 | openSUSE-SU-2021:0755-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | cacti | 1.2.17-r0 | — |
| Alpine v3.23 | cacti | 1.2.17-r0 | — |
| Alpine v3.22 | cacti | 1.2.17-r0 | — |
| Alpine v3.21 | cacti | 1.2.17-r0 | — |
| Alpine v3.20 | cacti | 1.2.17-r0 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | cacti | 1.2.17-r0 | — |
| Alpine v3.18 | cacti | 1.2.17-r0 | — |
| Alpine v3.17 | cacti | 1.2.17-r0 | — |
| Alpine v3.16 | cacti | 1.2.17-r0 | — |
| Alpine v3.15 | cacti | 1.2.17-r0 | — |
| Alpine v3.14 | cacti | 1.2.17-r0 | — |
| Alpine v3.13 | cacti | 1.2.17-r0 | — |
Advisories 4
- USN-5214-1 cacti vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- openSUSE-SU-2021:0755-1 Security update for cacti, cacti-spine SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0787-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
References
- https://asaf.me/2020/12/15/cacti-1-2-0-to-1-2-16-sql-injection/
- https://github.com/Cacti/cacti/issues/4022
- GLSA-202101-31 vendor-advisory
- FEDORA-2021-6dfba2aabf vendor-advisory
- FEDORA-2021-598b6d2924 vendor-advisory
- FEDORA-2021-0e0fd08e44 vendor-advisory