
CVE catalog
CVE-2026-5318
A weakness has been identified in LibRaw up to 0.22.0. This impacts the function HuffTable::initval of the file src/decompressors/losslessjpeg.cpp of the component JPEG DHT Parser. This manipulation o
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.63% · Oct 25, 2026
A weakness has been identified in LibRaw up to 0.22.0. This impacts the function HuffTable::initval of the file src/decompressors/losslessjpeg.cpp of the component JPEG DHT Parser. This manipulation of the argument bits[] causes out-of-bounds write. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 0.22.1 will fix this issue. Patch name: a6734e867b19d75367c05f872ac26322464e3995. 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 | not affected |
| Debian | libraw | bookworm | 0.20.2-2.1+deb12u1 | not affected |
| Debian | libraw | bookworm-security | 0.20.2-2.1+deb12u2 | not affected |
| Cpe | libraw | Not reported | 0.22.1 | fixed |
| Cpe | libraw | Not reported | Not reported | not affected |
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 | Not affected | unimportant | Not reported | [1132655] |
| Debian | libraw | source | bookworm | Not affected | unimportant | Not reported | [1132655] |
| Cpe | libraw | cpe | Not reported | 0.22.1 | Not reported | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libraw20]Not affected
Source package: [libraw]
Details (4)
0.20.2-2.1+deb12u1· amd64 · bookwormNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u1· arm64 · bookwormNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u2· amd64 · bookworm-securityNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u2· arm64 · bookworm-securityNot affected
nvd · libraw · debian · bookworm
- [libraw-bin]Not affected
Source package: [libraw]
Details (4)
0.20.2-2.1+deb12u1· amd64 · bookwormNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u1· arm64 · bookwormNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u2· amd64 · bookworm-securityNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u2· arm64 · bookworm-securityNot affected
nvd · libraw · debian · bookworm
- [libraw-dev]Not affected
Source package: [libraw]
Details (4)
0.20.2-2.1+deb12u1· amd64 · bookwormNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u1· arm64 · bookwormNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u2· amd64 · bookworm-securityNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u2· arm64 · bookworm-securityNot affected
nvd · libraw · debian · bookworm
- [libraw-doc]Not affected
Source package: [libraw]
Details (4)
0.20.2-2.1+deb12u1· all · bookwormNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u1· all · bookwormNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u2· all · bookworm-securityNot affected
nvd · libraw · debian · bookworm
0.20.2-2.1+deb12u2· all · bookworm-securityNot affected
nvd · libraw · debian · bookworm
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2026-5318]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-5318]
- [https://security-tracker.debian.org/tracker/CVE-2026-5318]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5318.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]