CVE-2017-12877 json
Use-after-free vulnerability in the DestroyImage function in image.c in ImageMagick before 7.0.6-6 allows remote attackers to cause a denia…
published 2017-08-28 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-4401
- cvss
- 6.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- imagemagick imagemagick 6.9.9-6, 7.0.6-6
- imagemagick Debian 14, Debian 13, Debian 12 8:6.9.9.34+dfsg-3
debian advisories DEBIAN-CVE-2017-12877
- imagemagick Ubuntu 14.04 LTS 8:6.7.7.10-6ubuntu3.11
- imagemagick Ubuntu 16.04 LTS 8:6.8.9.9-7ubuntu5.11
- imagemagick Ubuntu 18.04 LTS 8:6.9.7.4+dfsg-16ubuntu6.2
ubuntu advisories UBUNTU-CVE-2017-12877
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
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-12877 updated cvss 3.3
ImageMagick: Use-after-free vulnerability in the DestroyImage 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
2.29% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.5 | CVSS:3.1/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-416 Use After Free
References
-
github.com
/ImageMagick/ImageMagick/commit/04178de2247e353fc095846784b9a10fefdbf890
issue-tracking, patch, third-party-advisory
-
openwall.com
/lists/oss-security/2017/08/16/2
mailing-list, patch, third-party-advisory
-
blogs.gentoo.org
/ago/2017/08/10/imagemagick-use-after-free-in-destroyimage-image-c/
patch, third-party-advisory, vdb-entry
-
debian.org
/security/2017/dsa-4040
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3681-1/
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201711-07
vendor-advisory, third-party-advisory
-
debian.org
/security/2017/dsa-4074
vendor-advisory, third-party-advisory
Sources
- CVE List CVE-2017-12877
- NVD CVE-2017-12877
Fencer Intel 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.