CVE-2026-5342
CVE-2026-5342 · LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds
This page contains facts from public vulnerability sources. Check the original advisory before updating.
This page shows selected source facts. See the linked advisories for the complete description and affected versions.
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.
CVSS 6.9 · Medium · EPSS 0.7% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
libraw
- Versions
- 0.1: Affected
- 0.2: Affected
- 0.3: Affected
- 0.4: Affected
- 0.5: Affected
- 0.6: Affected
- 0.7: Affected
- 0.8: Affected
- 0.9: Affected
- 0.10: Affected
- 0.11: Affected
- 0.12: Affected
- 0.13: Affected
- 0.14: Affected
- 0.15: Affected
- 0.16: Affected
- 0.17: Affected
- 0.18: Affected
- 0.19: Affected
- 0.20: Affected
- 0.21: Affected
- 0.22.0: Affected
- 0.22.1: Not affected
Update to 0.22.1
libraw Debian:12
- Versions
- 0.20.2-2.1
- 0.20.2-2.1+deb12u1
- Affected ranges
- ECOSYSTEM: < 0.20.2-2.1+deb12u2
Update to 0.20.2-2.1+deb12u2
libraw Debian:13
- Versions
- 0.21.4-2
- Affected ranges
- ECOSYSTEM: < 0.21.4-2+deb13u1
Update to 0.21.4-2+deb13u1
libraw Debian:14
- Versions
- 0.21.4-2
- 0.21.4-3~exp1
- 0.21.4-3~exp2
- 0.21.5b-1
- 0.22.0-1~exp1
- 0.22.1-1~exp1
- 0.22.1-1~exp2
- Affected ranges
- ECOSYSTEM: < 0.22.1-1
Update to 0.22.1-1
darktable Ubuntu:16.04:LTS
- Versions
- 1.6.8-1
- 1.6.9-1
- 2.0.0-1
- 2.0.1-1
- 2.0.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
dcraw Ubuntu:16.04:LTS
- Versions
- 9.21-0.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
digikam Ubuntu:Pro:16.04:LTS
- Versions
- 4:4.12.0-0ubuntu5
- 4:4.12.0-0ubuntu6
- 4:4.12.0-0ubuntu7
- 4:4.12.0-0ubuntu7+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
exactimage Ubuntu:16.04:LTS
- Versions
- 0.9.1-6build1
- 0.9.1-6ubuntu1
- 0.9.1-8ubuntu1
- 0.9.1-9
- 0.9.1-9build1
- 0.9.1-10
- 0.9.1-11
- 0.9.1-12
- 0.9.1-12ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
kodi Ubuntu:16.04:LTS
- Versions
- 15.1+dfsg1-3
- 15.2+dfsg1-1build1
- 15.2+dfsg1-3
- 15.2+dfsg1-3ubuntu1
- 15.2+dfsg1-3ubuntu1.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rawtherapee Ubuntu:16.04:LTS
- Versions
- 4.2-2build1
- 4.2-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ufraw Ubuntu:16.04:LTS
- Versions
- 0.20-3build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
darktable Ubuntu:18.04:LTS
- Versions
- 2.2.5-2
- 2.4.0-1
- 2.4.1-1
- 2.4.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
dcraw Ubuntu:18.04:LTS
- Versions
- 9.27-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
digikam Ubuntu:Pro:18.04:LTS
- Versions
- 4:5.6.0-0ubuntu2
- 4:5.6.0-0ubuntu3
- 4:5.6.0-0ubuntu4
- 4:5.6.0-0ubuntu7
- 4:5.6.0-0ubuntu8
- 4:5.6.0-0ubuntu9
- 4:5.6.0-0ubuntu10
- 4:5.6.0-0ubuntu10+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
exactimage Ubuntu:18.04:LTS
- Versions
- 0.9.2-1build1
- 1.0.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
kodi Ubuntu:18.04:LTS
- Versions
- 2:17.3+dfsg1-3
- 2:17.3+dfsg1-3build1
- 2:17.3+dfsg1-5
- 2:17.3+dfsg1-5build1
- 2:17.3+dfsg1-5build2
- 2:17.6+dfsg1-1
- 2:17.6+dfsg1-1build1
- 2:17.6+dfsg1-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rawtherapee Ubuntu:18.04:LTS
- Versions
- 5.2-1
- 5.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ufraw Ubuntu:18.04:LTS
- Versions
- 0.22-1.1
- 0.22-2
- 0.22-3
- 0.22-3.1~build0.18.04.1
- 0.22-3.1ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
darktable Ubuntu:20.04:LTS
- Versions
- 2.6.0-1
- 2.6.2-3
- 2.6.3-1
- 2.6.3-1build1
- 2.6.3-1build2
- 3.0.1-0ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
dcraw Ubuntu:20.04:LTS
- Versions
- 9.28-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
digikam Ubuntu:Pro:20.04:LTS
- Versions
- 4:5.9.0-1ubuntu4
- 4:6.4.0+dfsg-3
- 4:6.4.0+dfsg-3build1
- 4:6.4.0+dfsg-3ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
exactimage Ubuntu:20.04:LTS
- Versions
- 1.0.2-3
- 1.0.2-5ubuntu1
- 1.0.2-5ubuntu2
- 1.0.2-7ubuntu1
- 1.0.2-7ubuntu2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
kodi Ubuntu:20.04:LTS
- Versions
- 2:17.6+dfsg1-4ubuntu4
- 2:17.6+dfsg1-4ubuntu9
- 2:17.6+dfsg1-4ubuntu10
- 2:18.5+dfsg1-0ubuntu3
- 2:18.6+dfsg1-2ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rawtherapee Ubuntu:20.04:LTS
- Versions
- 5.6-1
- 5.7-1
- 5.8-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://vuldb.com/vuln/354671
- https://vuldb.com/vuln/354671/cti
- https://vuldb.com/submit/781223
- https://github.com/LibRaw/LibRaw/issues/795
- https://github.com/LibRaw/LibRaw/issues/795#issuecomment-4073769886
- https://github.com/biniamf/pocs/tree/main/libraw_nikonpadded
- https://github.com/LibRaw/LibRaw/commit/b8397cd45657b84e88bd1202528d1764265f185c
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1
- https://github.com/LibRaw/LibRaw/
- https://nvd.nist.gov/vuln/detail/CVE-2026-5342