Vulnerability · Published Apr 2, 2026 · Assigned by VulDB
CVE-2026-5342LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds
Medium 5.3
In plain English
A medium-severity out-of-bounds read in LibRaw. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libraw | 0.20.2-2.1+deb12u2 | DEBIAN-CVE-2026-5342 |
| Debian:13 | libraw | 0.21.4-2+deb13u1 | DEBIAN-CVE-2026-5342 |
| Debian:14 | libraw | 0.22.1-1 | DEBIAN-CVE-2026-5342 |
| Ubuntu:22.04:LTS | darktable | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:24.04:LTS | darktable | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:25.10 | darktable | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.04:LTS | darktable | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.10 | darktable | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:22.04:LTS | dcraw | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:24.04:LTS | dcraw | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:25.10 | dcraw | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.04:LTS | dcraw | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.10 | dcraw | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:24.04:LTS | digikam | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:25.10 | digikam | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.04:LTS | digikam | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.10 | digikam | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:22.04:LTS | exactimage | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:24.04:LTS | exactimage | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:25.10 | exactimage | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.04:LTS | exactimage | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.10 | exactimage | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:22.04:LTS | kodi | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:24.04:LTS | kodi | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:25.10 | kodi | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.04:LTS | kodi | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.10 | kodi | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:22.04:LTS | libraw | 0.20.2-2ubuntu2.22.04.3 | USN-8522-1 |
| Ubuntu:22.04:LTS | libraw | 0.20.2-2ubuntu2.22.04.3 | UBUNTU-CVE-2026-5342 |
| Ubuntu:24.04:LTS | libraw | 0.21.2-2.1ubuntu0.24.04.2 | UBUNTU-CVE-2026-5342 |
| Ubuntu:24.04:LTS | libraw | 0.21.2-2.1ubuntu0.24.04.2 | USN-8522-1 |
| Ubuntu:25.10 | libraw | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.04:LTS | libraw | 0.21.5b-1ubuntu1.1 | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.04:LTS | libraw | 0.21.5b-1ubuntu1.1 | USN-8522-1 |
| Ubuntu:22.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:24.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:25.10 | rawtherapee | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2026-5342 |
| Ubuntu:26.10 | rawtherapee | no fix listed | UBUNTU-CVE-2026-5342 |
Affected products (as reported)
Weakness: CWE-125, CWE-119 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C
References
- VDB-354671 | LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds vdb-entry, technical-description
- VDB-354671 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #781223 | LibRaw 0.22.0 Out-of-Bounds Read third-party-advisory
- https://github.com/LibRaw/LibRaw/issues/795 issue-tracking
- https://github.com/LibRaw/LibRaw/issues/795#issuecomment-4073769886 issue-tracking
- https://github.com/biniamf/pocs/tree/main/libraw_nikonpadded exploit
- https://github.com/LibRaw/LibRaw/commit/b8397cd45657b84e88bd1202528d1764265f185c patch
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1 patch
- https://github.com/LibRaw/LibRaw/ product