Vulnerability Details : CVE-2021-20224
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.
Vulnerability category: Overflow
Products affected by CVE-2021-20224
- cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
- cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-20224
0.07%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 28 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-20224
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
1.8
|
3.6
|
NIST |
CWE ids for CVE-2021-20224
-
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.Assigned by:
- nvd@nist.gov (Primary)
- secalert@redhat.com (Secondary)
References for CVE-2021-20224
-
https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6
outside the range of representable values of type 'unsigned char' (#3… · ImageMagick/ImageMagick@5af1dff · GitHubPatch;Third Party Advisory
-
https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d
https://github.com/ImageMagick/ImageMagick/pull/3083 · ImageMagick/ImageMagick6@553054c · GitHubPatch;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html
[SECURITY] [DLA 3357-1] imagemagick security update
-
https://github.com/ImageMagick/ImageMagick/pull/3083
outside the range of representable values of type 'unsigned char' by hifoolno · Pull Request #3083 · ImageMagick/ImageMagick · GitHubIssue Tracking;Patch;Third Party Advisory
Jump to