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.39% chance of exploitation in the next 30 days, higher than 35.1% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?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
4 scores · 4 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
- OSV · AlpineEcosystem 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.39%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.39% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
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
Alpine1 product
- imagemagick≥ 7.0.0-0, < 7.0.10.57-r0 | < 7.0.10.57-r0
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
5 vendors · 8 products
References
14 links- github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6REPORTPatchThird Party Advisory
- github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464dREPORTPatchThird Party Advisory