Description
Multiple buffer overflows in the psscan function in ps.c for gv (ghostview) allow remote attackers to execute arbitrary code via a Postscript file with a long (1) BoundingBox, (2) comment, (3) Orientation, (4) PageOrder, or (5) Pages value.
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 | gv | 1:3.6.1-1 | — |
| Debian 13 | gv | 1:3.6.1-1 | — |
| Debian 12 | gv | 1:3.6.1-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 2
- GV PostScript Viewer - Remote Buffer Overflow (2) EDB-400 · remote · Aug 18, 2004 · verified
- GV PostScript Viewer - Remote Buffer Overflow (1) EDB-390 · remote · Aug 13, 2004 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- gv-psscan-header-bo(17019) vdb-entry
- 20040816 gv buffer overflows: here, there, and everywhere mailing-list
- 10944 vdb-entry