CVE-2023-26966
Description
libtiff 4.5.0 is vulnerable to Buffer Overflow in uv_encode() when libtiff reads a corrupted little-endian TIFF file and specifies the output to be big-endian.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
20- osv-coords18 versionspkg:rpm/almalinux/libtiffpkg:rpm/almalinux/libtiff-develpkg:rpm/almalinux/libtiff-toolspkg:rpm/opensuse/tiff&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/tiff&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/tiff&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/tiff&distro=openSUSE%20Leap%20Micro%205.4pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/tiff&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5
< 4.4.0-10.el9+ 17 more
- (no CPE)range: < 4.4.0-10.el9
- (no CPE)range: < 4.4.0-10.el9
- (no CPE)range: < 4.4.0-10.el9
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-150000.45.32.1
- (no CPE)range: < 4.0.9-44.71.1
- (no CPE)range: < 4.0.9-44.71.1
- (no CPE)range: < 4.0.9-44.71.1
Patches
Vulnerability mechanics
Root cause
"Missing bounds checking in uv_encode() allows an out-of-bounds read when processing a corrupted TIFF file."
Attack vector
An attacker provides a crafted little-endian TIFF file with a corrupted directory structure (e.g., invalid directory count and unsorted tags) [ref_id=1]. When `tiffcrop` is invoked with the `-B` flag (specifying big-endian output), the tool attempts to re-encode the image data, which reaches the LogLuv encoding path [ref_id=1]. The corrupted input causes an out-of-bounds read in `uv_encode()`, leading to a segmentation fault [ref_id=1]. No authentication or special privileges are required beyond opening the malicious file.
Affected code
The crash occurs in `uv_encode()` at `libtiff/tif_luv.c:961`, called via `LogLuv24fromXYZ` (line 1057), `Luv24fromXYZ` (line 1120), `LogLuvEncode24` (line 569), and `LogLuvEncodeStrip` (line 722) [ref_id=1]. The tool `tiffcrop` triggers the bug through `writeBufferToContigStrips` and `writeCroppedImage` [ref_id=1].
What the fix does
The issue report does not include a patch; it documents a SEGV in `uv_encode()` at `tif_luv.c:961` triggered by a corrupted TIFF file [ref_id=1]. The advisory does not specify a fix or remediation. As of the report, the vulnerability remains unpatched in libtiff 4.5.0 [ref_id=1].
Preconditions
- inputAttacker must supply a crafted little-endian TIFF file with a corrupted directory structure.
- inputThe victim must run tiffcrop with the -B (big-endian output) flag on the malicious file.
Reproduction
Clone libtiff, configure, and build. Run: `./tools/tiffcrop -B poc temp` where `poc` is the supplied proof-of-concept file [ref_id=1]. The tool will emit TIFF warnings and then crash with SIGSEGV [ref_id=1].
Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
3News mentions
0No linked articles in our index yet.