CVE-2026-5342LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | darktable | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.10 | dcraw | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.10 | digikam | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.10 | exactimage | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.10 | kodi | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.10 | rawtherapee | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.04 | darktable | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.04 | dcraw | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.04 | digikam | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.04 | exactimage | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.04 | kodi | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 26.04 | libraw | Fixed | 0.21.5b-1ubuntu1.1 | UBUNTU-CVE-2026-5342 |
| Ubuntu 26.04 | rawtherapee | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 25.10 | darktable | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5342 | |
| Ubuntu 25.10 | dcraw | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5342 | |
| Ubuntu 25.10 | digikam | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5342 | |
| Ubuntu 25.10 | exactimage | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5342 | |
| Ubuntu 25.10 | kodi | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5342 | |
| Ubuntu 25.10 | libraw | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5342 | |
| Ubuntu 25.10 | rawtherapee | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5342 | |
| Ubuntu 24.04 | darktable | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 24.04 | dcraw | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 24.04 | digikam | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 24.04 | exactimage | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 24.04 | kodi | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 24.04 | libraw | Fixed | 0.21.2-2.1ubuntu0.24.04.2 | UBUNTU-CVE-2026-5342 |
| Ubuntu 24.04 | rawtherapee | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 22.04 | darktable | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 22.04 | dcraw | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 22.04 | digikam | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 22.04 | exactimage | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 22.04 | kodi | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 22.04 | libraw | Fixed | 0.20.2-2ubuntu2.22.04.3 | UBUNTU-CVE-2026-5342 |
| Ubuntu 22.04 | rawtherapee | Under investigation | UBUNTU-CVE-2026-5342 | |
| Ubuntu 20.04 | darktable | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 20.04 | dcraw | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 20.04 | digikam | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 20.04 | exactimage | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 20.04 | kodi | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 20.04 | rawtherapee | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 18.04 | darktable | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 18.04 | dcraw | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 18.04 | digikam | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 18.04 | exactimage | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 18.04 | kodi | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 18.04 | rawtherapee | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 18.04 | ufraw | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 16.04 | darktable | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 16.04 | dcraw | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 16.04 | digikam | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 16.04 | exactimage | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 16.04 | kodi | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 16.04 | rawtherapee | Fix pending | UBUNTU-CVE-2026-5342 | |
| Ubuntu 16.04 | ufraw | Fix pending | UBUNTU-CVE-2026-5342 | |
| Debian 14 | libraw | Fixed | 0.22.1-1 | DEBIAN-CVE-2026-5342 |
| Debian 13 | libraw | Fixed | 0.21.4-2+deb13u1 | DEBIAN-CVE-2026-5342 |
| Debian 12 | libraw | Fixed | 0.20.2-2.1+deb12u2 | DEBIAN-CVE-2026-5342 |
| Red Hat Enterprise Linux 9 | LibRaw | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | LibRaw-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | LibRaw | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | LibRaw-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libraw1394 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libraw1394-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | LibRaw | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | LibRaw-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | LibRaw-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libraw1394 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libraw1394-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libraw1394 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libraw1394-devel | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- LibRaw: affected: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6
Vendor advisories:
- https://github.com/LibRaw/LibRaw/commit/b8397cd45657b84e88bd1202528d1764265f185c (patch)
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1 (patch)
References
- 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/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.