CVE-2026-5342: LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds

Published Apr 2, 2026
·
Updated

A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikonloadpaddedpackedraw of the file src/decoders/decoderslibraw.cpp of the component TIFF/NEF. Executing a manipulation of the argument loadflags/rawwidth 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.

Affected Software

3 affected componentsFixes available
Libraw Libraw<=0.22.0
Libraw Libraw<0.22.1
debian/libraw<=0.20.2-1+deb11u1, <=0.20.2-1+deb11u2, <=0.20.2-2.1+deb12u1, <=0.21.4-2
0.22.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libraw to a version that resolves this vulnerability.

    Fixed in 0.22.1-1
  2. Upgrade

    Upgrade LibRaw (TIFF/NEF decoder) src/decoders/decoders_libraw.cpp to a version that resolves this vulnerability.

    Fixed in 0.22.1Patch b8397cd45657b84e88bd1202528d1764265f185c

Event History

Apr 2, 2026
CVE Published
via MITRE·02:30 PM
Data Sourced
via MITRE·02:30 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 9, 2026
Data Sourced
via Debian·03:52 PM
DescriptionAffected Software
Data Sourced
via Launchpad·03:52 PM
Description
Jul 11, 2026
Data Sourced
via Ubuntu·03:53 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-5342?

CVE-2026-5342 is considered a high-severity vulnerability due to its potential for out-of-bounds access leading to application crashes or arbitrary code execution.

2

How do I fix CVE-2026-5342?

To fix CVE-2026-5342, update LibRaw to version 0.22.1 or later, where the vulnerability has been addressed.

3

What component of LibRaw is affected by CVE-2026-5342?

CVE-2026-5342 affects the TIFF/NEF decoders in the LibRaw library.

4

Can CVE-2026-5342 be exploited remotely?

Yes, CVE-2026-5342 can potentially be exploited remotely if a vulnerable application processes maliciously crafted TIFF or NEF files.

5

What versions of LibRaw are affected by CVE-2026-5342?

LibRaw versions up to and including 0.22.0 are affected by CVE-2026-5342.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203