Skip to content
OpenAdvisories
Unscored Public exploit CVE-2006-5864 EUVD-2006-5848GHSA-c7wv-85x6-hmhm

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 attack…

Published Nov 11, 2006 · Updated Aug 7, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 4

References