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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:14 | libraw | 0.22.1-1 | DEBIAN-CVE-2026-5318 |
| Ubuntu:22.04:LTS | darktable | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:24.04:LTS | darktable | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:25.10 | darktable | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.04:LTS | darktable | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.10 | darktable | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:22.04:LTS | dcraw | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:24.04:LTS | dcraw | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:25.10 | dcraw | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.04:LTS | dcraw | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.10 | dcraw | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:24.04:LTS | digikam | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:25.10 | digikam | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.04:LTS | digikam | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.10 | digikam | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:22.04:LTS | exactimage | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:24.04:LTS | exactimage | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:25.10 | exactimage | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.04:LTS | exactimage | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.10 | exactimage | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:22.04:LTS | kodi | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:24.04:LTS | kodi | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:25.10 | kodi | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.04:LTS | kodi | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.10 | kodi | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:22.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:24.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:25.10 | rawtherapee | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.04:LTS | rawtherapee | no fix listed | UBUNTU-CVE-2026-5318 |
| Ubuntu:26.10 | rawtherapee | no fix listed | UBUNTU-CVE-2026-5318 |
Affected products (as reported)
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
- VDB-354650 | LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write vdb-entry, technical-description
- VDB-354650 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #780538 | LibRaw 0.22.0 Out-of-bounds Write third-party-advisory
- https://github.com/LibRaw/LibRaw/issues/794 issue-tracking
- https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499 issue-tracking
- https://github.com/biniamf/pocs/tree/main/libraw_lljpeg exploit
- https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995 patch
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1 patch
- https://github.com/LibRaw/LibRaw/ product