Skip to content
Fencer Vulns
medium 5.3

CVE-2026-5342 json

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

published 2026-04-02 7 mo ago modified 2026-08-03 3 mo ago also EUVD-2026-18344 , JLSEC-2026-1118

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 55%
public exploits
0
none known

Summary

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.

Patch / fix

  • julia LibRaw_jll 0.22.1+0
  • n/a LibRaw 0.22.1
  • libraw Debian 12 0.20.2-2.1+deb12u2
  • libraw Debian 13 0.21.4-2+deb13u1
  • libraw Debian 14 0.22.1-1

debian advisories DEBIAN-CVE-2026-5342

  • libraw Ubuntu 22.04 LTS 0.20.2-2ubuntu2.22.04.3
  • libraw Ubuntu 24.04 LTS 0.21.2-2.1ubuntu0.24.04.2
  • libraw Ubuntu 26.04 LTS 0.21.5b-1ubuntu1.1

ubuntu advisories UBUNTU-CVE-2026-5342

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libraw SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 0.20.2-150400.3.21.1
  • libraw SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Workstation Extension 15 SP7 +2 more 0.21.1-150600.3.10.1

suse advisories SUSE-SU-2026:1556-1SUSE-SU-2026:1555-1

  • libraw openSUSE Leap 16.0 0.21.4-160000.3.1
  • libraw openSUSE Tumbleweed 0.22.1-1.1

opensuse advisories openSUSE-SU-2026:20574-1openSUSE-SU-2026:10565-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-5342 updated cvss 5.3

LibRaw: LibRaw: Out-of-bounds read via `load_flags/raw_width` argument manipulation

  • Red Hat Enterprise Linux 6 libraw1394
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 7 LibRaw, libraw1394 Red Hat Enterprise Linux 8 LibRaw, libraw1394 Red Hat Enterprise Linux 9 LibRaw
    affected: workaround, no fix available “Fix deferred”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
7 mo ago

Exploit prediction

0.76% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/biniamf/pocs/tree/main/libraw_nikonpadded referenced PoC, tagged "exploit" by a source, unverified
  • vuldb.com https://vuldb.com/submit/781223 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 4.0 6.9 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
CNA 3.1 5.3 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
CNA 3.0 5.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C
CNA 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C
CNA 4.0 5.5 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CNA 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
OSV 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
julia LibRaw_jll
<0.22.1+0
0.22.1+0

Affected products

  • n/a LibRaw

Classification

Weakness
  • CWE-125 Out-of-bounds Read
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.