CVE-2016-5688 json
The WPG parser in ImageMagick before 6.9.4-4 and 7.x before 7.0.1-5, when a memory limit is set, allows remote attackers to have unspecifie…
published 2016-12-13 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-6631
- cvss
- 8.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.8%
- EPSS 4.8% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known
Summary
The WPG parser in ImageMagick before 6.9.4-4 and 7.x before 7.0.1-5, when a memory limit is set, allows remote attackers to have unspecified impact via vectors related to the SetImageExtent return-value check, which trigger (1) a heap-based buffer overflow in the SetPixelIndex function or an invalid write operation in the (2) ScaleCharToQuantum or (3) SetPixelIndex functions.
Patch / fix
- imagemagick Debian 14, Debian 13, Debian 12 8:6.9.6.2+dfsg-2
debian advisories DEBIAN-CVE-2016-5688
- imagemagick Ubuntu 14.04 LTS 8:6.7.7.10-6ubuntu3.2
- imagemagick Ubuntu 16.04 LTS 8:6.8.9.9-7ubuntu5.2
ubuntu advisories UBUNTU-CVE-2016-5688
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
- GraphicsMagick Studio Onsite 1.3, SLE Software Development Kit 11 SP4 1.2.5-4.41.1
- ImageMagick SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 6.4.3.6-7.45.1
- ImageMagick SLES for SAP 12 SP1, SLES 12 SP1, SLED 12 SP1 +2 more 6.8.8.1-30.2
suse advisories SUSE-SU-2016:1783-1SUSE-SU-2016:1782-1SUSE-SU-2016:1784-1
- imagemagick Alpine 3.3, Alpine 3.2 6.9.6.8-r0
- imagemagick Alpine 3.4 6.9.5.3
alpine advisories ALPINE-CVE-2016-5688
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org 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-2016-5688 updated cvss 5.8
ImageMagick: Heap overflow and random invalid memory writes in WPg parser
-
Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat OpenShift Enterprise 2 ImageMagickaffected: no fix available
-
Red Hat Enterprise Linux 5 ImageMagickunder investigation
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
4.82% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
github.com
/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316f2f
patch, vendor-advisory
-
github.com
/ImageMagick/ImageMagick/commit/fc43974d34318c834fbf78570ca1a3764ed8c7d7
patch, vendor-advisory
-
github.com
/ImageMagick/ImageMagick/commits/7.0.1-5
patch, vendor-advisory
-
github.com
/ImageMagick/ImageMagick/commits/6.9.4-4
patch, vendor-advisory
-
securityfocus.com
/bid/91283
vdb-entry, third-party-advisory
- blog.fuzzing-project.org /46-Various-invalid-memory-reads-in-ImageMagick-WPG%2C-DDS%2C-DCM.html
-
oracle.com
/technetwork/topics/security/bulletinjul2016-3090568.html
third-party-advisory
-
openwall.com
/lists/oss-security/2016/06/17/3
mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2016/06/14/5
mailing-list, third-party-advisory
Sources
- CVE List CVE-2016-5688
- NVD CVE-2016-5688
Fencer Vulns 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.