Use-after-free in ImageMagick - CVE-2019-19952
Published: December 24, 2019 / Updated: July 17, 2020
Vulnerability identifier: #VU30500
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-2019-19952
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.
In ImageMagick 7.0.9-7 Q16, there is a use-after-free in the function MngInfoDiscardObject of coders/png.c, related to ReadOneMNGImage.
Affected software
ImageMagick
imagemagick6 (Alpine package)
imagemagick (Alpine package)
imagemagick6 (Alpine package)
imagemagick (Alpine package)
How to mitigate CVE-2019-19952
Install update from vendor's website.
ImageMagick - update to 7.0.9-7
imagemagick (Alpine package) - update to 7.0.10.25-r0
imagemagick (Alpine package) - update to 7.0.10.25-r0