CVE-2026-21413 Memory corruption in LibRaw

Critical 9.8 Published Updated

A heap-based buffer overflow in LibRaw allows attackers to execute arbitrary code or cause denial of service via a malicious JPEG file.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-21413?

CVE-2026-21413 is a critical memory corruption vulnerability in Libraw Libraw, published on 7 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A heap-based buffer overflow vulnerability exists in the lossless_jpeg_load_raw 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.

Weakness: CWE-787, CWE-129

Which versions are affected by CVE-2026-21413?

It affects 1 product.

Linux distribution packages (8)
LibRaw Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.20.2-6.el9_0
LibRaw-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.20.2-6.el9_0
LibRaw-debugsource Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.20.2-6.el9_0
LibRaw-samples-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.20.2-6.el9_0
LibRaw Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.20.2-6.el9_2
LibRaw-debuginfo Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.20.2-6.el9_2
LibRaw-debugsource Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.20.2-6.el9_2
LibRaw-samples-debuginfo Red Hat:rhel_e4s:9.2::appstreamAll versions0:0.20.2-6.el9_2

Products include Libraw Libraw.

How do I fix CVE-2026-21413?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-21413 being exploited?

There is no known exploitation of CVE-2026-21413 in the wild and no public exploit code.

All Libraw Libraw vulnerabilities

Sources

Also known as AZL-82955, CLSA-2026-1777889999, CLSA-2026-1777941038, DEBIAN-CVE-2026-21413, ECHO-602f-3dc6-d1d6, GHSA-g53g-r75r-95g5 and 4 more.

Is CVE-2026-21413 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free