What’s Vulnerable › Vulnerabilities
CVE-2021-20246
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-03-09 · updated 2026-06-17
- Weakness: CWE-369
Description
A flaw was found in ImageMagick in MagickCore/resample.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
Affected products
- Debian Linux: 9.0
- Fedoraproject Fedora: 33
- ImageMagick: before 6.9.11-62; from 7.0.0 before 7.0.10-62 — fixed in 6.9.11-62, 7.0.10-62
- Red Hat Enterprise Linux: 6.0, 7.0, 8.0
How to fix
Upgrade to a fixed version: ImageMagick 6.9.11-62, 7.0.10-62. Check the vendor advisory for mitigations.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1928941
- https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html
- https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1928941
- https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html
- https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html
Get alerted when CVE-2021-20246 or the next vulnerability affects your stack