CVE-2026-5342: A flaw has been found in LibRaw up to 0.22.0
CVE-2026-5342 is a medium-severity flaw (CVSS 5.3) affecting libraw. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 b8397cd456
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-07-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-5342?
libraw: upgrade to 0.22.1. Exact commands for each OS are on this page.
Is CVE-2026-5342 being exploited?
CVE-2026-5342 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-5342 affect?
CVE-2026-5342 affects libraw. Severity is medium (CVSS 5.3). 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_wid
How urgent is CVE-2026-5342?
Priority 42/100. Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-21413 CRITICAL 9.8 DOWNGRADE A heap-based buffer overflow vulnerability exists in the lossless_jpeg_load_raw functionality of LibRaw Commit
- CVE-2026-24660 HIGH 8.1 DOWNGRADE A heap-based buffer overflow vulnerability exists in the x3f_load_huffman functionality of LibRaw Commit d2031
- CVE-2026-20911 CRITICAL 9.8 DOWNGRADE A heap-based buffer overflow vulnerability exists in the HuffTable::initval functionality of LibRaw Commit 0b5
- CVE-2026-20889 CRITICAL 9.8 DOWNGRADE A heap-based buffer overflow vulnerability exists in the x3f_thumb_loader functionality of LibRaw Commit d2031
- CVE-2026-5318 MEDIUM 4.3 UPGRADE A weakness has been identified in LibRaw up to 0.22.0