CVE-2026-5342: LibRaw · Out-of-bounds Read
Affects LibRawSource CVE Database V5
Public exploit available · CVSS 6.9 Medium · fixed in 0.22.1 : patch LibRaw as a priority.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.22.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 2 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LibRaw | Affected
| Fixed in– |
GitHublibraw/LibRawpkg:github/libraw/LibRawOther threats | Affected
| Fixed in– |
CPE configurations (1)
cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:*
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade LibRaw to version 0.22.1 or later, which contains the official fix for this vulnerability. This is the recommended and effective remediation. No other mitigations are indicated by the vendor advisory.
Description
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.
References
- vuldb.com/vuln/354671 (opens in a new tab)
- vuldb.com/vuln/354671/cti (opens in a new tab)
- vuldb.com/submit/781223 (opens in a new tab)
- github.com/LibRaw/LibRaw/issues/795 (opens in a new tab)
- github.com/LibRaw/LibRaw/issues/795 (opens in a new tab)
- github.com/biniamf/pocs/tree/main/libraw_nikonpadded (opens in a new tab)
- github.com/LibRaw/LibRaw/commit/b8397cd45657b84e88bd1202528d1764265f185c (opens in a new tab)
- github.com/LibRaw/LibRaw/releases/tag/0.22.1 (opens in a new tab)
- github.com/LibRaw/LibRaw/ (opens in a new tab)