CVE-2026-5318

published 2 Apr 2026 · updated 7 Apr 2026

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

5.3MediumCVSS 4.3EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
=0.1, =0.10, =0.11, =0.12, =0.13, =0.14, =0.15, =0.16, =0.17, =0.18, =0.19, =0.2, =0.20, =0.21, =0.22.0, =0.3, =0.4, =0.5, =0.6, =0.7, =0.8, =0.9

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-5318 severity on Zeptric[![CVE-2026-5318](https://zeptric.io/badge/cve/CVE-2026-5318.svg)](https://zeptric.io/cve/CVE-2026-5318)