CVE catalog

CVE-2026-5318

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 o

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.63% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibrawsid0.22.1-1fixed
Debianlibrawforky0.22.1-1fixed
Debianlibrawtrixie0.21.4-2+deb13u1not affected
Debianlibrawbookworm0.20.2-2.1+deb12u1not affected
Debianlibrawbookworm-security0.20.2-2.1+deb12u2not affected
CpelibrawNot reported0.22.1fixed
CpelibrawNot reportedNot reportednot affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibrawsourcesid0.22.1-1not yet assignedNot reported[1132655]
Debianlibrawsourceforky0.22.1-1not yet assignedNot reported[1132655]
DebianlibrawsourcetrixieNot affectedunimportantNot reported[1132655]
DebianlibrawsourcebookwormNot affectedunimportantNot reported[1132655]
CpelibrawcpeNot reported0.22.1Not reportedNot reportedNot reported

[Debian bug #1132655]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libraw20]Not affected

    Source package: [libraw]

    Details (4)
    • 0.20.2-2.1+deb12u1 · amd64 · bookworm

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u2 · amd64 · bookworm-security

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u2 · arm64 · bookworm-security

      Not affected

      nvd · libraw · debian · bookworm

  • [libraw-bin]Not affected

    Source package: [libraw]

    Details (4)
    • 0.20.2-2.1+deb12u1 · amd64 · bookworm

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u2 · amd64 · bookworm-security

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u2 · arm64 · bookworm-security

      Not affected

      nvd · libraw · debian · bookworm

  • [libraw-dev]Not affected

    Source package: [libraw]

    Details (4)
    • 0.20.2-2.1+deb12u1 · amd64 · bookworm

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u2 · amd64 · bookworm-security

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u2 · arm64 · bookworm-security

      Not affected

      nvd · libraw · debian · bookworm

  • [libraw-doc]Not affected

    Source package: [libraw]

    Details (4)
    • 0.20.2-2.1+deb12u1 · all · bookworm

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u1 · all · bookworm

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u2 · all · bookworm-security

      Not affected

      nvd · libraw · debian · bookworm

    • 0.20.2-2.1+deb12u2 · all · bookworm-security

      Not affected

      nvd · libraw · debian · bookworm

Observed:

References