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.
Conclusion & alert: CVE-2026-5342 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.06%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ | |
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-07 | 0.04% | 0.06% | +0.02% |
| 2 | 2026-04-03 | — | 0.04% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.5 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 5.3 | 3.1 | MEDIUM |
|
3.9 | 1.4 | [email protected] |
| 5.0 | 2.0 | MEDIUM |
|
10.0 | 2.9 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-5342 not yet assigned priority: Debian including 1 source packages (libraw), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 3, resolved 2. | https://security-tracker.debian.org/tracker/CVE-2026-5342 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2026-5342 |
suse
|
low | CVE-2026-5342 severity low: SUSE including 9 source package names (libraw, libraw-devel, …), 23 product×package rows across 16 product lines (SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, … (16 product lines)): First Fixed 16, Known Not Affected 7. | https://www.suse.com/security/cve/CVE-2026-5342/ |
ubuntu
|
medium | CVE-2026-5342 medium priority: Ubuntu including 8 source packages (darktable, dcraw, …), 63 status rows across 8 suites (bionic, focal, jammy, noble, questing, resolute, upstream, xenial): needs-triage 51, DNE 4, needed 4, not-affected 3, released 1. | https://ubuntu.com/security/CVE-2026-5342 |
| URL | Tags |
|---|---|
| https://github.com/LibRaw/LibRaw/ | Product |
| https://github.com/LibRaw/LibRaw/commit/b8397cd45657b84e88bd1202528d1764265f185c | Patch |
| https://github.com/LibRaw/LibRaw/issues/795 | Issue Tracking |
| https://github.com/LibRaw/LibRaw/issues/795#issuecomment-4073769886 | Issue Tracking |
| https://github.com/LibRaw/LibRaw/releases/tag/0.22.1 | Product Release Notes |
| https://github.com/biniamf/pocs/tree/main/libraw_nikonpadded | Exploit Third Party Advisory |
| https://vuldb.com/submit/781223 | Exploit Third Party Advisory VDB Entry |
| https://vuldb.com/vuln/354671 | Third Party Advisory VDB Entry |
| https://vuldb.com/vuln/354671/cti | Permissions Required VDB Entry |