cve.bz

CVE-2026-21413 libraw libraw: Improper Validation of Array Index

9.8 criticalExploit referenceEPSS 1.4%

Critical (9.8) in libraw libraw. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-129 Improper Validation of Array Index
CWE-787 Out-of-bounds Write
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-21413 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-21413?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-21413?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-21413 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libraw:libraw0.22.0
libraw:libraw0.22.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libraw0.20.2-1+deb11u3DLA-4704-1
Debian12libraw0.20.2-2.1+deb12u2DEBIAN-CVE-2026-21413 DLA-4704-1
Debian13libraw0.21.4-2+deb13u1DEBIAN-CVE-2026-21413
Debian14libraw0.22.1-1DEBIAN-CVE-2026-21413
Ubuntu16.04:LTS, 18.04:LTSkodi, dcraw, ufraw and 3 moreno fix listedUBUNTU-CVE-2026-21413
Ubuntu20.04:LTSkodi, dcraw, libraw and 3 moreno fix listedUBUNTU-CVE-2026-21413
Ubuntu22.04:LTSkodi, dcraw, darktable and 2 moreno fix listedUBUNTU-CVE-2026-21413
Ubuntu22.04:LTSlibraw0.20.2-2ubuntu2.22.04.3UBUNTU-CVE-2026-21413 USN-8522-1
Ubuntu24.04:LTSlibraw0.21.2-2.1ubuntu0.24.04.2UBUNTU-CVE-2026-21413 USN-8522-1
Ubuntu24.04:LTS, 26.04:LTS, 26.10kodi, dcraw, digikam and 3 moreno fix listedUBUNTU-CVE-2026-21413
Ubuntu25.10kodi, dcraw, libraw and 4 moreno fix listedUBUNTU-CVE-2026-21413
Ubuntu26.04:LTSlibraw0.21.5b-1ubuntu1.1UBUNTU-CVE-2026-21413 USN-8522-1
UbuntuPro:16.04:LTS, Pro:18.04:LTSlibraw, digikamno fix listedUBUNTU-CVE-2026-21413
UbuntuPro:20.04:LTS, Pro:22.04:LTSdigikamno fix listedUBUNTU-CVE-2026-21413
Red Hatenterprise_linux:8::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.19.5-6.el8_10RHSA-2026:13284
Red Hatenterprise_linux:8::crbLibRaw-devel, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.19.5-6.el8_10RHSA-2026:13284
Red Hatenterprise_linux:9::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.21.1-2.el9_7RHSA-2026:11360
Red Hatenterprise_linux:9::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.21.1-2.el9_8RHSA-2026:19345
Red Hatenterprise_linux:9::crbLibRaw-devel, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.21.1-2.el9_7RHSA-2026:11360
Red Hatenterprise_linux:9::crbLibRaw-devel, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.21.1-2.el9_8RHSA-2026:19345
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.19.5-2.el8_4.1RHSA-2026:14224
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.19.5-3.el8_6.1RHSA-2026:14655
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.19.5-3.el8_8.1RHSA-2026:14673
Red Hatrhel_e4s:9.0::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.20.2-6.el9_0RHSA-2026:13860
Red Hatrhel_e4s:9.2::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.20.2-6.el9_2RHSA-2026:13868
Red Hatrhel_eus:9.4::appstreamLibRaw, LibRaw-debuginfo, LibRaw-debugsource and 1 more0:0.21.1-2.el9_4RHSA-2026:13870
3 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morelibraw0.20.2-150400.3.21.1SUSE-SU-2026:1556-1
SUSELinux Enterprise Module for Desktop Applications 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Server 15 SP6-LTSS and 2 morelibraw0.21.1-150600.3.10.1SUSE-SU-2026:1555-1
SUSELinux Enterprise Workstation Extension 15 SP7libraw0.18.9-150000.3.33.1SUSE-SU-2026:1438-1
openSUSELeap 16.0libraw0.21.4-160000.3.1openSUSE-SU-2026:20574-1
openSUSETumbleweedlibraw0.22.1-1.1openSUSE-SU-2026:10565-1
AlmaLinux8LibRaw, LibRaw-devel0.19.5-6.el8_10ALSA-2026:13284
AlmaLinux9LibRaw, LibRaw-devel0.21.1-2.el9_7ALSA-2026:11360
AlmaLinux9LibRaw, LibRaw-devel0.21.1-2.el9_8ALSA-2026:19345
Rocky Linux8LibRaw0:0.19.5-6.el8_10RLSA-2026:13284
Rocky Linux9LibRaw0:0.21.1-2.el9_7RLSA-2026:11360 RLSA-2026:19345
Alpinev3.24libraw0.22.1-r0ALPINE-CVE-2026-21413
Azure Linux3LibRawno fix listedAZL-82955

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

LibRaw is not installed by default on Red Hat systems. A user would need to manually install and make available an affected code path for this vulnerability to be exploitable.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8LibRaw-0:0.19.5-6.el8_10Fixed 2026-05-04RHSA-2026:13284
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportLibRaw-0:0.19.5-2.el8_4.1Fixed 2026-05-06RHSA-2026:14224
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnLibRaw-0:0.19.5-2.el8_4.1Fixed 2026-05-06RHSA-2026:14224
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportLibRaw-0:0.19.5-3.el8_6.1Fixed 2026-05-07RHSA-2026:14655
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceLibRaw-0:0.19.5-3.el8_6.1Fixed 2026-05-07RHSA-2026:14655
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsLibRaw-0:0.19.5-3.el8_6.1Fixed 2026-05-07RHSA-2026:14655
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceLibRaw-0:0.19.5-3.el8_8.1Fixed 2026-05-07RHSA-2026:14673
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsLibRaw-0:0.19.5-3.el8_8.1Fixed 2026-05-07RHSA-2026:14673
Red Hat Enterprise Linux 9LibRaw-0:0.21.1-2.el9_7Fixed 2026-04-28RHSA-2026:11360
Red Hat Enterprise Linux 9LibRaw-0:0.21.1-2.el9_8Fixed 2026-05-19RHSA-2026:19345
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsLibRaw-0:0.20.2-6.el9_0Fixed 2026-05-05RHSA-2026:13860
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsLibRaw-0:0.20.2-6.el9_2Fixed 2026-05-05RHSA-2026:13868
Red Hat Enterprise Linux 9.4 Extended Update SupportLibRaw-0:0.21.1-2.el9_4Fixed 2026-05-05RHSA-2026:13870
Red Hat Enterprise Linux 9.6 Extended Update SupportLibRaw-0:0.21.1-2.el9_6Fixed 2026-05-05RHSA-2026:13854
Red Hat Enterprise Linux 6libraw1394Out of support scope
Red Hat Enterprise Linux 7LibRawOut of support scope
Red Hat Enterprise Linux 7libraw1394Will not fix
Red Hat Enterprise Linux 8libraw1394Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-21413.

Attack patterns (CAPEC)

  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON