CVE-2026-5318LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | darktable | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.10 | dcraw | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.10 | digikam | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.10 | exactimage | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.10 | kodi | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.10 | rawtherapee | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.04 | darktable | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.04 | dcraw | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.04 | digikam | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.04 | exactimage | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.04 | kodi | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 26.04 | libraw | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | rawtherapee | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 25.10 | darktable | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5318 | |
| Ubuntu 25.10 | dcraw | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5318 | |
| Ubuntu 25.10 | digikam | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5318 | |
| Ubuntu 25.10 | exactimage | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5318 | |
| Ubuntu 25.10 | kodi | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5318 | |
| Ubuntu 25.10 | libraw | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | rawtherapee | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5318 | |
| Ubuntu 24.04 | darktable | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 24.04 | dcraw | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 24.04 | digikam | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 24.04 | exactimage | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 24.04 | kodi | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 24.04 | libraw | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | rawtherapee | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 22.04 | darktable | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 22.04 | dcraw | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 22.04 | digikam | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 22.04 | exactimage | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 22.04 | kodi | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 22.04 | libraw | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | rawtherapee | Under investigation | UBUNTU-CVE-2026-5318 | |
| Ubuntu 20.04 | darktable | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 20.04 | dcraw | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 20.04 | digikam | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 20.04 | exactimage | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 20.04 | kodi | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 20.04 | rawtherapee | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 18.04 | darktable | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 18.04 | dcraw | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 18.04 | digikam | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 18.04 | exactimage | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 18.04 | kodi | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 18.04 | rawtherapee | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 18.04 | ufraw | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 16.04 | darktable | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 16.04 | dcraw | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 16.04 | digikam | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 16.04 | exactimage | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 16.04 | kodi | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 16.04 | rawtherapee | Fix pending | UBUNTU-CVE-2026-5318 | |
| Ubuntu 16.04 | ufraw | Fix pending | UBUNTU-CVE-2026-5318 | |
| Debian 14 | libraw | Fixed | 0.22.1-1 | DEBIAN-CVE-2026-5318 |
| Red Hat Enterprise Linux 9 | LibRaw | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | LibRaw-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | LibRaw | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | LibRaw-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libraw1394 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libraw1394-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | LibRaw | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | LibRaw-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | LibRaw-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libraw1394 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libraw1394-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libraw1394 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libraw1394-devel | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- LibRaw: affected: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6
Vendor advisories:
- https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995 (patch)
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1 (patch)
References
- https://vuldb.com/vuln/354650
- https://vuldb.com/vuln/354650/cti
- https://vuldb.com/submit/780538
- https://github.com/LibRaw/LibRaw/issues/794
- https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499
- https://github.com/biniamf/pocs/tree/main/libraw_lljpeg
- https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1
- https://github.com/LibRaw/LibRaw/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.