What’s Vulnerable › Vulnerabilities
CVE-2016-8866
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2017-02-15 · updated 2026-06-17
- Weakness: CWE-119
Description
The AcquireMagickMemory function in MagickCore/memory.c in ImageMagick 7.0.3.3 before 7.0.3.8 allows remote attackers to have unspecified impact via a crafted image, which triggers a memory allocation failure. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-8862.
Affected products
- ImageMagick: before 6.9.6-6; from 7.0.0-0 through 7.0.3-7 — fixed in 6.9.6-6
- openSUSE Leap: 42.1, 42.2
- Opensuse: 13.2
How to fix
Upgrade to a fixed version: ImageMagick 6.9.6-6. Check the vendor advisory for mitigations.
References
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00085.html
- http://lists.opensuse.org/opensuse-security-announce/2017-01/msg00006.html
- http://lists.opensuse.org/opensuse-updates/2016-12/msg00141.html
- http://www.openwall.com/lists/oss-security/2016/10/20/3
- http://www.openwall.com/lists/oss-security/2016/10/21/5
- https://blogs.gentoo.org/ago/2016/10/20/imagemagick-memory-allocation-failure-in-acquiremagickmemory-memory-c-incomplete-fix-for-cve-2016-8862/
- https://bugzilla.redhat.com/show_bug.cgi?id=1388816
- https://github.com/ImageMagick/ImageMagick/issues/271
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00085.html
- http://lists.opensuse.org/opensuse-security-announce/2017-01/msg00006.html
- http://lists.opensuse.org/opensuse-updates/2016-12/msg00141.html
- http://www.openwall.com/lists/oss-security/2016/10/20/3
Get alerted when CVE-2016-8866 or the next vulnerability affects your stack