Buffer overflow in Imagemagick
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 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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.048 (91.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 92nd percentile — 91.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.048 · newest: 0.048 · change: 0.000
Affected products
- Imagemagick — versions 7.0.1-0, 7.0.1-1, 7.0.1-2
- Oracle Solaris — versions 11.3
Weakness classification (CWE)
References
- github.com/ImageMagick/ImageMagick/commits/7.0.1-5 (Patch, Vendor Advisory)
- github.com/ImageMagick/ImageMagick/commits/6.9.4-4 (Patch, Vendor Advisory)
- www.securityfocus.com/bid/91283 (VDB Entry, Third Party Advisory, vdb-entry)
- blog.fuzzing-project.org/46-Various-invalid-memory-reads-in-ImageMagick-WPG,-DD…
- www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html (Third Party Advisory)
- github.com/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316… (Patch, Vendor Advisory)
- www.openwall.com/lists/oss-security/2016/06/17/3 (mailing-list, Third Party Advisory)
- github.com/ImageMagick/ImageMagick/commit/fc43974d34318c834fbf78570ca1a3764ed8c… (Patch, Vendor Advisory)
- www.openwall.com/lists/oss-security/2016/06/14/5 (mailing-list, Third Party Advisory)
Frequently asked questions
- What is CVE-2016-5688?
- CVE-2016-5688 is a high-severity vulnerability in Imagemagick, classified under Improper Restriction of Operations within the Bounds of a Memory Buffer. CVSS score: 8.1/10. Published 2016-12-13.
- How severe is CVE-2016-5688?
- High severity. CVSS v3 base score is 8.1 out of 10.