CVE-2026-5318
Severity CVSS v4.0:
LOW
Type:
CWE-119
Buffer Errors
Publication date:
02/04/2026
Last modified:
29/04/2026
Description
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.
Impact
Base Score 4.0
2.10
Severity 4.0
LOW
Base Score 3.x
4.30
Severity 3.x
MEDIUM
Base Score 2.0
5.00
Severity 2.0
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:* | 0.22.1 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://github.com/LibRaw/LibRaw/
- https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995
- https://github.com/LibRaw/LibRaw/issues/794
- https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1
- https://github.com/biniamf/pocs/tree/main/libraw_lljpeg
- https://vuldb.com/submit/780538
- https://vuldb.com/vuln/354650
- https://vuldb.com/vuln/354650/cti



