CVE-2007-5935: Buffer Overflow

Published Nov 6, 2007
·
Updated

Description of problem:

DVI file that contains a hypertex reference with long title can trigger a stack based buffer overflow of a statically sized char array when dvips is called with -z argument. This could possibly result in arbitrary code execution in case user was tricked into open a specially crafted DVI file.

Additional info:

This issue affects the versions of the tetex package, as shipped with Red Hat Enterprise Linux 3 and 4.

This issue has no security impact on tetex package version, as shipped in Red Hat Enterprise Linux 5 due to FORTIFYSOURCE protection that terminates the process before the memory corruption occurs.

This issue has no security impact on texlive package versions, as shipped with Fedora releases of 11 and 12, due to FORTIFYSOURCE protection that terminates the process before the memory corruption occurs.

See URL field for the orginal bug report from Debian project.

Other sources

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.

Affected Software

3 affected componentsFixes available
redhat/3.0<40.3.
40.3.
teTeX teTeX
Tug Texlive 2007

Event History

Nov 6, 2007
Data Sourced
via Red Hat·05:45 PM
DescriptionSeverityAffected Software
Nov 13, 2007
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2007-5935?

CVE-2007-5935 has a high severity due to the potential for arbitrary code execution resulting from a stack-based buffer overflow.

2

How do I fix CVE-2007-5935?

To fix CVE-2007-5935, update to the patched versions of the affected software provided by your vendor.

3

Which software is affected by CVE-2007-5935?

CVE-2007-5935 affects teTeX and TeX Live 2007, specifically versions prior to 40.3.

4

Can CVE-2007-5935 be exploited remotely?

Yes, CVE-2007-5935 can potentially be exploited remotely if a user is tricked into processing a crafted DVI file.

5

What type of vulnerability is CVE-2007-5935?

CVE-2007-5935 is a stack-based buffer overflow vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203