Heap-based buffer overflow in LibRaw - CVE-2026-21413

 

Heap-based buffer overflow in LibRaw - CVE-2026-21413

Published: April 8, 2026


Vulnerability identifier: #VU125230
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-21413
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in the lossless_jpeg_load_raw functionality. A remote attacker can pass specially crafted file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

LibRaw
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Workstation Extension 15
Anolis OS
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Fedora
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
libraw16-debuginfo
libraw-debugsource
libraw-debuginfo
libraw16
LibRaw (Red Hat package)
LibRaw-devel
LibRaw
mingw-LibRaw

How to mitigate CVE-2026-21413

Install updates from vendor's website.

libraw16-debuginfo - update to 0.18.9-150000.3.33.1
libraw-debugsource - update to 0.18.9-150000.3.33.1
libraw-debuginfo - update to 0.18.9-150000.3.33.1
libraw16 - update to 0.18.9-150000.3.33.1
LibRaw (Red Hat package) - addressed in versions 0.19.5-2.el8_4.1, 0.19.5-3.el8_6.1, 0.19.5-3.el8_8.1, 0.19.5-6.el8_10, 0.20.2-6.el9_0, 0.20.2-6.el9_2, 0.21.1-2.el9_4, 0.21.1-2.el9_6, 0.21.1-2.el9_7
LibRaw-devel - update to 0.21.1-2
LibRaw - update to 0.21.1-2
mingw-LibRaw - addressed in versions 0.21.5-2.fc42, 0.21.5-2.fc43, 0.21.5-3.fc42, 0.21.5-3.fc43

External References

Related Security Bulletins