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 69.3% of scored vulnerabilities.
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
4 scores · 3 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
EPSS trend
Probability
1.27%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
0.00 pp
From 1.27% 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
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
3 vendors · 3 products
References
2 links- bugzilla.redhat.com/show_bug.cgi?id=1946739X Refsource MISCFIXIssue TrackingPatchThird Party Advisory