# CVE-2021-20309: A flaw was found in ImageMagick in versions before 7.0.11 and before 6.9.12, where a division by zero in WaveImage() of MagickCore/visual-e…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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): 2.31%, higher than 83% of CVEs (2026-12-01)
- Published: 2021-05-11T00:00:00.000Z
- Modified: 2026-06-17T03:33:38.900Z
- Weaknesses: CWE-369
- Assigned by: redhat

## Description

A flaw was found in ImageMagick in versions before 7.0.11 and before 6.9.12, where a division by zero in WaveImage() of MagickCore/visual-effects.c may trigger undefined behavior via a crafted image file submitted to an application using ImageMagick. The highest threat from this vulnerability is to system availability.

(As written by CVE List.)

## Affected

- ImagemMagick: ImageMagick 7.0.11, ImageMagick 6.9.12
- imagemagick imagemagick: before 6.9.12; from 7.0.0-0 before 7.0.11-0
- debian debian_linux: 9.0

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 7.8 High `AV:N/AC:L/Au:N/C:N/I:N/A:C`

## References

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

## Sources

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

---

Page: https://cve.day/CVE-2021-20309 · Whole record: https://cve.day/CVE-2021-20309.json · Rebuilt by cve.day 2026-11-25T22:58:01.301Z
