High severity · published Dec 13, 2016
CVE-2016-5688
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…
8.1
CVSS
4.8%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)4.8% · higher than 92% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
IM
Imagemagick · Imagemagick
through 6.9.4-3; 7.0.1-0; 7.0.1-1; 7.0.1-2; 7.0.1-3; 7.0.1-4 · source: NVD
SO
Solaris · Oracle
11.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-5688
CVE.org
https://www.cve.org/CVERecord?id=CVE-2016-5688
Third Party Advisory
http://www.openwall.com/lists/oss-security/2016/06/14/5
Third Party Advisory
http://www.openwall.com/lists/oss-security/2016/06/17/3
Third Party Advisory
http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
Third Party Advisory
http://www.securityfocus.com/bid/91283
blog.fuzzing-project.org
https://blog.fuzzing-project.org/46-Various-invalid-memory-reads-in-ImageMagick-WPG%2C-DDS%2C-DCM.html
Patch
https://github.com/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316f2f
More from Imagemagick
8.4
CVE-2016-3714
ImageMagick Improper Input Validation Vulnerability
5.5
CVE-2016-3715
ImageMagick Arbitrary File Deletion Vulnerability
5.5
CVE-2016-3718
ImageMagick Server-Side Request Forgery (SSRF) Vulnerability
9.8
CVE-2026-25986
ImageMagick has a heap buffer overflow in YUV 4:2:2 decoder
9.8
CVE-2026-25983
ImageMagick has Use After Free in MSLStartElement in "coders/msl.c"
