CVE-2026-21413: Buffer Overflow

Published Apr 7, 2026
·
Updated

A heap-based buffer overflow vulnerability exists in the losslessjpegloadraw functionality of LibRaw Commit 0b56545 and Commit d20315b. A specially crafted malicious file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.

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 to a version that resolves this vulnerability.

    Patch 0b56545
  3. Upgrade

    Upgrade LibRaw to a version that resolves this vulnerability.

    Patch d20315b

Event History

Apr 7, 2026
CVE Published
via MITRE·01:49 PM
Data Sourced
via MITRE·01:49 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·03:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeaknessAffected Software
Jul 9, 2026
Data Sourced
via Debian·03:52 PM
DescriptionAffected Software
Data Sourced
via Launchpad·03:52 PM
Description
Jul 10, 2026
Data Sourced
via Ubuntu·03:52 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2026-21413?

CVE-2026-21413 is a critical heap-based buffer overflow vulnerability in the lossless_jpeg_load_raw functionality of LibRaw.

2

What is the risk level of CVE-2026-21413?

CVE-2026-21413 has a risk level of 90, categorized as critical with a score of 9.8.

3

How can an attacker exploit CVE-2026-21413?

An attacker can exploit CVE-2026-21413 by providing a specially crafted malicious file to trigger the heap buffer overflow.

4

What are the potential impacts of CVE-2026-21413?

The impacts of CVE-2026-21413 include potential remote code execution and system crashes due to heap memory corruption.

5

How do I mitigate CVE-2026-21413?

To mitigate CVE-2026-21413, users should update to the latest version of LibRaw that addresses this vulnerability.

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