CVE-2017-18220: Use After Free
The ReadOneJNGImage and ReadJNGImage functions in coders/png.c in GraphicsMagick 1.3.26 allow remote attackers to cause a denial of service (magick/blob.c CloseBlob use-after-free) or possibly have unspecified other impact via a crafted file, a related issue to CVE-2017-11403.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/graphicsmagickto a version that resolves this vulnerability.Fixed in 1.3.27-r0 - Upgrade
Upgrade
debian/graphicsmagickto a version that resolves this vulnerability.Fixed in 1.4+really1.3.40-4+deb12u1Fixed in 1.4+really1.3.45+hg17696-1Fixed in 1.4+really1.3.49-1
Event History
Frequently Asked Questions
What is the vulnerability ID for this issue?
The vulnerability ID for this issue is CVE-2017-18220.
What functions in GraphicsMagick are affected?
The ReadOneJNGImage and ReadJNGImage functions in coders/png.c in GraphicsMagick 1.3.26 are affected.
What is the impact of this vulnerability?
The vulnerability may allow remote attackers to cause a denial of service or possibly have unspecified other impact.
How can I fix this vulnerability?
To fix this vulnerability, update GraphicsMagick to version 1.4+really1.3.35-1~deb10u2 or later.
Where can I find more information about this vulnerability?
You can find more information about this vulnerability in the references provided: http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/98721124e51f, http://www.securityfocus.com/bid/103276, https://lists.debian.org/debian-lts-announce/2018/03/msg00025.html.