CVE-2026-5318: LibRaw · Out-of-bounds Write
Affects LibRawSource CVE Database V5
Public exploit available · CVSS 5.3 Medium · fixed in 0.22.1 : patch LibRaw as a priority.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.22.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:PExploitation evidence
Disclosed: evidence found.
CVE published 2 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LibRaw | Affected
| Fixed in– |
GitHublibraw/LibRawpkg:github/libraw/LibRawOther threats | Affected
| Fixed in– |
CPE configurations (1)
cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:*
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
An official fix is available by upgrading LibRaw to version 0.22.1, which addresses this vulnerability. It is strongly recommended to apply this update to affected systems. No additional mitigations are specified or required beyond applying the patch.
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.
References
- vuldb.com/vuln/354650 (opens in a new tab)
- vuldb.com/vuln/354650/cti (opens in a new tab)
- vuldb.com/submit/780538 (opens in a new tab)
- github.com/LibRaw/LibRaw/issues/794 (opens in a new tab)
- github.com/LibRaw/LibRaw/issues/794 (opens in a new tab)
- github.com/biniamf/pocs/tree/main/libraw_lljpeg (opens in a new tab)
- github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995 (opens in a new tab)
- github.com/LibRaw/LibRaw/releases/tag/0.22.1 (opens in a new tab)
- github.com/LibRaw/LibRaw/ (opens in a new tab)