CVE-2017-13658 json
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 t…
published 2017-08-24 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-5175
- cvss
- 6.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- imagemagick Debian 14, Debian 13, Debian 12 8:6.9.7.4+dfsg-14
debian advisories DEBIAN-CVE-2017-13658
- ImageMagick SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +8 more 6.8.8.1-71.26.1
- ImageMagick SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 6.4.3.6-7.78.22.1
suse advisories SUSE-SU-2018:0130-1SUSE-SU-2018:0132-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-13658 updated cvss 3.3
ImageMagick: Missing NULL check in the ReadMATImage function
-
Red Hat Enterprise Linux 5 ImageMagick Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perlaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.33% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-617 Reachable Assertion
References
-
github.com
/ImageMagick/ImageMagick/commit/e5c063a1007506ba69e97a35effcdef944421c89
issue-tracking, patch, third-party-advisory
-
github.com
/ImageMagick/ImageMagick/issues/598
issue-tracking, patch, third-party-advisory
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=870019
issue-tracking, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/05/msg00015.html
mailing-list
-
lists.debian.org
/debian-lts-announce/2020/09/msg00007.html
mailing-list
Sources
- CVE List CVE-2017-13658
- NVD CVE-2017-13658
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.