Description
Stack-based buffer overflow in the ps_gettext function in ps.c for GNU gv 3.6.2, and possibly earlier versions, allows user-assisted attackers to execute arbitrary code via a PostScript (PS) file with certain headers that contain long comments, as demonstrated using the (1) DocumentMedia, (2) DocumentPaperSizes, and possibly (3) PageMedia and (4) PaperSize headers. NOTE: this issue can be exploited through other products that use gv such as evince.
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.2-3 | — |
| Debian 13 | evince | 0.4.0-3 | — |
| Debian 13 | gv | 1:3.6.2-3 | — |
| Debian 12 | evince | 0.4.0-3 | — |
| Debian 12 | gv | 1:3.6.2-3 | — |
| Debian 3.1 | evince | 0.1.5-2sarge1 | DSA-1243-1 |
| Debian 3.1 | gv | 1:3.6.1-10sarge1 | DSA-1214-2, DSA-1214-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | evince | 40.4-1.3 | openSUSE-SU-2024:10742-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 1
- Evince Document Viewer - 'DocumentMedia' Remote Buffer Overflow EDB-2858 · remote · Nov 28, 2006 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 4
- DSA-1214-1 gv Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1214-2 gv Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1243-1 evince Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10742-1 evince-40.4-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- gnu-gv-buffer-overflow(30153) vdb-entry
- DSA-1214 vendor-advisory
- 23018 third-party-advisory
- ADV-2006-4424 vdb-entry
- 22932 third-party-advisory
- 2858 exploit
- 23353 third-party-advisory
- 23306 third-party-advisory
- 23266 third-party-advisory
- 23579 third-party-advisory
- 24787 third-party-advisory
- SUSE-SR:2006:026 vendor-advisory
- SUSE-SR:2006:028 vendor-advisory
- 23409 third-party-advisory
- GLSA-200704-06 vendor-advisory
- GLSA-200703-24 vendor-advisory
- USN-390-2 vendor-advisory
- 23335 third-party-advisory
- ADV-2006-4747 vdb-entry
- VU#352825 third-party-advisory
- 20061109 GNU gv Stack Overflow Vulnerability mailing-list
- 23111 third-party-advisory
- 23183 third-party-advisory
- DSA-1243 vendor-advisory
- 20978 vdb-entry
- GLSA-200611-20 vendor-advisory
- 20061112 Re: GNU gv Stack Overflow Vulnerability mailing-list
- MDKSA-2006:214 vendor-advisory
- 23006 third-party-advisory
- 22787 third-party-advisory
- https://issues.rpath.com/browse/RPL-850
- evince-postscript-bo(30555) vdb-entry
- 23118 third-party-advisory
- 24649 third-party-advisory
- SUSE-SR:2006:029 vendor-advisory
- 20061128 evince buffer overflow exploit (gv) mailing-list
- MDKSA-2006:229 vendor-advisory
- USN-390-3 vendor-advisory
- USN-390-1 vendor-advisory