Vulnerability · Published Apr 2, 2026 · Assigned by VulDB

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

Medium 4.3

In plain English

A medium-severity out-of-bounds write in LibRaw. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.6%top 49.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:14libraw0.22.1-1DEBIAN-CVE-2026-5318
Ubuntu:22.04:LTSdarktableno fix listedUBUNTU-CVE-2026-5318
Ubuntu:24.04:LTSdarktableno fix listedUBUNTU-CVE-2026-5318
Ubuntu:25.10darktableno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.04:LTSdarktableno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.10darktableno fix listedUBUNTU-CVE-2026-5318
Ubuntu:22.04:LTSdcrawno fix listedUBUNTU-CVE-2026-5318
Ubuntu:24.04:LTSdcrawno fix listedUBUNTU-CVE-2026-5318
Ubuntu:25.10dcrawno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.04:LTSdcrawno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.10dcrawno fix listedUBUNTU-CVE-2026-5318
Ubuntu:24.04:LTSdigikamno fix listedUBUNTU-CVE-2026-5318
Ubuntu:25.10digikamno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.04:LTSdigikamno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.10digikamno fix listedUBUNTU-CVE-2026-5318
Ubuntu:22.04:LTSexactimageno fix listedUBUNTU-CVE-2026-5318
Ubuntu:24.04:LTSexactimageno fix listedUBUNTU-CVE-2026-5318
Ubuntu:25.10exactimageno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.04:LTSexactimageno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.10exactimageno fix listedUBUNTU-CVE-2026-5318
Ubuntu:22.04:LTSkodino fix listedUBUNTU-CVE-2026-5318
Ubuntu:24.04:LTSkodino fix listedUBUNTU-CVE-2026-5318
Ubuntu:25.10kodino fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.04:LTSkodino fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.10kodino fix listedUBUNTU-CVE-2026-5318
Ubuntu:22.04:LTSrawtherapeeno fix listedUBUNTU-CVE-2026-5318
Ubuntu:24.04:LTSrawtherapeeno fix listedUBUNTU-CVE-2026-5318
Ubuntu:25.10rawtherapeeno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.04:LTSrawtherapeeno fix listedUBUNTU-CVE-2026-5318
Ubuntu:26.10rawtherapeeno fix listedUBUNTU-CVE-2026-5318

Affected products (as reported)

VendorProductVersions
n/a LibRaw 0.10.20.30.40.50.60.70.8

Weakness: CWE-787, CWE-119 · Vector: 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

References