CVE-2026-5318

LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write

MEDIUM
4.3
CVSS Score
Published: April 2, 2026 at 01:45 AM UTC
Updated: June 17, 2026 at 10:58 AM UTC
1 product affected across 1 vendorLibRaw

Using LibRaw by N/A?

Get instant alerts when new vulnerabilities affect LibRaw - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.3
Exploit prediction
EPSS 0.6%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (9)

VDB EntryTechnical DescriptionThird Party Advisory
Source: cverecord
https://vuldb.com/vuln/354650
SignaturePermissions RequiredVDB Entry
Source: cverecord
https://vuldb.com/vuln/354650/cti
Third Party AdvisoryExploitVDB Entry
Source: cverecord
https://vuldb.com/submit/780538
Issue Tracking
Source: cverecord
https://github.com/LibRaw/LibRaw/issues/794
ExploitThird Party Advisory
Source: cverecord
https://github.com/biniamf/pocs/tree/main/libraw_lljpeg
Product
Source: cverecord
https://github.com/LibRaw/LibRaw/

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.3MEDIUMVulDB
Vector?

Quick Info

StatusANALYZED
CWE
CWE-787CWE-119

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card