| Name | CVE-2023-40745 | 
| Description | LibTIFF is vulnerable to an integer overflow. This flaw allows remote attackers to cause a denial of service (application crash) or possibly execute an arbitrary code via a crafted tiff image, which triggers a heap-based buffer overflow. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DLA-3513-1, DSA-5567-1 | 
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|---|---|---|
| tiff (PTS) | bullseye | 4.2.0-1+deb11u5 | fixed | 
| bullseye (security) | 4.2.0-1+deb11u7 | fixed | |
| bookworm | 4.5.0-6+deb12u2 | fixed | |
| bookworm (security) | 4.5.0-6+deb12u3 | fixed | |
| trixie | 4.7.0-3 | fixed | |
| trixie (security) | 4.7.0-3+deb13u1 | fixed | |
| forky, sid | 4.7.1-1 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|---|---|---|---|---|---|
| tiff | source | buster | 4.1.0+git191117-2~deb10u8 | DLA-3513-1 | ||
| tiff | source | bullseye | 4.2.0-1+deb11u5 | DSA-5567-1 | ||
| tiff | source | bookworm | 4.5.0-6+deb12u1 | DSA-5567-1 | ||
| tiff | source | (unstable) | 4.5.1+git230720-1 | 
https://gitlab.com/libtiff/libtiff/-/commit/4fc16f649fa2875d5c388cf2edc295510a247ee5
https://gitlab.com/libtiff/libtiff/-/issues/591
https://bugzilla.redhat.com/show_bug.cgi?id=2235265