ImageMagick: Invalid memory allocation in the ReadWPGImage function
Published Nov 5, 2017
8.8
HIGHCVSS 3.1
EPSS 2.20%
Description
The ReadWPGImage function in coders/wpg.c in ImageMagick 7.0.7-9 does not properly validate the colormap index in a WPG palette, which allows remote attackers to cause a denial of service (use of uninitialized data or invalid memory allocation) or possibly have unspecified other impact via a malformed WPG file.
Affected products
No data.
Configuration 1
- 7.0.7-9
Configuration 2
- 14.04
- 16.04
- 17.10
- 18.04
- 8.0
- 9.0
No data.
Red Hat Enterprise Linux 5
ImageMagick
Will not fix
Red Hat Enterprise Linux 6
ImageMagick
Will not fix
Red Hat Enterprise Linux 7
ImageMagick
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | ImageMagick | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | ImageMagick | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | ImageMagick | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
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
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.20% (0.02201) | 81.89th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.20% (0.02201) | 80.14th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.63% (0.00626) | 67.76th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.30% (0.03298) | 78.50th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.63% (0.00626) | 68.44th | v4 (v2025.03.14) |
| Jul 20, 2024 | 2.14% (0.02144) | 89.41th | v3 (v2023.03.01) |
| Sep 3, 2023 | 2.14% (0.02144) | 87.86th | v3 (v2023.03.01) |
| May 8, 2023 | 2.71% (0.02714) | 88.93th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.64% (0.01637) | 85.54th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.32% (0.01319) | 71.27th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.32% (0.01319) | 44.98th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.26% (0.02262) | 50.78th | v5 (v2026.06.15) |
| Apr 14, 2021 | 2.26% (0.02262) | 0.00th | v1 |
References (10)
- https://access.redhat.com/security/cve/CVE-2017-16546 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1513940 Issue Tracking
- https://github.com/ImageMagick/ImageMagick/commit/2130bf6f89ded32ef0c88a11694f107c52566c53 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://github.com/ImageMagick/ImageMagick/commit/e04cf3e9524f50ca336253513d977224e083b816 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://github.com/ImageMagick/ImageMagick/issues/851 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-16546
- https://usn.ubuntu.com/3681-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-16546
- https://www.debian.org/security/2017/dsa-4040 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.debian.org/security/2017/dsa-4074 vendor-advisoryx_refsource_DEBIANThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2017-16546 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1513940 | Issue Tracking | |
| https://github.com/ImageMagick/ImageMagick/commit/2130bf6f89ded32ef0c88a11694f107c52566c53 | x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory | |
| https://github.com/ImageMagick/ImageMagick/commit/e04cf3e9524f50ca336253513d977224e083b816 | x_refsource_CONFIRMIssue TrackingThird Party Advisory | |
| https://github.com/ImageMagick/ImageMagick/issues/851 | x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-16546 | ||
| https://usn.ubuntu.com/3681-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2017-16546 | ||
| https://www.debian.org/security/2017/dsa-4040 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| https://www.debian.org/security/2017/dsa-4074 | vendor-advisoryx_refsource_DEBIANThird Party Advisory |
Change history (0)
No recorded changes yet.