CWE
NVD-CWE-Other 119 190
Advisory Published
Updated

CVE-2004-1308: Buffer Overflow

First published: Wed Dec 22 2004(Updated: )

Integer overflow in (1) tif_dirread.c and (2) tif_fax3.c for libtiff 3.5.7 and 3.7.0 allows remote attackers to execute arbitrary code via a TIFF file containing a TIFF_ASCII or TIFF_UNDEFINED directory entry with a -1 entry count, which leads to a heap-based buffer overflow.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
libtiff=3.6.1
libtiff=3.4
libtiff=3.5.7
libtiff=3.7.0
libtiff=3.6.0
libtiff=3.5.3
libtiff=3.5.4
libtiff=3.5.2
libtiff=3.5.5
libtiff=3.5.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2004-1308?

    CVE-2004-1308 has a critical severity rating due to the potential for arbitrary code execution.

  • How do I fix CVE-2004-1308?

    To fix CVE-2004-1308, update libtiff to version 3.6.1 or later.

  • What types of attacks are possible with CVE-2004-1308?

    CVE-2004-1308 allows remote attackers to exploit the vulnerability through specially crafted TIFF files.

  • Which versions of libtiff are affected by CVE-2004-1308?

    Affected versions include libtiff versions 3.4, 3.5.2 to 3.5.7, and 3.7.0.

  • Is there a workaround for CVE-2004-1308 if updating is not immediately possible?

    A temporary workaround for CVE-2004-1308 is to avoid opening untrusted TIFF files.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203