CVE-2021-20311: imagemagick Divide By Zero
Vulnerability summary
CVE-2021-20311 is a high (CVSS 7.8) Divide By Zero vulnerability in imagemagick. EPSS estimates a 1.27% chance of exploitation in the next 30 days, higher than 70.8% of scored vulnerabilities.
Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 5Timeline
- 11-05-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
A flaw was found in ImageMagick in versions before 7.0.11, where a division by zero in sRGBTransformImage() in the MagickCore/colorspace.c may trigger undefined behavior via a crafted image file that is submitted by an attacker processed by an application using ImageMagick. The highest threat from this vulnerability is to system availability.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.27%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.27% 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: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- imagemagick< 7.0.11.13-r0 | < 7.0.11.1-r0
Chainguard1 product
- imagemagick-6All versions (No fix recorded)
Debian1 product
- imagemagick< 8:6.9.11.60+dfsg-1.5
Imagemagick1 product
- imagemagick< 7.0.11-0
4 vendors · 4 products
References
3 links- bugzilla.redhat.com/show_bug.cgi?id=1946739X Refsource MISCFIXIssue TrackingPatchThird Party Advisory