Out-of-bounds read in ImageMagick - CVE-2016-5687
Published: December 13, 2016 / Updated: July 28, 2020
Vulnerability identifier: #VU32205
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-5687
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
The VerticalFilter function in the DDS coder in ImageMagick before 6.9.4-3 and 7.x before 7.0.1-4 allows remote attackers to have unspecified impact via a crafted DDS file, which triggers an out-of-bounds read.
Affected software
ImageMagick
imagemagick (Alpine package)
imagemagick (Alpine package)
How to mitigate CVE-2016-5687
Install update from vendor's website.
ImageMagick - addressed in versions 6.9.4-3, 7.0.1-4
imagemagick (Alpine package) - update to 6.9.6.8-r0
imagemagick (Alpine package) - update to 6.9.6.8-r0
External References
- http://www.openwall.com/lists/oss-security/2016/06/14/5
- http://www.openwall.com/lists/oss-security/2016/06/17/3
- http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
- http://www.securityfocus.com/bid/91283
- https://blog.fuzzing-project.org/46-Various-invalid-memory-reads-in-ImageMagick-WPG,-DDS,-DCM.html