CVE-2016-8677
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows...
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows remote attackers to have unspecified impact via a crafted image file, which triggers a memory allocation failure.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows remote attackers to have unspecified impact via a crafted image file, which triggers a memory allocation failure.
- Record
CVE-2016-8677- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
CVE List No score
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows remote attackers to have unspecified impact via a crafted image file, which triggers a memory allocation failure.
- Record
CVE-2016-8677- Updated
- 2026-11-02
EUVDEUVD-2016-9516 No score
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows remote attackers to have unspecified impact via a crafted image file, which triggers a memory allocation failure.
- Record
EUVD-2016-9516- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mcw9-9pmh-fjfc
8.8
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows...
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows remote attackers to have unspecified impact via a crafted image file, which triggers a memory allocation failure.
- Record
GHSA-mcw9-9pmh-fjfc- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
8.8
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows remote attackers to have unspecified impact via a crafted image file, which triggers a memory allocation failure.
- Record
CVE-2016-8677- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-8677
8.8
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows remote attackers to have unspecified impact via a crafted image file, which triggers a memory allocation failure.
- Record
DEBIAN-CVE-2016-8677- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2016-8677
8.8
The AcquireQuantumPixels function in MagickCore/quantum.c in ImageMagick before 7.0.3-1 allows remote attackers to have unspecified impact via a crafted image file, which triggers a memory allocation failure.
- Record
UBUNTU-CVE-2016-8677- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2018-0229 No score
Updated imagemagick packages fix security vulnerabilities
The imagemagick package has been updated to version 6.9.9.41 which fixes several unspecified security vulnerabilities. This update fixes several vulnerabilities in imagemagick, including: Various memory handling problems and cases of missing or incomplete input sanitising may result in denial of service, memory disclosure or the execution of arbitrary code if malformed GIF, TTF, SVG, TIFF, PCX, JPG or SFW files are processed.
Several packages have been rebuilt for the updated ImageMagick.
- Record
MGASA-2018-0229- Updated
- 2026-11-02
OSVSUSE-SU-2016:2667-1 No score
Security update for ImageMagick
This update for ImageMagick fixes the following issues:
These vulnerabilities could be triggered by processing specially crafted image files, which could lead to a process crash or resource consumtion, or potentially have unspecified futher impact.
- CVE-2016-8684: Mismatch between real filesize and header values (bsc#1005123)
- CVE-2016-8683: Check that filesize is reasonable compared to the header value (bsc#1005127)
- CVE-2016-8682: Stack-buffer read overflow while reading SCT header (bsc#1005125)
- CVE-2016-8677: Memory allocation failure in AcquireQuantumPixels (bsc#1005328)
- CVE-2016-7996, CVE-2016-7997: WPG Reader Issues (bsc#1003629)
- CVE-2016-7800: 8BIM/8BIMW unsigned underflow leads to heap overflow (bsc#1002422)
- CVE-2016-7799: mogrify global buffer overflow (bsc#1002421)
- CVE-2016-7540: writing to RGF format aborts (bsc#1000394)
- CVE-2016-7539: Potential DOS by not releasing memory (bsc#1000715)
- CVE-2016-7538: SIGABRT for corrupted pdb file (bsc#1000712)
- CVE-2016-7537: Out of bound access for corrupted pdb file (bsc#1000711)
- CVE-2016-7535: Out of bound access for corrupted psd file (bsc#1000709)
- CVE-2016-7534: Out of bound access in generic decoder (bsc#1000708)
- CVE-2016-7533: Wpg file out of bound for corrupted file (bsc#1000707)
- CVE-2016-7532: fix handling of corrupted psd file (bsc#1000706)
- CVE-2016-7531: Pbd file out of bound access (bsc#1000704)
- CVE-2016-7530: Out of bound in quantum handling (bsc#1000703)
- CVE-2016-7529: Out-of-bound in quantum handling (bsc#1000399)
- CVE-2016-7528: Out-of-bound access in xcf file coder (bsc#1000434)
- CVE-2016-7527: Out-of-bound access in wpg file coder: (bsc#1000436)
- CVE-2016-7526: out-of-bounds write in ./MagickCore/pixel-accessor.h (bsc#1000702)
- CVE-2016-7525: Heap buffer overflow in psd file coder (bsc#1000701)
- CVE-2016-7524: AddressSanitizer:heap-buffer-overflow READ of size 1 in meta.c:465 (bsc#1000700)
- CVE-2016-7523: AddressSanitizer:heap-buffer-overflow READ of size 1 meta.c:496 (bsc#1000699)
- CVE-2016-7522: Out of bound access for malformed psd file (bsc#1000698)
- CVE-2016-7521: Heap buffer overflow in psd file handling (bsc#1000697)
- CVE-2016-7520: Heap overflow in hdr file handling (bsc#1000696)
- CVE-2016-7519: Out-of-bounds read in coders/rle.c (bsc#1000695)
- CVE-2016-7518: Out-of-bounds read in coders/sun.c (bsc#1000694)
- CVE-2016-7517: Out-of-bounds read in coders/pict.c (bsc#1000693)
- CVE-2016-7516: Out-of-bounds problem in rle, pict, viff and sun files (bsc#1000692)
- CVE-2016-7515: Rle file handling for corrupted file (bsc#1000689)
- CVE-2016-7514: Out-of-bounds read in coders/psd.c (bsc#1000688)
- CVE-2016-7513: Off-by-one error leading to segfault (bsc#1000686)
- CVE-2016-7101: raphicsMagick: SGI Coder Out-Of-Bounds Read Vulnerability (bsc#1001221)
- CVE-2016-6823: raphicsMagick: BMP Coder Out-Of-Bounds Write Vulnerability (bsc#1001066)
- CVE-2015-8959: dOS due to corrupted DDS files (bsc#1000713)
- CVE-2015-8958: Potential DOS in sun file handling due to malformed files (bsc#1000691)
- CVE-2015-8957: Buffer overflow in sun file handling (bsc#1000690)
- CVE-2014-9907: DOS due to corrupted DDS files (bsc#1000714)
- Buffer overflows in SIXEL, PDB, MAP, and TIFF coders (bsc#1002209)
- Divide by zero in WriteTIFFImage (bsc#1002206)
- Record
SUSE-SU-2016:2667-1- Updated
- 2026-11-02
OSVUSN-3142-1 No score
imagemagick vulnerabilities
It was discovered that ImageMagick incorrectly handled certain malformed image files. If a user or automated system using ImageMagick were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service or possibly execute code with the privileges of the user invoking the program.
- Record
USN-3142-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
imagemagickDebian:12 |
before 8:6.9.6.2+dfsg-1 | 8:6.9.6.2+dfsg-1 |
imagemagickDebian:13 |
before 8:6.9.6.2+dfsg-1 | 8:6.9.6.2+dfsg-1 |
imagemagickDebian:14 |
before 8:6.9.6.2+dfsg-1 | 8:6.9.6.2+dfsg-1 |
imagemagickDebian:7 |
before 8:6.7.7.10-5+deb7u10, plus listed versions 8:6.7.7.10-58:6.7.7.10-5+deb7u28:6.7.7.10-5+deb7u38:6.7.7.10-5+deb7u48:6.7.7.10-5+deb7u5 Show 4 moreShow less8:6.7.7.10-5+deb7u68:6.7.7.10-5+deb7u78:6.7.7.10-5+deb7u88:6.7.7.10-5+deb7u9 |
8:6.7.7.10-5+deb7u10 |
imagemagickDebian:8 |
before 8:6.8.9.9-5+deb8u6, plus listed versions 8:6.8.9.9-58:6.8.9.9-5+deb8u18:6.8.9.9-5+deb8u28:6.8.9.9-5+deb8u38:6.8.9.9-5+deb8u48:6.8.9.9-5+deb8u5 |
8:6.8.9.9-5+deb8u6 |
converseenMageia:6 |
before 0.9.6.2-1.3.mga6 | 0.9.6.2-1.3.mga6 |
cuneiform-linuxMageia:6 |
before 1.1.0-9.2.mga6 | 1.1.0-9.2.mga6 |
dvdauthorMageia:6 |
before 0.7.2-2.2.mga6 | 0.7.2-2.2.mga6 |
emacsMageia:6 |
before 24.5-8.3.mga6 | 24.5-8.3.mga6 |
imagemagickMageia:6 |
before 6.9.9.41-1.mga6 | 6.9.9.41-1.mga6 |
Show 22 moreShow less
| Package | Affected | Fixed |
|---|---|---|
inkscapeMageia:6 |
before 0.92.1-2.2.mga6 | 0.92.1-2.2.mga6 |
k3dMageia:6 |
before 0.8.0.5-5.2.mga6 | 0.8.0.5-5.2.mga6 |
kxstitchMageia:6 |
before 2.0.0-2.2.mga6 | 2.0.0-2.2.mga6 |
libopenshotMageia:6 |
before 0.1.8-1.2.mga6 | 0.1.8-1.2.mga6 |
ocaml-glmliteMageia:6 |
before 0.03.51-17.2.mga6 | 0.03.51-17.2.mga6 |
perl-Image-SubImageFindMageia:6 |
before 0.30.0-6.2.mga6 | 0.30.0-6.2.mga6 |
pfstoolsMageia:6 |
before 2.0.6-3.2.mga6 | 2.0.6-3.2.mga6 |
php-imagickMageia:6 |
before 3.4.1-6.2.mga6 | 3.4.1-6.2.mga6 |
php-magickwandMageia:6 |
before 1.0.9.2-10.2.mga6 | 1.0.9.2-10.2.mga6 |
psiconvMageia:6 |
before 0.9.8-26.2.mga6 | 0.9.8-26.2.mga6 |
pythonmagickMageia:6 |
before 0.9.12-7.2.mga6 | 0.9.12-7.2.mga6 |
ruby-rmagickMageia:6 |
before 2.15.4-12.2.mga6 | 2.15.4-12.2.mga6 |
synfigMageia:6 |
before 1.2.1-2.2.mga6 | 1.2.1-2.2.mga6 |
vdr-plugin-skinelchiMageia:6 |
before 0.2.8-8.2.mga6 | 0.2.8-8.2.mga6 |
vdr-plugin-skinenigmangMageia:6 |
before 0.1.2-10.2.mga6 | 0.1.2-10.2.mga6 |
ImageMagickSUSE:Linux Enterprise Desktop 12 SP1 |
before 6.8.8.1-40.1 | 6.8.8.1-40.1 |
ImageMagickSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 6.8.8.1-40.1 | 6.8.8.1-40.1 |
ImageMagickSUSE:Linux Enterprise Server 12 SP1 |
before 6.8.8.1-40.1 | 6.8.8.1-40.1 |
ImageMagickSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 6.8.8.1-40.1 | 6.8.8.1-40.1 |
ImageMagickSUSE:Linux Enterprise Workstation Extension 12 SP1 |
before 6.8.8.1-40.1 | 6.8.8.1-40.1 |
imagemagickUbuntu:14.04:LTS |
before 8:6.7.7.10-6ubuntu3.3, plus listed versions 8:6.7.7.10-5ubuntu38:6.7.7.10-5ubuntu48:6.7.7.10-6ubuntu18:6.7.7.10-6ubuntu28:6.7.7.10-6ubuntu38:6.7.7.10-6ubuntu3.18:6.7.7.10-6ubuntu3.2 |
8:6.7.7.10-6ubuntu3.3 |
imagemagickUbuntu:16.04:LTS |
before 8:6.8.9.9-7ubuntu5.3, plus listed versions 8:6.8.9.9-5ubuntu28:6.8.9.9-68:6.8.9.9-6build18:6.8.9.9-78:6.8.9.9-7ubuntu1 Show 6 moreShow less8:6.8.9.9-7ubuntu28:6.8.9.9-7ubuntu38:6.8.9.9-7ubuntu48:6.8.9.9-7ubuntu58:6.8.9.9-7ubuntu5.18:6.8.9.9-7ubuntu5.2 |
8:6.8.9.9-7ubuntu5.3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-8677 is a high vulnerability (CVSS 8.8) in Imagemagick, published October 17, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.86%, the 90th percentile. Fixed in imagemagick 8:6.9.6.2+dfsg-1.
References
openwall.com/lists/oss-security/2016/10/16/1
lists.opensuse.org/opensuse-updates/2016-10/msg00107.html
blogs.gentoo.org/ago/2016/10/07/imagemagick-memory-allocate-failure-in-acquirequantumpixels-quantum-c
securityfocus.com/bid/93598
github.com/ImageMagick/ImageMagick/issues/268
bugzilla.redhat.com/show_bug.cgi?id=1385698
Show 99 moreShow less
github.com/ImageMagick/ImageMagick/commit/6e48aa92ff4e6e95424300ecd52a9ea453c19c60
debian.org/security/2016/dsa-3726
nvd.nist.gov/vuln/detail/CVE-2016-8677
github.com/advisories/GHSA-mcw9-9pmh-fjfc
security-tracker.debian.org/tracker/CVE-2016-8677
advisories.mageia.org/MGASA-2018-0229.html
bugs.mageia.org/show_bug.cgi?id=19078
git.imagemagick.org/repos/ImageMagick/blob/ImageMagick-6/ChangeLog
suse.com/support/update/announcement/2016/suse-su-20162667-1
bugzilla.suse.com/1000394
bugzilla.suse.com/1000399
bugzilla.suse.com/1000434
bugzilla.suse.com/1000436
bugzilla.suse.com/1000686
bugzilla.suse.com/1000688
bugzilla.suse.com/1000689
bugzilla.suse.com/1000690
bugzilla.suse.com/1000691
bugzilla.suse.com/1000692
bugzilla.suse.com/1000693
bugzilla.suse.com/1000694
bugzilla.suse.com/1000695
bugzilla.suse.com/1000696
bugzilla.suse.com/1000697
bugzilla.suse.com/1000698
bugzilla.suse.com/1000699
bugzilla.suse.com/1000700
bugzilla.suse.com/1000701
bugzilla.suse.com/1000702
bugzilla.suse.com/1000703
bugzilla.suse.com/1000704
bugzilla.suse.com/1000706
bugzilla.suse.com/1000707
bugzilla.suse.com/1000708
bugzilla.suse.com/1000709
bugzilla.suse.com/1000711
bugzilla.suse.com/1000712
bugzilla.suse.com/1000713
bugzilla.suse.com/1000714
bugzilla.suse.com/1000715
bugzilla.suse.com/1001066
bugzilla.suse.com/1001221
bugzilla.suse.com/1002206
bugzilla.suse.com/1002209
bugzilla.suse.com/1002421
bugzilla.suse.com/1002422
bugzilla.suse.com/1003629
bugzilla.suse.com/1005123
bugzilla.suse.com/1005125
bugzilla.suse.com/1005127
bugzilla.suse.com/1005328
suse.com/security/cve/CVE-2014-9907
suse.com/security/cve/CVE-2015-8957
suse.com/security/cve/CVE-2015-8958
suse.com/security/cve/CVE-2015-8959
suse.com/security/cve/CVE-2016-6823
suse.com/security/cve/CVE-2016-7101
suse.com/security/cve/CVE-2016-7513
suse.com/security/cve/CVE-2016-7514
suse.com/security/cve/CVE-2016-7515
suse.com/security/cve/CVE-2016-7516
suse.com/security/cve/CVE-2016-7517
suse.com/security/cve/CVE-2016-7518
suse.com/security/cve/CVE-2016-7519
suse.com/security/cve/CVE-2016-7520
suse.com/security/cve/CVE-2016-7521
suse.com/security/cve/CVE-2016-7522
suse.com/security/cve/CVE-2016-7523
suse.com/security/cve/CVE-2016-7524
suse.com/security/cve/CVE-2016-7525
suse.com/security/cve/CVE-2016-7526
suse.com/security/cve/CVE-2016-7527
suse.com/security/cve/CVE-2016-7528
suse.com/security/cve/CVE-2016-7529
suse.com/security/cve/CVE-2016-7530
suse.com/security/cve/CVE-2016-7531
suse.com/security/cve/CVE-2016-7532
suse.com/security/cve/CVE-2016-7533
suse.com/security/cve/CVE-2016-7534
suse.com/security/cve/CVE-2016-7535
suse.com/security/cve/CVE-2016-7537
suse.com/security/cve/CVE-2016-7538
suse.com/security/cve/CVE-2016-7539
suse.com/security/cve/CVE-2016-7540
suse.com/security/cve/CVE-2016-7799
suse.com/security/cve/CVE-2016-7800
suse.com/security/cve/CVE-2016-7996
suse.com/security/cve/CVE-2016-7997
suse.com/security/cve/CVE-2016-8677
suse.com/security/cve/CVE-2016-8682
suse.com/security/cve/CVE-2016-8683
suse.com/security/cve/CVE-2016-8684
ubuntu.com/security/CVE-2016-8677
ubuntu.com/security/notices/USN-3142-1
cve.org/CVERecord?id=CVE-2016-8677
ubuntu.com/security/CVE-2016-7799
ubuntu.com/security/CVE-2016-7906
ubuntu.com/security/CVE-2016-8862
ubuntu.com/security/CVE-2016-9556