Out-of-bounds write in LibRaw - CVE-2020-35530

 

Out-of-bounds write in LibRaw - CVE-2020-35530

Published: November 11, 2022


Vulnerability identifier: #VU69256
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-35530
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input within the new_node() function in librawsrcx3fx3f_utils_patched.cpp. A remote attacker can create a specially crafted X3F file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.


Affected software

LibRaw
Ubuntu
libraw16 (Ubuntu package)
libraw19 (Ubuntu package)

How to mitigate CVE-2020-35530

Install updates from vendor's website.

LibRaw - update to 0.20.0
libraw16 (Ubuntu package) - update to 0.18.8-1ubuntu0.4
libraw19 (Ubuntu package) - update to 0.19.5-1ubuntu1.1

External References

Related Security Bulletins