Out-of-bounds read in GraphicsMagick - CVE-2017-12935

 

Out-of-bounds read in GraphicsMagick - CVE-2017-12935

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


Vulnerability identifier: #VU33241
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-12935
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 ReadMNGImage function in coders/png.c in GraphicsMagick 1.3.26 mishandles large MNG images, leading to an invalid memory read in the SetImageColorCallBack function in magick/image.c.


Affected software

GraphicsMagick
Arch Linux
Fedora
graphicsmagick (Alpine package)
GraphicsMagick

How to mitigate CVE-2017-12935

Install update from vendor's website.

GraphicsMagick - update to 1.3.27
graphicsmagick (Alpine package) - update to 1.3.25-r3
GraphicsMagick - addressed in versions 1.3.32-1.fc29, 1.3.32-1.fc30, 1.3.34-1.el7, 1.3.34-1.el8

External References

Related Security Bulletins