7.8

CVE-2021-20311: imagemagick Divide By Zero

Modified
AliasesDEBIAN-CVE-2021-20311CGA-3xmw-cp2r-cqpcCGA-v2xc-7p88-f29x
Published 11-05-2021Last modified 03-08-2024

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.

Priority
Prioritisesevere

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?
CVSS score
7.8/10
010
High · v2.0 (NVD)
EPSS score
1.27%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5 · Related 5

Timeline

  1. 11-05-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

4 vendors · 4 products

References

3 links