7.8

CVE-2021-20311: imagemagick Divide By Zero

CVSS: 7.8v2.0HighModified
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 69.3% of scored vulnerabilities.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v2.0 (NVD)
EPSS score
1.27%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known 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

4 scores · 3 sources · 2 versions

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

18-09-202618-10-2026
EPSS score
1.27%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard1 product
  • imagemagick-6All versions (No fix recorded)
Debian1 product
  • imagemagick< 8:6.9.11.60+dfsg-1.5
Imagemagick1 product

3 vendors · 3 products

References

2 links