Use After Free Affecting ImageMagick/ImageMagick package, versions [7.0.7-16,7.0.7-21)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.06% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-IMAGEMAGICKIMAGEMAGICK-3007602
  • published26 Jan 2022
  • disclosed18 May 2018
  • creditUnknown

Introduced: 18 May 2018

CVE-2017-18272  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade ImageMagick/ImageMagick to version 7.0.7-21 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free. In ImageMagick 7.0.7-16 Q16 x86_64 2017-12-25, there is a use-after-free in ReadOneMNGImage in coders/png.c, which allows attackers to cause a denial of service via a crafted MNG image file that is mishandled in an MngInfoDiscardObject call.

References

CVSS Scores

version 3.1