Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | tiff | 3.6.1-4 | — |
| Debian 13 | tiff | 3.6.1-4 | — |
| Debian 12 | tiff | 3.6.1-4 | — |
| Debian 3.0 | tiff | 3.5.5-6.woody3 | DSA-617-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | libtiff +1 | 3.6.1-8 | RHSA-2005:035 |
| RHEL 3 | kdegraphics +1 | 7:3.1.3-3.7 | RHSA-2005:021 |
| RHEL 3 | libtiff +1 | 3.5.7-22.el3 | RHSA-2005:019 |
Advisories 4
- RHSA-2005:035 Red Hat Security Advisory: libtiff security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2005:019 Red Hat Security Advisory: libtiff security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2005:021 Red Hat Security Advisory: kdegraphics security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-617-1 libtiff - insufficient input validation Debian Security (DSA / DLA) · Mar 9, 2026
References
- RHSA-2005:019 vendor-advisory
- libtiff-tiff-tdircount-bo(18637) vdb-entry
- DSA-617 vendor-advisory
- TA05-136A third-party-advisory
- SUSE-SA:2005:001 vendor-advisory
- 201072 vendor-advisory
- 101677 vendor-advisory
- APPLE-SA-2005-05-03 vendor-advisory
- oval:org.mitre.oval:def:9392 vdb-entry signature
- MDKSA-2005:052 vendor-advisory
- 20041221 libtiff Directory Entry Count Integer Overflow Vulnerability third-party-advisory
- VU#125598 third-party-advisory
- oval:org.mitre.oval:def:100117 vdb-entry signature
- RHSA-2005:035 vendor-advisory
- CLA-2005:920 vendor-advisory
- 13776 third-party-advisory