Heap-based buffer overflow in LibTIFF - CVE-2017-5225

 

Heap-based buffer overflow in LibTIFF - CVE-2017-5225

Published: March 6, 2017 / Updated: March 7, 2017


Vulnerability identifier: #VU5919
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-2017-5225
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 boundary error in "tools/tiffcp.cwhen" processing images. A remote attacker can create an image with specially crafted BitsPerSample value, trigger heap-based buffer overflow and execute arbitrary code on the target system with privileges of the current user.

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


Affected software

LibTIFF
Gentoo Linux
Ubuntu
Fedora
tiff (Alpine package)
mingw-libtiff
Dynamic System Analysis (DSA) Preboot

How to mitigate CVE-2017-5225

Install update from GIT repository.

tiff (Alpine package) - update to 4.0.7-r1
Dynamic System Analysis (DSA) Preboot - update to dsyte2z-9.65
mingw-libtiff - update to 4.0.9-1.fc28

External References

Related Security Bulletins