Improper array index validation in LibRaw
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 17 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-129 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| LibRaw | LibRaw | Commit 0b56545; Commit d20315b | — | No fix listed | CNA |
- LibRaw VendorLibRaw Affected Commit 0b56545; Commit d20315b Fixed in — No fix listed CNA
Remediation
Red Hat 10 advisories
- RHSA-2026:19345 Released 2026-05-19 · Red Hat rating ImportantLibRaw security update
- Red Hat Enterprise Linux AppStream (v. 9) LibRaw-0.21.1-2.el9_8
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) LibRaw-devel-0.21.1-2.el9_8
- RHSA-2026:14673 Released 2026-05-07 · Red Hat rating ImportantLibRaw security update
- Red Hat Enterprise Linux AppStream E4S (v.8.8) LibRaw-0.19.5-3.el8_8.1
- Red Hat Enterprise Linux AppStream TUS (v.8.8) LibRaw-0.19.5-3.el8_8.1
- RHSA-2026:14655 Released 2026-05-07 · Red Hat rating ImportantLibRaw security update
- Red Hat Enterprise Linux AppStream AUS (v.8.6) LibRaw-0.19.5-3.el8_6.1
- Red Hat Enterprise Linux AppStream E4S (v.8.6) LibRaw-0.19.5-3.el8_6.1
- Red Hat Enterprise Linux AppStream TUS (v.8.6) LibRaw-0.19.5-3.el8_6.1
Show 7 more Red Hat advisories
- RHSA-2026:14224 Released 2026-05-06 · Red Hat rating ImportantLibRaw security update
- Red Hat Enterprise Linux AppStream AUS (v.8.4) LibRaw-0.19.5-2.el8_4.1
- Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) LibRaw-0.19.5-2.el8_4.1
- RHSA-2026:13870 Released 2026-05-05 · Red Hat rating ImportantLibRaw security update
- Red Hat CodeReady Linux Builder EUS (v.9.4) LibRaw-devel-0.21.1-2.el9_4
- Red Hat Enterprise Linux AppStream EUS (v.9.4) LibRaw-0.21.1-2.el9_4
- RHSA-2026:13868 Released 2026-05-05 · Red Hat rating ImportantLibRaw security update
- Red Hat Enterprise Linux AppStream E4S (v.9.2) LibRaw-0.20.2-6.el9_2
- RHSA-2026:13860 Released 2026-05-05 · Red Hat rating ImportantLibRaw security update
- Red Hat Enterprise Linux AppStream E4S (v.9.0) LibRaw-0.20.2-6.el9_0
- RHSA-2026:13854 Released 2026-05-05 · Red Hat rating ImportantLibRaw security update
- Red Hat CodeReady Linux Builder EUS (v.9.6) LibRaw-devel-0.21.1-2.el9_6
- Red Hat Enterprise Linux AppStream EUS (v.9.6) LibRaw-0.21.1-2.el9_6
- RHSA-2026:13284 Released 2026-05-04 · Red Hat rating ImportantLibRaw security update
- Red Hat Enterprise Linux AppStream (v. 8) LibRaw-0.19.5-6.el8_10
- Red Hat Enterprise Linux CRB (v. 8) LibRaw-devel-0.19.5-6.el8_10
- RHSA-2026:11360 Released 2026-04-28 · Red Hat rating ImportantLibRaw security update
- Red Hat Enterprise Linux AppStream (v. 9) LibRaw-0.21.1-2.el9_7
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) LibRaw-devel-0.21.1-2.el9_7
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat CodeReady Linux Builder EUS (v.9.4) | Fixed | RHSA-2026:13870 |
| Red Hat CodeReady Linux Builder EUS (v.9.6) | Fixed | RHSA-2026:13854 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2026:13284 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2026:11360, RHSA-2026:19345 |
| Red Hat Enterprise Linux AppStream AUS (v.8.4) | Fixed | RHSA-2026:14224 |
| Red Hat Enterprise Linux AppStream AUS (v.8.6) | Fixed | RHSA-2026:14655 |
| Red Hat Enterprise Linux AppStream E4S (v.8.6) | Fixed | RHSA-2026:14655 |
| Red Hat Enterprise Linux AppStream E4S (v.8.8) | Fixed | RHSA-2026:14673 |
| Red Hat Enterprise Linux AppStream E4S (v.9.0) | Fixed | RHSA-2026:13860 |
| Red Hat Enterprise Linux AppStream E4S (v.9.2) | Fixed | RHSA-2026:13868 |
| Red Hat Enterprise Linux AppStream EUS (v.9.4) | Fixed | RHSA-2026:13870 |
| Red Hat Enterprise Linux AppStream EUS (v.9.6) | Fixed | RHSA-2026:13854 |
| Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) | Fixed | RHSA-2026:14224 |
| Red Hat Enterprise Linux AppStream TUS (v.8.6) | Fixed | RHSA-2026:14655 |
| Red Hat Enterprise Linux AppStream TUS (v.8.8) | Fixed | RHSA-2026:14673 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2026:13284 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) | Fixed | RHSA-2026:11360, RHSA-2026:19345 |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-21413
- 2026-10-03 Alias added: GHSA-g53g-r75r-95g5
- 2026-10-13 CISA SSVC decision points changed
References
More Libraw vulnerabilities
- TI-2026-04674 LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds CVSS 4.0MEDIUM 6.9
- TI-2020-14361 Buffer Overflow vulnerability in LibRaw::stretch() function in libraw\src\postprocessing\aspect_ratio.cpp. CVSS 3.1MEDIUM 6.5
- TI-2026-04650 LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write CVSS 4.0MEDIUM 5.3
- TI-2015-06888 The phase_one_correct function in Libraw before 0.17.1 allows attackers to cause memory… CVSS 3.1CRITICAL 9.8
- TI-2026-16934 A heap-based buffer overflow vulnerability exists in the HuffTable::initval functionality… CVSS 3.1CRITICAL 9.8
- TI-2026-16915 Integer overflow in LibRaw CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-21413 · CVE Program
- CVE-2026-21413 · NVD
- FIRST EPSS
- GHSA-g53g-r75r-95g5 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-21413 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences