CVE-2026-5318 json
LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write
published 2026-04-02 7 mo ago modified 2026-08-03 3 mo ago also EUVD-2026-18116 , JLSEC-2026-1117
- cvss
- 4.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 50%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- julia LibRaw_jll 0.22.1+0
- n/a LibRaw 0.22.1
- libraw Debian 14 0.22.1-1
debian advisories DEBIAN-CVE-2026-5318
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-5318 updated cvss 6.5
LibRaw: LibRaw: Denial of Service via out-of-bounds write in JPEG DHT Parser
-
Red Hat Enterprise Linux 6 libraw1394affected: 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 LibRawaffected: 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
- no
- Technical impact
- partial
- Assessed
- 7 mo ago
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 50% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/biniamf/pocs/tree/main/libraw_lljpeg referenced PoC, tagged "exploit" by a source, unverified
- vuldb.com https://vuldb.com/submit/780538 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P |
| CNA | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C |
| CNA | 3.0 | 4.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/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 | 2.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/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 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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
References
-
github.com
/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995
patch, web
-
github.com
/LibRaw/LibRaw/releases/tag/0.22.1
patch, product, release-notes, web
-
github.com
/biniamf/pocs/tree/main/libraw_lljpeg
exploit, third-party-advisory, web
-
vuldb.com
/submit/780538
third-party-advisory, exploit, vdb-entry, web
-
vuldb.com
/vuln/354650
vdb-entry, technical-description, third-party-advisory, web
-
vuldb.com
/vuln/354650/cti
signature, permissions-required, vdb-entry, web
-
github.com
/LibRaw/LibRaw/issues/794
issue-tracking, web
-
github.com
/LibRaw/LibRaw/issues/794#issuecomment-4065342499
issue-tracking, web
-
github.com
/LibRaw/LibRaw/
product, web
Sources
- CVE List CVE-2026-5318
- NVD CVE-2026-5318
- OSV JLSEC-2026-1117
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.