CVE-2026-5318
CVE-2026-5318 · LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write
This page contains facts from public vulnerability sources. Check the original advisory before updating.
This page shows selected source facts. See the linked advisories for the complete description and affected versions.
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.
CVSS 5.3 · Medium · EPSS 0.6% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
libraw
- Versions
- 0.1: Affected
- 0.2: Affected
- 0.3: Affected
- 0.4: Affected
- 0.5: Affected
- 0.6: Affected
- 0.7: Affected
- 0.8: Affected
- 0.9: Affected
- 0.10: Affected
- 0.11: Affected
- 0.12: Affected
- 0.13: Affected
- 0.14: Affected
- 0.15: Affected
- 0.16: Affected
- 0.17: Affected
- 0.18: Affected
- 0.19: Affected
- 0.20: Affected
- 0.21: Affected
- 0.22.0: Affected
- 0.22.1: Not affected
Update to 0.22.1
libraw Debian:14
- Versions
- 0.21.4-2
- 0.21.4-3~exp1
- 0.21.4-3~exp2
- 0.21.5b-1
- 0.22.0-1~exp1
- 0.22.1-1~exp1
- 0.22.1-1~exp2
- Affected ranges
- ECOSYSTEM: < 0.22.1-1
Update to 0.22.1-1
darktable Ubuntu:16.04:LTS
- Versions
- 1.6.8-1
- 1.6.9-1
- 2.0.0-1
- 2.0.1-1
- 2.0.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
dcraw Ubuntu:16.04:LTS
- Versions
- 9.21-0.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
digikam Ubuntu:Pro:16.04:LTS
- Versions
- 4:4.12.0-0ubuntu5
- 4:4.12.0-0ubuntu6
- 4:4.12.0-0ubuntu7
- 4:4.12.0-0ubuntu7+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
exactimage Ubuntu:16.04:LTS
- Versions
- 0.9.1-6build1
- 0.9.1-6ubuntu1
- 0.9.1-8ubuntu1
- 0.9.1-9
- 0.9.1-9build1
- 0.9.1-10
- 0.9.1-11
- 0.9.1-12
- 0.9.1-12ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
kodi Ubuntu:16.04:LTS
- Versions
- 15.1+dfsg1-3
- 15.2+dfsg1-1build1
- 15.2+dfsg1-3
- 15.2+dfsg1-3ubuntu1
- 15.2+dfsg1-3ubuntu1.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rawtherapee Ubuntu:16.04:LTS
- Versions
- 4.2-2build1
- 4.2-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ufraw Ubuntu:16.04:LTS
- Versions
- 0.20-3build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
darktable Ubuntu:18.04:LTS
- Versions
- 2.2.5-2
- 2.4.0-1
- 2.4.1-1
- 2.4.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
dcraw Ubuntu:18.04:LTS
- Versions
- 9.27-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
digikam Ubuntu:Pro:18.04:LTS
- Versions
- 4:5.6.0-0ubuntu2
- 4:5.6.0-0ubuntu3
- 4:5.6.0-0ubuntu4
- 4:5.6.0-0ubuntu7
- 4:5.6.0-0ubuntu8
- 4:5.6.0-0ubuntu9
- 4:5.6.0-0ubuntu10
- 4:5.6.0-0ubuntu10+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
exactimage Ubuntu:18.04:LTS
- Versions
- 0.9.2-1build1
- 1.0.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
kodi Ubuntu:18.04:LTS
- Versions
- 2:17.3+dfsg1-3
- 2:17.3+dfsg1-3build1
- 2:17.3+dfsg1-5
- 2:17.3+dfsg1-5build1
- 2:17.3+dfsg1-5build2
- 2:17.6+dfsg1-1
- 2:17.6+dfsg1-1build1
- 2:17.6+dfsg1-1ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rawtherapee Ubuntu:18.04:LTS
- Versions
- 5.2-1
- 5.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ufraw Ubuntu:18.04:LTS
- Versions
- 0.22-1.1
- 0.22-2
- 0.22-3
- 0.22-3.1~build0.18.04.1
- 0.22-3.1ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
darktable Ubuntu:20.04:LTS
- Versions
- 2.6.0-1
- 2.6.2-3
- 2.6.3-1
- 2.6.3-1build1
- 2.6.3-1build2
- 3.0.1-0ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
dcraw Ubuntu:20.04:LTS
- Versions
- 9.28-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
digikam Ubuntu:Pro:20.04:LTS
- Versions
- 4:5.9.0-1ubuntu4
- 4:6.4.0+dfsg-3
- 4:6.4.0+dfsg-3build1
- 4:6.4.0+dfsg-3ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
exactimage Ubuntu:20.04:LTS
- Versions
- 1.0.2-3
- 1.0.2-5ubuntu1
- 1.0.2-5ubuntu2
- 1.0.2-7ubuntu1
- 1.0.2-7ubuntu2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
kodi Ubuntu:20.04:LTS
- Versions
- 2:17.6+dfsg1-4ubuntu4
- 2:17.6+dfsg1-4ubuntu9
- 2:17.6+dfsg1-4ubuntu10
- 2:18.5+dfsg1-0ubuntu3
- 2:18.6+dfsg1-2ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rawtherapee Ubuntu:20.04:LTS
- Versions
- 5.6-1
- 5.7-1
- 5.8-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
darktable Ubuntu:22.04:LTS
- Versions
- 3.6.0-0ubuntu1
- 3.8.0-2
- 3.8.0-3
- 3.8.0-3build1
- 3.8.0-3build2
- 3.8.1-1
- 3.8.1-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
dcraw Ubuntu:22.04:LTS
- Versions
- 9.28-2
- 9.28-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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/
- https://nvd.nist.gov/vuln/detail/CVE-2026-5318