CVE catalog

CVE-2026-5342

A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. Executing a manipul

[CVE catalog]

Severity
Medium · CVSS 5.5
Published
Source
[NVD] · [CVE record]
EPSS
0.73% · Oct 25, 2026

A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. Executing a manipulation of the argument load_flags/raw_width can lead to out-of-bounds read. It is possible to launch the attack remotely. The exploit has been published and may be used. Upgrading to version 0.22.1 mitigates this issue. This patch is called b8397cd45657b84e88bd1202528d1764265f185c. 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+deb13u1fixed
Debianlibrawbookworm0.20.2-2.1+deb12u1vulnerable
Debianlibrawbookworm-security0.20.2-2.1+deb12u2fixed
CpelibrawNot reported0.21.2-2.1ubuntu0.24.04.2fixed
Cpelibraw-binNot reported0.21.2-2.1ubuntu0.24.04.2fixed
Cpelibraw-devNot reported0.21.2-2.1ubuntu0.24.04.2fixed
Cpelibraw-docNot reported0.21.2-2.1ubuntu0.24.04.2fixed
Cpelibraw23t64Not reported0.21.2-2.1ubuntu0.24.04.2fixed
CpelibrawNot reported0.22.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibrawsourcesid0.22.1-1not yet assignedNot reported[1132655]
Debianlibrawsourceforky0.22.1-1not yet assignedNot reported[1132655]
Debianlibrawsourcetrixie0.21.4-2+deb13u1not yet assignedNot reported[1132655]
Debianlibrawsourcebookworm0.20.2-2.1+deb12u2not yet assignedNot reported[1132655]
CpelibrawcpeNot reported0.21.2-2.1ubuntu0.24.04.2Not reportedNot reportedNot reported
Cpelibraw-bincpeNot reported0.21.2-2.1ubuntu0.24.04.2Not reportedNot reportedNot reported
Cpelibraw-devcpeNot reported0.21.2-2.1ubuntu0.24.04.2Not reportedNot reportedNot reported
Cpelibraw-doccpeNot reported0.21.2-2.1ubuntu0.24.04.2Not reportedNot reportedNot reported
Cpelibraw23t64cpeNot reported0.21.2-2.1ubuntu0.24.04.2Not reportedNot reportedNot reported
CpelibrawcpeNot reported0.22.1Not reportedNot reportedNot reported

[Debian bug #1132655]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libraw20]Affected

    Source package: [libraw]

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

      Affected · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

    • 0.20.2-2.1+deb12u1 · arm64 · bookworm

      Affected · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

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

      Fixed · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

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

      Fixed · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

  • [libraw-bin]Affected

    Source package: [libraw]

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

      Affected · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

    • 0.20.2-2.1+deb12u1 · arm64 · bookworm

      Affected · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

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

      Fixed · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

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

      Fixed · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

  • [libraw-dev]Affected

    Source package: [libraw]

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

      Affected · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

    • 0.20.2-2.1+deb12u1 · arm64 · bookworm

      Affected · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

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

      Fixed · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

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

      Fixed · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

  • [libraw-doc]Affected

    Source package: [libraw]

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

      Affected · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

    • 0.20.2-2.1+deb12u1 · all · bookworm

      Affected · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

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

      Fixed · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

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

      Fixed · Fixed: 0.20.2-2.1+deb12u2

      nvd · libraw · debian · bookworm; nvd · libraw · debian · 12

[Debian 13 (Trixie)]

  • [libraw23t64]Affected

    Source package: [libraw]

    Details (2)
    • 0.21.4-2 · amd64 · trixie

      Affected · Fixed: 0.21.4-2+deb13u1

      nvd · libraw · debian · 13

    • 0.21.4-2 · arm64 · trixie

      Affected · Fixed: 0.21.4-2+deb13u1

      nvd · libraw · debian · 13

  • [libraw-bin]Affected

    Source package: [libraw]

    Details (2)
    • 0.21.4-2 · amd64 · trixie

      Affected · Fixed: 0.21.4-2+deb13u1

      nvd · libraw · debian · 13

    • 0.21.4-2 · arm64 · trixie

      Affected · Fixed: 0.21.4-2+deb13u1

      nvd · libraw · debian · 13

  • [libraw-dev]Affected

    Source package: [libraw]

    Details (2)
    • 0.21.4-2 · amd64 · trixie

      Affected · Fixed: 0.21.4-2+deb13u1

      nvd · libraw · debian · 13

    • 0.21.4-2 · arm64 · trixie

      Affected · Fixed: 0.21.4-2+deb13u1

      nvd · libraw · debian · 13

  • [libraw-doc]Affected

    Source package: [libraw]

    Details (2)
    • 0.21.4-2 · all · trixie

      Affected · Fixed: 0.21.4-2+deb13u1

      nvd · libraw · debian · 13

    • 0.21.4-2 · all · trixie

      Affected · Fixed: 0.21.4-2+deb13u1

      nvd · libraw · debian · 13

Observed:

References