Description
Multiple SQL injection vulnerabilities in Cacti 0.8.7 before 0.8.7b and 0.8.6 before 0.8.6k allow remote authenticated users to execute arbitrary SQL commands via the (1) graph_list parameter to graph_view.php, (2) leaf_id and id parameters to tree.php, (3) local_graph_id parameter to graph_xport.php, and (4) login_username parameter to index.php/login.
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 | 0.8.7b-1 | — |
| Debian 13 | cacti | 0.8.7b-1 | — |
| Debian 12 | cacti | 0.8.7b-1 | — |
| Debian 4.0 | cacti | 0.8.6i-3.3 | DSA-1569-1 |
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 4
- Cacti 0.8.7 - 'graph_view.php?graph_list' SQL Injection EDB-31156 · webapps · Feb 12, 2008 · verified
- Cacti 0.8.7 - 'tree.php' Multiple SQL Injections EDB-31159 · webapps · Feb 12, 2008 · verified
- Cacti 0.8.7 - 'graph_xport.php?local_graph_id' SQL Injection EDB-31160 · webapps · Feb 12, 2008 · verified
- Cacti 0.8.7 - '/index.php/sql.php?Login Action login_username' SQL Injection EDB-31161 · webapps · Feb 12, 2008 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-1569-1 cacti - multiple vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- FEDORA-2008-1737 vendor-advisory
- 29242 third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=432758
- 3657 third-party-advisory
- SUSE-SR:2008:005 vendor-advisory
- GLSA-200803-18 vendor-advisory
- 28872 third-party-advisory
- MDVSA-2008:052 vendor-advisory
- http://www.cacti.net/release_notes_0_8_7b.php
- 30045 third-party-advisory
- 29274 third-party-advisory
- 20080212 cacti -- Multiple security vulnerabilities have been discovered mailing-list
- ADV-2008-0540 vdb-entry
- 27749 vdb-entry
- DSA-1569 vendor-advisory
- 28976 third-party-advisory
- FEDORA-2008-1699 vendor-advisory
- 1019414 vdb-entry
- 20080212 Cacti 0.8.7a Multiple Vulnerabilities mailing-list