Description
Cacti versions prior to 0.8.6-d contain a remote command execution vulnerability in the graph_view.php script. An authenticated user can inject arbitrary shell commands via the graph_start GET parameter, which is improperly handled during graph rendering. This flaw allows attackers to execute commands on the underlying operating system with the privileges of the web server process, potentially compromising system integrity.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Raxnet/Ian Berry | Cacti | < 0.8.6-d | 0.8.6-d |
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.6d-1 | — |
| Debian 13 | cacti | 0.8.6d-1 | — |
| Debian 12 | cacti | 0.8.6d-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.
Metasploit 1 module
-
Cacti graph_view.php Remote Command Execution
exploit/unix/webapp/cacti_graphimage_exec
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- WID-SEC-2025-2921 Cacti: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit den Rechten des Dienstes BSI CERT-Bund (WID) · Dec 28, 2025
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/webapp/cacti_graphimage_exec.rb exploit
- https://www.exploit-db.com/exploits/9911 exploit
- https://www.exploit-db.com/exploits/16881 exploit
- https://www.cacti.net/info/downloads product
- https://web.archive.org/web/20050305034552/http://www.cacti.net/cactid_download.php product patch
- https://www.vulncheck.com/advisories/cacti-graph-view-rce third-party-advisory