Description
Buffer overflow in (1) gv 3.5.8 and earlier, (2) gvv 1.0.2 and earlier, (3) ggv 1.99.90 and earlier, (4) gnome-gv, and (5) kghostview in kdegraphics 2.2.2 and earlier, allows attackers to execute arbitrary code via a malformed (a) PDF or (b) PostScript file, which is processed by an unsafe call to sscanf.
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 ↗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 2.x/3.x - '.PDF'/'.PS' File Buffer Overflow (1) EDB-21871 · local · Sep 26, 2002 · verified
- GV 2.x/3.x - '.PDF'/'.PS' File Buffer Overflow (2) EDB-21872 · local · Sep 26, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- DSA-182 kdegraphics - buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-176 gv - buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-179 gnome-gv - buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
References
- DSA-179 vendor-advisory
- MDKSA-2002:069 vendor-advisory
- http://www.kde.org/info/security/advisory-20021008-1.txt
- DSA-182 vendor-advisory
- CLA-2002:542 vendor-advisory
- 20020926 iDEFENSE Security Advisory 09.26.2002: Exploitable Buffer Overflow in gv mailing-list
- MDKSA-2002:071 vendor-advisory
- 5808 vdb-entry
- DSA-176 vendor-advisory
- gv-sscanf-function-bo(10201) vdb-entry
- RHSA-2002:212 vendor-advisory
- RHSA-2002:220 vendor-advisory
- RHSA-2002:207 vendor-advisory
- VU#600777 third-party-advisory
- http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert/47780&zone_32=category:security
- 20021017 GLSA: ggv mailing-list
- 20020926 Errata: iDEFENSE Security Advisory 09.26.2002: Exploitable Buffer Overflow in gv mailing-list