
CVE catalog
CVE-2026-5342
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 manipul
- Severity
- Medium · CVSS 5.5
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.73% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libraw | sid | 0.22.1-1 | fixed |
| Debian | libraw | forky | 0.22.1-1 | fixed |
| Debian | libraw | trixie | 0.21.4-2+deb13u1 | fixed |
| Debian | libraw | bookworm | 0.20.2-2.1+deb12u1 | vulnerable |
| Debian | libraw | bookworm-security | 0.20.2-2.1+deb12u2 | fixed |
| Cpe | libraw | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | fixed |
| Cpe | libraw-bin | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | fixed |
| Cpe | libraw-dev | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | fixed |
| Cpe | libraw-doc | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | fixed |
| Cpe | libraw23t64 | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | fixed |
| Cpe | libraw | Not reported | 0.22.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libraw | source | sid | 0.22.1-1 | not yet assigned | Not reported | [1132655] |
| Debian | libraw | source | forky | 0.22.1-1 | not yet assigned | Not reported | [1132655] |
| Debian | libraw | source | trixie | 0.21.4-2+deb13u1 | not yet assigned | Not reported | [1132655] |
| Debian | libraw | source | bookworm | 0.20.2-2.1+deb12u2 | not yet assigned | Not reported | [1132655] |
| Cpe | libraw | cpe | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | Not reported | Not reported | Not reported |
| Cpe | libraw-bin | cpe | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | Not reported | Not reported | Not reported |
| Cpe | libraw-dev | cpe | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | Not reported | Not reported | Not reported |
| Cpe | libraw-doc | cpe | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | Not reported | Not reported | Not reported |
| Cpe | libraw23t64 | cpe | Not reported | 0.21.2-2.1ubuntu0.24.04.2 | Not reported | Not reported | Not reported |
| Cpe | libraw | cpe | Not reported | 0.22.1 | Not reported | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libraw20]Affected
Source package: [libraw]
Details (4)
0.20.2-2.1+deb12u1· amd64 · bookwormAffected · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u1· arm64 · bookwormAffected · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u2· amd64 · bookworm-securityFixed · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u2· arm64 · bookworm-securityFixed · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
- [libraw-bin]Affected
Source package: [libraw]
Details (4)
0.20.2-2.1+deb12u1· amd64 · bookwormAffected · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u1· arm64 · bookwormAffected · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u2· amd64 · bookworm-securityFixed · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u2· arm64 · bookworm-securityFixed · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
- [libraw-dev]Affected
Source package: [libraw]
Details (4)
0.20.2-2.1+deb12u1· amd64 · bookwormAffected · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u1· arm64 · bookwormAffected · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u2· amd64 · bookworm-securityFixed · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u2· arm64 · bookworm-securityFixed · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
- [libraw-doc]Affected
Source package: [libraw]
Details (4)
0.20.2-2.1+deb12u1· all · bookwormAffected · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u1· all · bookwormAffected · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u2· all · bookworm-securityFixed · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
0.20.2-2.1+deb12u2· all · bookworm-securityFixed · Fixed:
0.20.2-2.1+deb12u2nvd · libraw · debian · bookworm; nvd · libraw · debian · 12
[Debian 13 (Trixie)]
- [libraw23t64]Affected
Source package: [libraw]
Details (2)
0.21.4-2· amd64 · trixieAffected · Fixed:
0.21.4-2+deb13u1nvd · libraw · debian · 13
0.21.4-2· arm64 · trixieAffected · Fixed:
0.21.4-2+deb13u1nvd · libraw · debian · 13
- [libraw-bin]Affected
Source package: [libraw]
Details (2)
0.21.4-2· amd64 · trixieAffected · Fixed:
0.21.4-2+deb13u1nvd · libraw · debian · 13
0.21.4-2· arm64 · trixieAffected · Fixed:
0.21.4-2+deb13u1nvd · libraw · debian · 13
- [libraw-dev]Affected
Source package: [libraw]
Details (2)
0.21.4-2· amd64 · trixieAffected · Fixed:
0.21.4-2+deb13u1nvd · libraw · debian · 13
0.21.4-2· arm64 · trixieAffected · Fixed:
0.21.4-2+deb13u1nvd · libraw · debian · 13
- [libraw-doc]Affected
Source package: [libraw]
Details (2)
0.21.4-2· all · trixieAffected · Fixed:
0.21.4-2+deb13u1nvd · libraw · debian · 13
0.21.4-2· all · trixieAffected · Fixed:
0.21.4-2+deb13u1nvd · libraw · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-5342]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-5342]
- [https://security-tracker.debian.org/tracker/CVE-2026-5342]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5342.json]
- [https://ubuntu.com/security/notices/USN-8522-1]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]