CVE-2017-18220: Use After Free

Published Mar 5, 2018
·
Updated

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

17 affected componentsFixes available
GraphicsMagick Graphicsmagick=1.3.26
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
alpine/graphicsmagick<1.3.27-r0
1.3.27-r0
debian/graphicsmagick
1.4+really1.3.40-4+deb12u11.4+really1.3.45+hg17696-11.4+really1.3.49-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/graphicsmagick to a version that resolves this vulnerability.

    Fixed in 1.3.27-r0
  2. Upgrade

    Upgrade debian/graphicsmagick to 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

Mar 5, 2018
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Data Sourced
via NVD·10:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·10:29 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2017-18220.

2

What functions in GraphicsMagick are affected?

The ReadOneJNGImage and ReadJNGImage functions in coders/png.c in GraphicsMagick 1.3.26 are affected.

3

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.

4

How can I fix this vulnerability?

To fix this vulnerability, update GraphicsMagick to version 1.4+really1.3.35-1~deb10u2 or later.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203