Use After Free Affecting ImageMagick/ImageMagick package, versions [,7.0.8-56)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.12% (48th 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-3007591
  • published26 Jan 2022
  • disclosed8 Dec 2020
  • creditUnknown

Introduced: 8 Dec 2020

CVE-2020-25663  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade ImageMagick/ImageMagick to version 7.0.8-56 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free. A call to ConformPixelInfo() in the SetImageAlphaChannel() routine of /MagickCore/channel.c caused a subsequent heap-use-after-free or heap-buffer-overflow READ when GetPixelRed() or GetPixelBlue() was called. This could occur if an attacker is able to submit a malicious image file to be processed by ImageMagick and could lead to denial of service. It likely would not lead to anything further because the memory is used as pixel data and not e.g. a function pointer. This flaw affects ImageMagick versions prior to 7.0.9-0.

CVSS Scores

version 3.1