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.

Other sources

Heap-based buffer overflow in Windows Raw Image Extension allows an unauthorized attacker to execute code over a network.

— Microsoft

Raw Image Extension Remote Code Execution Vulnerability

— Microsoft

Affected Software

6 affected componentsFixes available
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
Microsoft Raw Image Extension<2.4.36.0
2.4.36.0
Microsoft Raw Image Extension<2.5.35.0
2.5.35.0
Libraw Libraw=0.22.0
Libraw Libraw=0.22.1
alpine/libraw<0.22.1-r0
0.22.1-r0

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

    Fixed in 2.4.36.0
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.5.35.0
  4. Upgrade

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

    Fixed in 0.22.1-r0

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
Data Sourced
via OSV·03:17 PM
DescriptionSeverityAffected Software
Oct 13, 2026
Data Sourced
via Microsoft·02:00 PM
DescriptionSeverityWeaknessAffected 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