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

 

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

Published: April 8, 2026


Vulnerability identifier: #VU125292
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-20889
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 x3f_thumb_loader 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
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Anolis OS
Fedora
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
LibRaw (Red Hat package)
mingw-LibRaw
LibRaw
LibRaw-devel
LibRaw-samples
LibRaw-static
LibRaw-doc

How to mitigate CVE-2026-20889

Install updates from vendor's website.

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
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
LibRaw - update to 0.22.1-2
LibRaw-devel - update to 0.22.1-2
LibRaw-samples - update to 0.22.1-2
LibRaw-static - update to 0.22.1-2
LibRaw-doc - update to 0.22.1-2

External References

Related Security Bulletins