# CVE-2019-13454: ImageMagick 7.0.1-0 to 7.0.8-54 Q16 allows Division by Zero in RemoveDuplicateLayers in MagickCore/layer.c.

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/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): 4.35%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-07-09T16:07:30.000Z
- Modified: 2026-06-17T02:16:46.873Z
- Weaknesses: CWE-369
- Assigned by: mitre

## Description

ImageMagick 7.0.1-0 to 7.0.8-54 Q16 allows Division by Zero in RemoveDuplicateLayers in MagickCore/layer.c.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- imagemagick imagemagick: from 7.0.1-0 up to 7.0.8-54; 7.0.8-54
- debian debian_linux: 9.0; 10.0
- canonical ubuntu_linux: 16.04; 18.04; 19.04; 19.10
- opensuse leap: 15.0; 15.1

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/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://github.com/ImageMagick/ImageMagick/issues/1629> (exploit, third-party-advisory)
- <https://github.com/ImageMagick/ImageMagick/commit/1ddcf2e4f28029a888cadef2e757509ef5047ad8> (patch, third-party-advisory)
- <https://github.com/ImageMagick/ImageMagick6/commit/4f31d78716ac94c85c244efcea368fea202e2ed4> (patch, third-party-advisory)
- <http://www.securityfocus.com/bid/109099> (third-party-advisory, vdb-entry)
- <http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00069.html> (mailing-list, third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/4192-1/> (third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2020/dsa-4712> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2020/08/msg00030.html> (mailing-list, third-party-advisory)
- <https://github.com/ImageMagick/ImageMagick/blob/7.0.1-0/MagickCore/layer.c#L1618> (product)

## Sources

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

---

Page: https://cve.day/CVE-2019-13454 · Whole record: https://cve.day/CVE-2019-13454.json · Rebuilt by cve.day 2026-11-25T22:57:45.486Z
