CVEfocus › CVE database › CVE-2026-5342

CVE-2026-5342LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds

CVSS 5.3 MediumEPSS 0.8% (higher than 57% of CVEs)Published 2026-04-02Updated 2026-04-07Assigner: VulDB

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.

CWE-119CWE-125

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

6Fixed
38Fix pending
17Under investigation
9Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10darktableFix pendingUBUNTU-CVE-2026-5342
Ubuntu 26.10dcrawFix pendingUBUNTU-CVE-2026-5342
Ubuntu 26.10digikamFix pendingUBUNTU-CVE-2026-5342
Ubuntu 26.10exactimageFix pendingUBUNTU-CVE-2026-5342
Ubuntu 26.10kodiFix pendingUBUNTU-CVE-2026-5342
Ubuntu 26.10rawtherapeeFix pendingUBUNTU-CVE-2026-5342
Ubuntu 26.04darktableUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 26.04dcrawUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 26.04digikamUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 26.04exactimageUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 26.04kodiUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 26.04librawFixed0.21.5b-1ubuntu1.1UBUNTU-CVE-2026-5342
Ubuntu 26.04rawtherapeeUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 25.10darktableWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5342
Ubuntu 25.10dcrawWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5342
Ubuntu 25.10digikamWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5342
Ubuntu 25.10exactimageWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5342
Ubuntu 25.10kodiWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5342
Ubuntu 25.10librawWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5342
Ubuntu 25.10rawtherapeeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5342
Ubuntu 24.04darktableUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 24.04dcrawUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 24.04digikamUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 24.04exactimageUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 24.04kodiUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 24.04librawFixed0.21.2-2.1ubuntu0.24.04.2UBUNTU-CVE-2026-5342
Ubuntu 24.04rawtherapeeUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 22.04darktableUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 22.04dcrawUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 22.04digikamFix pendingUBUNTU-CVE-2026-5342
Ubuntu 22.04exactimageUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 22.04kodiUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 22.04librawFixed0.20.2-2ubuntu2.22.04.3UBUNTU-CVE-2026-5342
Ubuntu 22.04rawtherapeeUnder investigationUBUNTU-CVE-2026-5342
Ubuntu 20.04darktableFix pendingUBUNTU-CVE-2026-5342
Ubuntu 20.04dcrawFix pendingUBUNTU-CVE-2026-5342
Ubuntu 20.04digikamFix pendingUBUNTU-CVE-2026-5342
Ubuntu 20.04exactimageFix pendingUBUNTU-CVE-2026-5342
Ubuntu 20.04kodiFix pendingUBUNTU-CVE-2026-5342
Ubuntu 20.04rawtherapeeFix pendingUBUNTU-CVE-2026-5342
Ubuntu 18.04darktableFix pendingUBUNTU-CVE-2026-5342
Ubuntu 18.04dcrawFix pendingUBUNTU-CVE-2026-5342
Ubuntu 18.04digikamFix pendingUBUNTU-CVE-2026-5342
Ubuntu 18.04exactimageFix pendingUBUNTU-CVE-2026-5342
Ubuntu 18.04kodiFix pendingUBUNTU-CVE-2026-5342
Ubuntu 18.04rawtherapeeFix pendingUBUNTU-CVE-2026-5342
Ubuntu 18.04ufrawFix pendingUBUNTU-CVE-2026-5342
Ubuntu 16.04darktableFix pendingUBUNTU-CVE-2026-5342
Ubuntu 16.04dcrawFix pendingUBUNTU-CVE-2026-5342
Ubuntu 16.04digikamFix pendingUBUNTU-CVE-2026-5342
Ubuntu 16.04exactimageFix pendingUBUNTU-CVE-2026-5342
Ubuntu 16.04kodiFix pendingUBUNTU-CVE-2026-5342
Ubuntu 16.04rawtherapeeFix pendingUBUNTU-CVE-2026-5342
Ubuntu 16.04ufrawFix pendingUBUNTU-CVE-2026-5342
Debian 14librawFixed0.22.1-1DEBIAN-CVE-2026-5342
Debian 13librawFixed0.21.4-2+deb13u1DEBIAN-CVE-2026-5342
Debian 12librawFixed0.20.2-2.1+deb12u2DEBIAN-CVE-2026-5342
Red Hat Enterprise Linux 9LibRawFix pending
Fix deferred
Red Hat Enterprise Linux 9LibRaw-develFix pending
Fix deferred
Red Hat Enterprise Linux 8LibRawFix pending
Fix deferred
Red Hat Enterprise Linux 8LibRaw-develFix pending
Fix deferred
Red Hat Enterprise Linux 8libraw1394Fix pending
Fix deferred
Red Hat Enterprise Linux 8libraw1394-develFix pending
Fix deferred
Red Hat Enterprise Linux 7LibRawFix pending
Fix deferred
Red Hat Enterprise Linux 7LibRaw-develFix pending
Fix deferred
Red Hat Enterprise Linux 7LibRaw-staticFix pending
Fix deferred
Red Hat Enterprise Linux 7libraw1394Fix pending
Fix deferred
Red Hat Enterprise Linux 7libraw1394-develFix pending
Fix deferred
Red Hat Enterprise Linux 6libraw1394Will not fix
Out of support scope
Red Hat Enterprise Linux 6libraw1394-develWill 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.

Vendor advisories:

References

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.