CVE-2021-20224 Detail

Current Description

An integer overflow issue was discovered in ImageMagick’s ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the ‘unsigned char’. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash.

View Analysis Description

Analysis Description

An integer overflow issue was discovered in ImageMagick’s ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the ‘unsigned char’. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash.

Severity

CVSS 3.x Severity and Metrics:

CVSS 2.0 Severity and Metrics:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

Weakness Enumeration

CWE-ID CWE Name Source
CWE-190 Integer Overflow or Wraparound NIST   Red Hat, Inc.  

Change History

1 change records found show changes

Initial Analysis 8/29/2022 12:37:05 PM

Action Type Old Value New Value
Added CPE Configuration
OR
     *cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* versions up to (excluding) 6.9.11-57
     *cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* versions from (including) 7.0.0-0 up to (excluding) 7.0.10-57
Added CVSS V3.1
NIST AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Added CWE
NIST CWE-190
Changed Reference Type
https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6 No Types Assigned
https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6 Patch, Third Party Advisory
Changed Reference Type
https://github.com/ImageMagick/ImageMagick/pull/3083 No Types Assigned
https://github.com/ImageMagick/ImageMagick/pull/3083 Issue Tracking, Patch, Third Party Advisory
Changed Reference Type
https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d No Types Assigned
https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d Patch, Third Party Advisory

Quick Info

CVE Dictionary Entry:
CVE-2021-20224
NVD Published Date:
08/25/2022
NVD Last Modified:
08/29/2022
Source:
Red Hat, Inc.