Use-after-free in GraphicsMagick - CVE-2017-11403

 

Use-after-free in GraphicsMagick - CVE-2017-11403

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


Vulnerability identifier: #VU33191
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-11403
CWE-ID: CWE-416
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 has an out-of-order CloseBlob call, resulting in a use-after-free via a crafted file.


Affected software

GraphicsMagick
Arch Linux
Fedora
SUSE Linux
Opensuse
graphicsmagick (Alpine package)
GraphicsMagick

How to mitigate CVE-2017-11403

Install update from vendor's website.

GraphicsMagick - update to 1.3.27
graphicsmagick (Alpine package) - update to 1.3.25-r2
GraphicsMagick - addressed in versions 1.3.26-3.el6, 1.3.26-3.el7, 1.3.26-3.fc24, 1.3.26-3.fc25, 1.3.26-3.fc26

External References

Related Security Bulletins