CVE-2017-16546Improper Restriction of Operations within the Bounds of a Memory Buffer in Imagemagick

Severity
8.8HIGHNVD
EPSS
0.3%
top 44.84%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedNov 5
Latest updateMay 13

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitability: 2.8 | Impact: 5.9

Affected Packages3 packages

debiandebian/imagemagick< imagemagick 8:6.9.9.34+dfsg-3 (bookworm)
Debianimagemagick/imagemagick< 8:6.9.9.34+dfsg-3+3

Also affects: Debian Linux 8.0, 9.0, Ubuntu Linux 14.04, 16.04, 17.10, 18.04

Patches

🔴Vulnerability Details

2
GHSA
GHSA-8r2v-x2w3-6hv7: The ReadWPGImage function in coders/wpg2022-05-13
OSV
CVE-2017-16546: The ReadWPGImage function in coders/wpg2017-11-05

📋Vendor Advisories

3
Ubuntu
ImageMagick vulnerabilities2018-06-12
Red Hat
ImageMagick: Invalid memory allocation in the ReadWPGImage function2017-11-04
Debian
CVE-2017-16546: imagemagick - The ReadWPGImage function in coders/wpg.c in ImageMagick 7.0.7-9 does not proper...2017

💬Community

1
Bugzilla
CVE-2017-16546 ImageMagick: Invalid memory allocation in the ReadWPGImage function2017-11-16