Skip to content
Fencer Vulns
medium 6.8

CVE-2007-5935 json

Stack-based buffer overflow in hpc.c in dvips in teTeX and TeXlive 2007 and earlier allows user-assisted attackers to execute arbitrary cod…

published 2007-11-13 18 y ago modified 2026-06-16 4 mo ago also EUVD-2007-5905

cvss
6.8
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
4.0%
EPSS 4.0% chance of exploitation in 30 days, percentile 90%
public exploits
0
none known

Summary

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.

Patch / fix

  • texlive-bin Debian 14, Debian 13, Debian 12 2007.dfsg.1-1

debian advisories DEBIAN-CVE-2007-5935

  • tetex RHEL 3 1.0.7-67.19
  • tetex-afm RHEL 3 1.0.7-67.19
  • tetex-xdvi RHEL 3 1.0.7-67.19
  • tetex-dvips RHEL 3 1.0.7-67.19
  • tetex-fonts RHEL 3 1.0.7-67.19
  • tetex-latex RHEL 3 1.0.7-67.19
  • tetex RHEL 4 2.0.2-22.0.1.EL4.16
  • tetex-afm RHEL 4 2.0.2-22.0.1.EL4.16

red hat advisories RHSA-2010:0401RHSA-2010:0399

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2007-5935 updated

dvips -z buffer overflow with long href

  • Red Hat Desktop version 3 tetex 1.0.7-67.19, tetex-afm 1.0.7-67.19, tetex-xdvi 1.0.7-67.19, tetex-dvips 1.0.7-67.19, tetex-fonts 1.0.7-67.19, tetex-latex 1.0.7-67.19 Red Hat Enterprise Linux AS version 3 tetex 1.0.7-67.19, tetex-afm 1.0.7-67.19, tetex-xdvi 1.0.7-67.19, tetex-dvips 1.0.7-67.19, tetex-fonts 1.0.7-67.19, tetex-latex 1.0.7-67.19
    fixed: vendor fix RHSA-2010:0401
  • Red Hat Enterprise Linux AS version 4 tetex 2.0.2-22.0.1.EL4.16, tetex-afm 2.0.2-22.0.1.EL4.16, tetex-xdvi 2.0.2-22.0.1.EL4.16, tetex-dvips 2.0.2-22.0.1.EL4.16, tetex-fonts 2.0.2-22.0.1.EL4.16, tetex-latex 2.0.2-22.0.1.EL4.16 Red Hat Enterprise Linux Desktop version 4 tetex 2.0.2-22.0.1.EL4.16, tetex-afm 2.0.2-22.0.1.EL4.16, tetex-xdvi 2.0.2-22.0.1.EL4.16, tetex-dvips 2.0.2-22.0.1.EL4.16, tetex-fonts 2.0.2-22.0.1.EL4.16, tetex-latex 2.0.2-22.0.1.EL4.16
    fixed: vendor fix RHSA-2010:0399
  • Red Hat Enterprise Linux ES version 3 tetex 1.0.7-67.19, tetex-afm 1.0.7-67.19, tetex-xdvi 1.0.7-67.19, tetex-dvips 1.0.7-67.19, tetex-fonts 1.0.7-67.19, tetex-latex 1.0.7-67.19
    fixed: vendor fix RHSA-2010:0401
  • Red Hat Enterprise Linux ES version 4 tetex 2.0.2-22.0.1.EL4.16, tetex-afm 2.0.2-22.0.1.EL4.16, tetex-xdvi 2.0.2-22.0.1.EL4.16, tetex-dvips 2.0.2-22.0.1.EL4.16, tetex-fonts 2.0.2-22.0.1.EL4.16, tetex-latex 2.0.2-22.0.1.EL4.16
    fixed: vendor fix RHSA-2010:0399
  • Red Hat Enterprise Linux WS version 3 tetex 1.0.7-67.19, tetex-afm 1.0.7-67.19, tetex-xdvi 1.0.7-67.19, tetex-dvips 1.0.7-67.19, tetex-fonts 1.0.7-67.19, tetex-latex 1.0.7-67.19
    fixed: vendor fix RHSA-2010:0401
  • Red Hat Enterprise Linux WS version 4 tetex 2.0.2-22.0.1.EL4.16, tetex-afm 2.0.2-22.0.1.EL4.16, tetex-xdvi 2.0.2-22.0.1.EL4.16, tetex-dvips 2.0.2-22.0.1.EL4.16, tetex-fonts 2.0.2-22.0.1.EL4.16, tetex-latex 2.0.2-22.0.1.EL4.16
    fixed: vendor fix RHSA-2010:0399

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.95% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • bugs.debian.org http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447081 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.