CVE-2021-20224: imagemagick Integer Overflow or Wraparound
Vulnerability summary
CVE-2021-20224 is a medium (CVSS 5.5) Integer Overflow or Wraparound vulnerability in imagemagick. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 30.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 7 · Related 5Timeline
- 25-08-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.38%
Chance of exploitation in the next 30 days
Percentile
31%
Versus all other CVEs
30-day change
0.00 pp
From 0.38% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Suse4 products
- ImageMagick&distro=SUSE Linux Enterprise Server 12 SP5< 6.8.8.1-71.180.1
- ImageMagick&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5< 6.8.8.1-71.180.1
- ImageMagick&distro=SUSE Linux Enterprise Software Development Kit 12 SP5< 6.8.8.1-71.180.1
- ImageMagick&distro=SUSE Linux Enterprise Workstation Extension 12 SP5< 6.8.8.1-71.180.1
Debian1 product
- imagemagick< 8:6.9.11.57+dfsg-1
Imagemagick1 product
- imagemagick< 6.9.11-57 | ≥ 7.0.0-0, < 7.0.10-57
Ubuntu1 product
- imagemagick< 8:6.7.7.10-6ubuntu3.13+esm3 | < 8:6.8.9.9-7ubuntu5.16+esm5 | < 8:6.9.7.4+dfsg-16ubuntu6.14 | < 8:6.9.10.23+dfsg-2.1ubuntu11.9 | < 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1
4 vendors · 7 products
References
13 links- github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6REPORTPatchThird Party Advisory
- github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464dREPORTPatchThird Party Advisory