Out-of-bounds read in ImageMagick - CVE-2017-13139
Published: August 23, 2017 / Updated: August 8, 2020
Vulnerability identifier: #VU38433
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-2017-13139
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.
In ImageMagick before 6.9.9-0 and 7.x before 7.0.6-1, the ReadOneMNGImage function in coders/png.c has an out-of-bounds read with the MNG CLIP chunk.
Affected software
ImageMagick
Amazon Linux AMI
Debian Linux
imagemagick (Debian package)
ImageMagick
Amazon Linux AMI
Debian Linux
imagemagick (Debian package)
ImageMagick
How to mitigate CVE-2017-13139
Install update from vendor's website.
imagemagick (Debian package) - update to 8:6.9.7.4+dfsg-11+deb9u2
ImageMagick - update to 6.9.10.68-3.22
ImageMagick - update to 6.9.10.68-3.22
External References
- http://www.securityfocus.com/bid/100494
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870109
- https://github.com/ImageMagick/ImageMagick/commit/22e0310345499ffe906c604428f2a3a668942b05
- https://security.gentoo.org/glsa/201711-07
- https://usn.ubuntu.com/3681-1/
- https://www.debian.org/security/2017/dsa-4019
- https://www.debian.org/security/2017/dsa-4040