CVE-2026-88387
UnknownSummary
LibRaw 0.22.0 contains an incorrect numeric conversion vulnerability in LibRaw::parse_tiff_ifd() when processing TIFF tag 0x00fe (NewSubfileType). A specially crafted RAW, TIFF, or DNG file can supply an attacker-controlled NewSubfileType value outside the range of a signed int. The parser converts this value and narrows it to int without performing range validation. This out-of-range conversion triggers undefined behavior, resulting in process termination and denial of service.
Risk Assessment
An attacker can remotely crash an image-processing application, causing denial of service. This may disrupt systems that process graphic files.
Recommendation
Upgrade LibRaw to a version newer than 0.22.0 that includes the range validation fix. Until then, avoid processing untrusted RAW, TIFF, and DNG files.
Other vulnerabilities in LibRaw
See all- CVE-2017-14348High
LibRaw before 0.18.4 has a heap-based Buffer Overflow in the processCanonCameraInfo function via a crafted file.
- CVE-2017-13735High
There is a floating point exception in the kodak_radc_load_raw function in dcraw_common.cpp in LibRaw 0.18.2, which may lead to a remote denial of service attack.
- CVE-2017-6887High
A boundary error in the 'parse_tiff_ifd()' function in LibRaw versions before 0.18.2 can lead to memory corruption. Exploiting a specially crafted KDC file with the model set to 'DSLR-A100' and containing multiple sequences of 0x100 and 0x14A TAGs may allow an attack.
- CVE-2026-21413Critical
A heap-based buffer overflow vulnerability was found in the lossless_jpeg_load_raw function of LibRaw in commits 0b56545 and d20315b. A specially crafted malicious file can cause a heap buffer overflow.
- CVE-2026-20911Critical
A heap-based buffer overflow vulnerability in the HuffTable::initval function of LibRaw. A specially crafted malicious file can cause a heap buffer overflow, allowing an attacker to execute arbitrary code or crash the application.
- CVE-2026-20889Critical
A heap-based buffer overflow vulnerability exists in the x3f_thumb_loader function of LibRaw (commit d20315b). A specially crafted malicious file can lead to a heap buffer overflow.
- CVE-2017-14608Critical
In LibRaw through version 0.18.4, an out of bounds read flaw related to kodak_65000_load_raw has been reported in dcraw/dcraw.c and internal/dcraw_common.cpp. An attacker could possibly exploit this flaw to disclose potentially sensitive memory or cause an application crash.
- CVE-2017-14265Critical
A stack-based buffer overflow was discovered in xtrans_interpolate in internal/dcraw_common.cpp in LibRaw before version 0.18.3. It could allow a remote denial of service or code execution attack.
- CVE-2017-6886Critical
An error in the 'parse_tiff_ifd()' function in LibRaw versions before 0.18.2 can be exploited to corrupt memory.
- CVE-2026-24660High
A heap-based buffer overflow vulnerability exists in the x3f_load_huffman function of LibRaw. A specially crafted malicious file can lead to a heap buffer overflow.
Original NVD description (English source)
LibRaw 0.22.0 contains an incorrect numeric conversion vulnerability in LibRaw::parse_tiff_ifd() when processing TIFF tag 0x00fe (NewSubfileType). A specially crafted RAW, TIFF, or DNG file can supply an attacker-controlled NewSubfileType value outside the range of a signed int. The parser converts this value and narrows it to int without performing range validation. This out-of-range conversion triggers undefined behavior, resulting in process termination and denial of service.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

