Vulnerability · Published Aug 25, 2022 · Assigned by redhat

CVE-2021-20224

Medium 5.5

In plain English

A medium-severity integer overflow in ImageMagick. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.4%top 66.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20imagemagick7.0.10.57-r0ALPINE-CVE-2021-20224
Alpine:v3.21imagemagick7.0.10.57-r0ALPINE-CVE-2021-20224
Alpine:v3.22imagemagick7.0.10.57-r0ALPINE-CVE-2021-20224
Alpine:v3.23imagemagick7.0.10.57-r0ALPINE-CVE-2021-20224
Alpine:v3.24imagemagick7.0.10.57-r0ALPINE-CVE-2021-20224
Debian:12imagemagick8:6.9.11.57+dfsg-1DEBIAN-CVE-2021-20224
Debian:13imagemagick8:6.9.11.57+dfsg-1DEBIAN-CVE-2021-20224
Debian:14imagemagick8:6.9.11.57+dfsg-1DEBIAN-CVE-2021-20224

Affected products (as reported)

VendorProductVersions
n/a ImageMagick Fixed in ImageMagick-7.0.10-57, ImageMagick6-6.9.11-57

Weakness: CWE-190

References