CVE-2026-20889 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 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-20889?

CVE-2026-20889 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 x3f_thumb_loader functionality of LibRaw 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-120, CWE-190

Which versions are affected by CVE-2026-20889?

It affects 1 product.

Products include Libraw Libraw.

How do I fix CVE-2026-20889?

Apply the vendor's patch.

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

Is CVE-2026-20889 being exploited?

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

All Libraw Libraw vulnerabilities

Sources

Also known as AZL-82952, CLSA-2026-1783353880, DEBIAN-CVE-2026-20889, ECHO-502f-9006-e836, GHSA-9m8r-gj3p-r7rw, UBUNTU-CVE-2026-20889.

Is CVE-2026-20889 in your software?

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

Check your SBOMs for free