CVE-2026-21413: libraw Improper Validation of Array Index
Vulnerability summary
CVE-2026-21413 is a critical (CVSS 9.8) Improper Validation of Array Index vulnerability in libraw. EPSS estimates a 1.31% chance of exploitation in the next 30 days, higher than 71.5% of scored vulnerabilities. 2 public exploits are recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 15 · Related 6Timeline
- 07-04-2026PublishedVulnerability first disclosed.
- 13-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.31%
Chance of exploitation in the next 30 days
Percentile
72%
Versus all other CVEs
30-day change
Decrease -0.10 pp
From 1.41% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundExploit Reference (talosintelligence.com)
Maturity: unknown
Exploit Reference (talosintelligence.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-129Improper Validation of Array IndexThe product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu8 products
- darktableAll versions (No fix recorded)
- dcrawAll versions (No fix recorded)
- digikamAll versions (No fix recorded)
- exactimageAll versions (No fix recorded)
- kodiAll versions (No fix recorded)
Redhat4 products
- LibRaw< 0:0.20.2-6.el9_0 | < 0:0.20.2-6.el9_2
- LibRaw-debuginfo< 0:0.20.2-6.el9_0 | < 0:0.20.2-6.el9_2
- LibRaw-debugsource< 0:0.20.2-6.el9_0 | < 0:0.20.2-6.el9_2
- LibRaw-samples-debuginfo< 0:0.20.2-6.el9_0 | < 0:0.20.2-6.el9_2
Alpine1 product
- libraw< 0.22.1-r0
Debian1 product
- libraw< 0.20.2-2.1+deb12u2 | < 0.21.4-2+deb13u1 | < 0.22.1-1
Libraw1 product
- librawCommit 0b56545 | Commit d20315b | 0.22.0 | 0.22.1
5 vendors · 15 products