CVE-2016-8866
published 2017-02-15CVE-2016-8866: 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…
PriorityP344high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
4.61%
90.7th percentile
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
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | imagemagick | — | — |
| imagemagick | imagemagick | < 6.9.6-6 | 6.9.6-6 |
| imagemagick | imagemagick | — | — |
| imagemagick | imagemagick | 7.0.0-0 – 7.0.3-7 | — |
| opensuse | leap | — | — |
| opensuse | leap | — | — |
| opensuse | opensuse | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8LOW
vendor_redhat8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8866)
vendor_redhat·2017-03-27·CVSS 8.8
CVE-2017-7275 [HIGH] CWE-119 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8866)
ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8866)
The ReadPCXImage function in coders/pcx.c in ImageMagick 7.0.4.9 allows remote attackers to cause a denial of service (attempted large memory allocation and application crash) via a crafted file. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-8862 and CVE-2016-8866.
Package: ImageMagick (Red Hat Enterprise Linux 5) - Will not fix
Package: ImageMagick (Red Hat Enterprise Linux 6) - Will not fix
Package: ImageMagick (Red Hat Enterprise Linux 7) - Will not fix
Package: ImageMagick (Red Hat OpenShift Enterprise 2) - Will not fix
Debian
CVE-2017-7275: imagemagick - The ReadPCXImage function in coders/pcx.c in ImageMagick 7.0.4.9 allows remote a...
vendor_debian·2017·CVSS 8.8
CVE-2017-7275 [HIGH] CVE-2017-7275: imagemagick - The ReadPCXImage function in coders/pcx.c in ImageMagick 7.0.4.9 allows remote a...
The ReadPCXImage function in coders/pcx.c in ImageMagick 7.0.4.9 allows remote attackers to cause a denial of service (attempted large memory allocation and application crash) via a crafted file. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-8862 and CVE-2016-8866.
Scope: local
bookworm: open
bullseye: open
forky: open
sid: open
trixie: open
Red Hat
ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8862)
vendor_redhat·2016-10-20·CVSS 8.8
CVE-2016-8866 [HIGH] CWE-119 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8862)
ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8862)
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.
Package: ImageMagick (Red Hat Enterprise Linux 5) - Will not fix
Package: ImageMagick (Red Hat Enterprise Linux 6) - Will not fix
Package: ImageMagick (Red Hat Enterprise Linux 7) - Will not fix
Package: ImageMagick (Red Hat OpenShift Enterprise 2) - Will not fix
Debian
CVE-2016-8866: imagemagick - The AcquireMagickMemory function in MagickCore/memory.c in ImageMagick 7.0.3.3 b...
vendor_debian·2016·CVSS 8.8
CVE-2016-8866 [HIGH] CVE-2016-8866: imagemagick - The AcquireMagickMemory function in MagickCore/memory.c in ImageMagick 7.0.3.3 b...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
GHSA
GHSA-5rcv-qr5q-7p43: The ReadPCXImage function in coders/pcx
ghsa_unreviewed·2022-05-17·CVSS 8.8
CVE-2017-7275 [HIGH] CWE-119 GHSA-5rcv-qr5q-7p43: The ReadPCXImage function in coders/pcx
The ReadPCXImage function in coders/pcx.c in ImageMagick 7.0.4.9 allows remote attackers to cause a denial of service (attempted large memory allocation and application crash) via a crafted file. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-8862 and CVE-2016-8866.
GHSA
GHSA-v56x-jxjp-g3fg: The AcquireMagickMemory function in MagickCore/memory
ghsa_unreviewed·2022-05-13·CVSS 8.8
CVE-2016-8866 [HIGH] CWE-119 GHSA-v56x-jxjp-g3fg: The AcquireMagickMemory function in MagickCore/memory
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.
OSV
CVE-2017-7275: The ReadPCXImage function in coders/pcx
osv·2017-03-27·CVSS 8.8
CVE-2017-7275 [HIGH] CVE-2017-7275: The ReadPCXImage function in coders/pcx
The ReadPCXImage function in coders/pcx.c in ImageMagick 7.0.4.9 allows remote attackers to cause a denial of service (attempted large memory allocation and application crash) via a crafted file. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-8862 and CVE-2016-8866.
OSV
CVE-2016-8866: The AcquireMagickMemory function in MagickCore/memory
osv·2017-02-15·CVSS 8.8
CVE-2016-8866 [HIGH] CVE-2016-8866: The AcquireMagickMemory function in MagickCore/memory
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2017-7275 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8866)
bugzilla·2017-03-31·CVSS 8.8
CVE-2017-7275 [HIGH] CVE-2017-7275 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8866)
CVE-2017-7275 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8866)
It was found that the fixes for CVE-2016-8866 and CVE-2016-8862 were incomplete:
The ReadPCXImage function in coders/pcx.c in ImageMagick 7.0.4.9 allows remote attackers to cause a denial of service (attempted large memory allocation and application crash) via a crafted file.
Discussion:
External References:
https://blogs.gentoo.org/ago/2017/03/27/imagemagick-memory-allocation-failure-in-acquiremagickmemory-memory-c-incomplete-fix-for-cve-2016-8862-and-cve-2016-8866/
---
Created ImageMagick tracking bugs for this issue:
Affects: fedora-all [bug 1437935]
Bugzilla
CVE-2017-7275 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8866) [fedora-all]
bugzilla·2017-03-31·CVSS 8.8
CVE-2017-7275 [HIGH] CVE-2017-7275 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8866) [fedora-all]
CVE-2017-7275 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8866) [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE:
Bugzilla
CVE-2016-8866 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8862)
bugzilla·2016-10-26·CVSS 8.8
CVE-2016-8866 [HIGH] CVE-2016-8866 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8862)
CVE-2016-8866 ImageMagick: Memory allocation failure in AcquireMagickMemory (incomplete fix for CVE-2016-8862)
It was discovered that the upstream fix for this issue was not complete. There is still a memory allocation failure in memory.c
References:
http://seclists.org/oss-sec/2016/q4/197
https://blogs.gentoo.org/ago/2016/10/20/imagemagick-memory-allocation-failure-in-acquiremagickmemory-memory-c-incomplete-fix-for-cve-2016-8862/
Discussion:
Created ImageMagick tracking bugs for this issue:
Affects: fedora-all [bug 1381145]
---
Upstream patch:
https://github.com/ImageMagick/ImageMagick/commit/ab2c9d6a8dd6d71b161ec9cc57a588b116b52322
Analysis:
Basically lowers map_length from 32 (fix for CVE-2016-8862) to the new value 22. Even without the previous fix, this flaw affects ImageMa
Bugzilla
CVE-2016-7799 CVE-2016-7906 CVE-2016-8677 CVE-2016-8678 CVE-2016-8862 CVE-2016-8866 CVE-2016-9298 ImageMagick: various flaws [fedora-all]
bugzilla·2016-10-03·CVSS 6.5
CVE-2016-7799 [MEDIUM] CVE-2016-7799 CVE-2016-7906 CVE-2016-8677 CVE-2016-8678 CVE-2016-8862 CVE-2016-8866 CVE-2016-9298 ImageMagick: various flaws [fedora-all]
CVE-2016-7799 CVE-2016-7906 CVE-2016-8677 CVE-2016-8678 CVE-2016-8862 CVE-2016-8866 CVE-2016-9298 ImageMagick: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit messag
http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00085.htmlhttp://lists.opensuse.org/opensuse-security-announce/2017-01/msg00006.htmlhttp://lists.opensuse.org/opensuse-updates/2016-12/msg00141.htmlhttp://www.openwall.com/lists/oss-security/2016/10/20/3http://www.openwall.com/lists/oss-security/2016/10/21/5https://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=1388816https://github.com/ImageMagick/ImageMagick/issues/271http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00085.htmlhttp://lists.opensuse.org/opensuse-security-announce/2017-01/msg00006.htmlhttp://lists.opensuse.org/opensuse-updates/2016-12/msg00141.htmlhttp://www.openwall.com/lists/oss-security/2016/10/20/3http://www.openwall.com/lists/oss-security/2016/10/21/5https://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=1388816https://github.com/ImageMagick/ImageMagick/issues/271
2017-02-15
Published