Buffer overflow in LibRaw - CVE-2017-6887

 

Buffer overflow in LibRaw - CVE-2017-6887

Published: May 16, 2017 / Updated: July 28, 2020


Vulnerability identifier: #VU32072
CSH Severity: Low
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-6887
CWE-ID: CWE-119
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local non-authenticated attacker to execute arbitrary code.

A boundary error within the "parse_tiff_ifd()" function (internal/dcraw_common.cpp) in LibRaw versions before 0.18.2 can be exploited to cause a memory corruption via e.g. a specially crafted KDC file with model set to "DSLR-A100" and containing multiple sequences of 0x100 and 0x14A TAGs.


Affected software

LibRaw
libraw (Alpine package)
mingw-LibRaw
Fedora

How to mitigate CVE-2017-6887

Install update from vendor's website.

LibRaw - update to 0.18.2
libraw (Alpine package) - update to 0.17.2-r1
mingw-LibRaw - update to 0.18.2-2.fc26

External References

Related Security Bulletins