Description
summary_graph_functions.php in Mantis 0.17.3 and earlier allows remote attackers to execute arbitrary PHP code by modifying the g_jpgraph_path parameter to reference the location of the PHP code.
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 3.0 | mantis | 0.17.1-2.2 | DSA-153 |
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 1
- Mantis Bug Tracker 0.15.x/0.16/0.17.x - JPGraph Remote File Inclusion Command Execution EDB-21727 · webapps · Aug 19, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-153 mantis - cross site code execution and privilege escalation Debian Security (DSA / DLA) · Mar 9, 2026
References
- DSA-153 vendor-advisory
- 5504 vdb-entry
- mantis-include-remote-files(9829) vdb-entry
- 4858 vdb-entry
- 20020819 [Mantis Advisory/2002-04] Arbitrary code execution mailing-list
- 20020813 mantisbt security flaw mailing-list