CVE-2026-5342
LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds
Reported by vuldb · Published April 2, 2026
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | LibRaw | 0.1, 0.2, 0.3 |
| n/a | LibRaw | 0.1, 0.2, 0.4 |
Timeline
- Apr 2, 2026 CVE Published
- Apr 2, 2026 Security Advisory
- Apr 3, 2026 EPSS Score (30 in total, the first dated here)
- Apr 7, 2026 CVE Updated
- Jun 11, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-5342
vulnetix vdb fixes CVE-2026-5342
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-5342/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- VDB-354671 | LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds vdb-entrytechnical-description
- VDB-354671 | CTI Indicators (IOB, IOC, IOA) signaturepermissions-required
- Submit #781223 | LibRaw 0.22.0 Out-of-Bounds Read third-party-advisory
- issue-tracking
- issue-tracking
- exploit
- patch
- patch
- product