ImageMagick: Heap overflow and random invalid memory writes in WPg parser
Published Dec 13, 2016
8.1
HIGHCVSS 3.0
EPSS 4.82%
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.
Affected products
No data.
Configuration 2
- ≤ 6.9.4-3
- 7.0.1-0
- 7.0.1-1
- 7.0.1-2
- 7.0.1-3
- 7.0.1-4
No data.
Red Hat Enterprise Linux 5
ImageMagick
Under investigation
Red Hat Enterprise Linux 6
ImageMagick
Affected
Red Hat Enterprise Linux 7
ImageMagick
Affected
Red Hat OpenShift Enterprise 2
ImageMagick
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | ImageMagick | Under investigation | n/a |
| Red Hat Enterprise Linux 6 | ImageMagick | Affected | n/a |
| Red Hat Enterprise Linux 7 | ImageMagick | Affected | n/a |
| Red Hat OpenShift Enterprise 2 | ImageMagick | Affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.82% (0.04824) | 91.70th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.84% (0.04842) | 90.84th | v5 (v2026.06.15) |
| Jul 6, 2025 | 2.39% (0.02389) | 84.31th | v4 (v2025.03.14) |
| Mar 30, 2025 | 4.79% (0.04795) | 88.47th | v4 (v2025.03.14) |
| Mar 29, 2025 | 9.60% (0.09596) | 88.02th | v4 (v2025.03.14) |
| Mar 17, 2025 | 4.79% (0.04795) | 88.74th | v4 (v2025.03.14) |
| Dec 17, 2024 | 2.67% (0.02674) | 90.13th | v3 (v2023.03.01) |
| Dec 12, 2024 | 1.04% (0.01036) | 84.58th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.84% (0.00839) | 81.52th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.84% (0.00839) | 79.48th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.97% (0.01974) | 78.97th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.97% (0.01974) | 77.12th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.97% (0.01974) | 56.20th | v2 (v2022.01.01) |
References (14)
- http://www.openwall.com/lists/oss-security/2016/06/14/5 mailing-listx_refsource_MLISTThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/06/17/3 mailing-listx_refsource_MLISTThird Party Advisory
- http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html x_refsource_CONFIRMThird Party Advisory
- http://www.securityfocus.com/bid/91283 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2016-5688 Vendor Advisory
- https://blog.fuzzing-project.org/46-Various-invalid-memory-reads-in-ImageMagick-WPG%2C-DDS%2C-DCM.html x_refsource_MISC
- https://blog.fuzzing-project.org/46-Various-invalid-memory-reads-in-ImageMagick-WPG,-DDS,-DCM.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1348153 Issue Tracking
- https://github.com/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316f2f x_refsource_CONFIRMPatchVendor Advisory
- https://github.com/ImageMagick/ImageMagick/commit/fc43974d34318c834fbf78570ca1a3764ed8c7d7 x_refsource_CONFIRMPatchVendor Advisory
- https://github.com/ImageMagick/ImageMagick/commits/6.9.4-4 x_refsource_CONFIRMPatchVendor Advisory
- https://github.com/ImageMagick/ImageMagick/commits/7.0.1-5 x_refsource_CONFIRMPatchVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-5688
- https://www.cve.org/CVERecord?id=CVE-2016-5688
Change history (0)
No recorded changes yet.