# CVE-2017-13658

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2017-08-24 · Modified: 2024-08-05
- Aliases: UBUNTU-CVE-2017-13658, DEBIAN-CVE-2017-13658
- Record: https://cvemate.com/vulnerability/CVE-2017-13658 · JSON: https://cvemate.com/vulnerability/CVE-2017-13658/json

## Description

```text
In ImageMagick before 6.9.9-3 and 7.x before 7.0.6-3, there is a missing NULL check in the ReadMATImage function in coders/mat.c, leading to a denial of service (assertion failure and application exit) in the DestroyImageInfo function in MagickCore/image.c.
```

## Signals

- CVSS: 6.5 medium (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.327%, percentile 71.972%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian imagemagick (Debian): \< 8:6.9.7.4+dfsg-14
- ubuntu imagemagick (Ubuntu): \< 8:6.9.7.4+dfsg-16ubuntu2
- imagemagick imagemagick: ≤ 6.9.9-2 \| 7.0.1-0 \| 7.0.1-1 \| 7.0.1-2 \| 7.0.1-3 \| 7.0.1-4 \| 7.0.1-5 \| 7.0.1-6 \| 7.0.1-7 \| 7.0.1-8 \| 7.0.1-9 \| 7.0.1-10 \| 7.0.2-0 \| 7.0.2-1 \| 7.0.2-2 \| 7.0.2-3 \| 7.0.2-4 \| 7.0.2-5 \| 7.0.2-6 \| 7.0.2-7 \| 7.0.2-8 \| 7.0.2-9 \| 7.0.2-10 \| 7.0.3-0 \| 7.0.3-1 \| 7.0.3-2 \| 7.0.3-3 \| 7.0.3-4 \| 7.0.3-5 \| 7.0.3-6 \| 7.0.3-7 \| 7.0.3-8 \| 7.0.3-9 \| 7.0.3-10 \| 7.0.4-0 \| 7.0.4-1 \| 7.0.4-2 \| 7.0.4-3 \| 7.0.4-4 \| 7.0.4-5 \| 7.0.4-6 \| 7.0.4-7 \| 7.0.4-8 \| 7.0.4-9 \| 7.0.4-10 \| 7.0.5-0 \| 7.0.5-1 \| 7.0.5-4 \| 7.0.5-5 \| 7.0.5-6 \| 7.0.5-7 \| 7.0.5-8 \| 7.0.5-9 \| 7.0.5-10 \| 7.0.6-0 \| 7.0.6-1 \| 7.0.6-2

## References

- <https://github.com/ImageMagick/ImageMagick/commit/e5c063a1007506ba69e97a35effcdef944421c89>
- <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870019>
- <https://github.com/ImageMagick/ImageMagick/issues/598>
- <https://lists.debian.org/debian-lts-announce/2019/05/msg00015.html>
- <https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html>
- <https://ubuntu.com/security/CVE-2017-13658>
- <https://www.cve.org/CVERecord?id=CVE-2017-13658>
- <https://security-tracker.debian.org/tracker/CVE-2017-13658>

---

Data as of 2026-12-05T05:17:28.815Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
