Input validation error in GraphicsMagick - CVE-2017-13147

 

Input validation error in GraphicsMagick - CVE-2017-13147

Published: August 23, 2017 / Updated: August 3, 2020


Vulnerability identifier: #VU33200
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-13147
CWE-ID: CWE-20
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 GraphicsMagick 1.3.26, an allocation failure vulnerability was found in the function ReadMNGImage in coders/png.c when a small MNG file has a MEND chunk with a large length value.


Affected software

GraphicsMagick
Amazon Linux AMI
Fedora
graphicsmagick (Alpine package)
GraphicsMagick

How to mitigate CVE-2017-13147

Install update from vendor's website.

GraphicsMagick - update to 1.3.27
GraphicsMagick - addressed in versions 1.3.28-1.el6, 1.3.28-1.el7, 1.3.28-1.fc26, 1.3.28-1.fc27

External References

Related Security Bulletins