Integer Overflow or Wraparound Affecting ImageMagick/ImageMagick package, versions [,7.0.11-0)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.11% (47th 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 IDSNYK-UNMANAGED-IMAGEMAGICKIMAGEMAGICK-3007759
  • published26 Jan 2022
  • disclosed11 May 2021
  • creditUnknown

Introduced: 11 May 2021

CVE-2021-20312  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade ImageMagick/ImageMagick to version 7.0.11-0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. A flaw was found in ImageMagick in versions 7.0.11, where an integer overflow in WriteTHUMBNAILImage of coders/thumbnail.c may trigger undefined behavior via a crafted image file that is submitted by an attacker and processed by an application using ImageMagick. The highest threat from this vulnerability is to system availability.

CVSS Base Scores

version 3.1