# CVE-2026-5318: libraw: A weakness has been identified in LibRaw up to 0.22.0

CVE-2026-5318 is fixed in 8 products on 1 platform, first by DEBIAN-CVE-2026-5318, released April 2, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-5318
- Priority: Routine
- CVSS: 4.3 (medium)
- EPSS: 0.0064
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 2, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | darktable Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-debuginfo Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-debugsource Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-tools-basecurve Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-tools-basecurve-debuginfo Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-tools-noise Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-tools-noise-debuginfo Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | libraw Debian 14 | 0.22.1-1 | [DEBIAN-CVE-2026-5318](https://patchblox.com/security/data/fix/linux/debian-cve-2026-5318.md) | Apr 2, 2026 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
