Description
Cross-site scripting (XSS) vulnerability in search.php of Gallery 1.1 through 1.3.4 allows remote attackers to insert arbitrary web script via the searchstring parameter.
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 | gallery | 1.2.5-8woody1 | DSA-355 |
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
- Gallery 1.2/1.3.x - Search Engine Cross-Site Scripting EDB-22961 · webapps · Jul 27, 2003 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-355 gallery - cross-site scripting Debian Security (DSA / DLA) · Mar 9, 2026
References
- 20030727 Gallery XSS security advisory (with fix and patch instructions) mailing-list
- DSA-355 vendor-advisory
- 20030902 GLSA: gallery (200309-06) mailing-list
- 20040101 Re: Gallery v1.3.3 Cross Site Scripting Vulnerabillity mailing-list
- http://gallery.menalto.com/modules.php?op=modload&name=News&file=article&sid=82&mode=thread&order=0&thold=0