# CVE-2021-20176: A divide-by-zero flaw was found in ImageMagick 6.9.11-57 and 7.0.10-57 in gem.c.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 61% of CVEs (2026-12-02)
- Published: 2021-02-05T00:00:00.000Z
- Modified: 2026-06-17T03:33:25.243Z
- Weaknesses: CWE-369
- Assigned by: redhat

## Description

A divide-by-zero flaw was found in ImageMagick 6.9.11-57 and 7.0.10-57 in gem.c. This flaw allows an attacker who submits a crafted file that is processed by ImageMagick to trigger undefined behavior through a division by zero. The highest threat from this vulnerability is to system availability.

(As written by CVE List.)

## Affected

- ImageMagick: 6.9.11-57, 7.0.10-57
- imagemagick imagemagick: before 6.9.11-57; from 7.0.0-0 before 7.0.10-56
- debian debian_linux: 9.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1916610> (issue-tracking)
- <https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html> (mailing-list)

## Sources

- CVE List: [CVE-2021-20176](https://www.cve.org/CVERecord?id=CVE-2021-20176), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-20176](https://nvd.nist.gov/vuln/detail/CVE-2021-20176), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-20176 · Whole record: https://cve.day/CVE-2021-20176.json · Rebuilt by cve.day 2026-11-25T22:57:59.829Z
