CVE-2026-5342
MediumCVSS 5.3Exploitation Probability (EPSS)
Elevated risk51th percentile - higher than 51% of all known CVEs
Summary
A vulnerability in LibRaw up to 0.22.0 in the function LibRaw::nikon_load_padded_packed_raw. Manipulating load_flags/raw_width arguments leads to an out-of-bounds read. The attack can be remote.
Risk Assessment
A remote attacker could cause disclosure of sensitive data or destabilize applications using LibRaw.
Recommendation
Upgrade LibRaw to version 0.22.1 or later.
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)
A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. Executing a manipulation of the argument load_flags/raw_width can lead to out-of-bounds read. It is possible to launch the attack remotely. The exploit has been published and may be used. Upgrading to version 0.22.1 mitigates this issue. This patch is called b8397cd45657b84e88bd1202528d1764265f185c. It is advisable to upgrade the affected component.

