CVE-2006-5864 Memory corruption in n/a
A stack-based buffer overflow in GNU gv allows attackers to execute arbitrary code via a malicious PostScript file, requiring user interaction to open the file.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2006-5864?
CVE-2006-5864 is a medium-severity memory corruption vulnerability in n/a, published on 11 Nov 2006. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-119
Which versions are affected by CVE-2006-5864?
It affects 1 product.
Products include Gnu Gv.
How do I fix CVE-2006-5864?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2006-5864 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-5864 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2006-5864, DSA-1214-1, DSA-1214-2, DSA-1243-1, GHSA-c7wv-85x6-hmhm.