CVE-2021-20310 json
A flaw was found in ImageMagick in versions before 7.0.11, where a division by zero ConvertXYZToJzazbz() of MagickCore/colorspace.c may tri…
published 2021-05-11 5 y ago modified 2026-07-30 3 mo ago also EUVD-2021-7735 , JLSEC-2026-885
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
A flaw was found in ImageMagick in versions before 7.0.11, where a division by zero ConvertXYZToJzazbz() of MagickCore/colorspace.c may trigger undefined behavior via a crafted image file that is submitted by an attacker and processed by an application using ImageMagick. The highest threat from this vulnerability is to system availability.
Patch / fix
- julia ImageMagick_jll 7.1.0+0
- imagemagick imagemagick 7.0.11-0
- imagemagick Alpine 3.13 7.0.11.13-r0
- imagemagick Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 7.0.11.1-r0
alpine advisories ALPINE-CVE-2021-20310
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-20310 updated cvss 5.3
ImageMagick: Division by zero in ConvertXYZToJzazbz() of MagickCore/colorspace.c
-
Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perlaffected: no fix planned “Out of support scope”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.29% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | ImageMagick_jll | <7.1.0+0 |
7.1.0+0 |
Affected products
- n/a ImageMagick
Classification
- Weakness
-
- CWE-369 Divide By Zero
References
-
bugzilla.redhat.com
/show_bug.cgi?id=1946728
issue-tracking, patch, third-party-advisory, web
Sources
- CVE List CVE-2021-20310
- NVD CVE-2021-20310
- OSV JLSEC-2026-885
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.