# CVE-2017-12877

- 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-28 · Modified: 2024-08-05
- Aliases: UBUNTU-CVE-2017-12877, DEBIAN-CVE-2017-12877
- Record: https://cvemate.com/vulnerability/CVE-2017-12877 · JSON: https://cvemate.com/vulnerability/CVE-2017-12877/json

## Description

```text
Use-after-free vulnerability in the DestroyImage function in image.c in ImageMagick before 7.0.6-6 allows remote attackers to cause a denial of service via a crafted file.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 2.291%, percentile 83.807%, 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

- canonical ubuntu\_linux: 14.04 \| 16.04 \| 17.10 \| 18.04
- debian imagemagick (Debian): \< 8:6.9.9.34+dfsg-3
- ubuntu imagemagick (Ubuntu): \< 8:6.7.7.10-6ubuntu3.11 \| \< 8:6.8.9.9-7ubuntu5.11 \| \< 8:6.9.7.4+dfsg-16ubuntu6.2
- debian debian\_linux: 8.0 \| 9.0
- imagemagick imagemagick: \< 6.9.9-6 \| ≥ 7.0.0-0, \< 7.0.6-6

## References

- <http://www.openwall.com/lists/oss-security/2017/08/16/2>
- <https://www.debian.org/security/2017/dsa-4040>
- <https://github.com/ImageMagick/ImageMagick/commit/04178de2247e353fc095846784b9a10fefdbf890>
- <https://usn.ubuntu.com/3681-1/>
- <https://security.gentoo.org/glsa/201711-07>
- <https://www.debian.org/security/2017/dsa-4074>
- <https://blogs.gentoo.org/ago/2017/08/10/imagemagick-use-after-free-in-destroyimage-image-c/>
- <https://ubuntu.com/security/CVE-2017-12877>
- <https://ubuntu.com/security/notices/USN-3681-1>
- <https://www.cve.org/CVERecord?id=CVE-2017-12877>
- <https://security-tracker.debian.org/tracker/CVE-2017-12877>

---

Data as of 2026-12-05T05:05:36.568Z. 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
