CVE-2004-1308: Libtiff

High severity, CVSS 10.0. EPSS: 15% chance of exploitation in the next 30 days.

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.

Affected products

  • Libtiff Libtiff: version 3.4 only; version 3.5.1 only; version 3.5.2 only; version 3.5.3 only; version 3.5.4 only; version 3.5.5 only; …

Published 2005-01-10. Last modified 2026-06-16.