8.8high

CVE-2017-16546

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 allo…

Published 9 y ago · modified 4 mo ago · JSON

CVSS
8.8
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
2.2%
percentile 83%
Public exploits
0
none known

Summary

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.

Exploit prediction (EPSS)

2.20% probability of exploitation in the next 30 days, higher than 83% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.18.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD2.06.8AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

  • debian.org /security/2017/dsa-4040 · vendor-advisory, x_refsource_DEBIAN, x_transferred
  • usn.ubuntu.com /3681-1/ · vendor-advisory, x_refsource_UBUNTU, x_transferred
  • debian.org /security/2017/dsa-4074 · vendor-advisory, x_refsource_DEBIAN, x_transferred
  • github.com /ImageMagick/ImageMagick/issues/851 · x_refsource_CONFIRM, x_transferred
  • github.com /ImageMagick/ImageMagick/commit/e04cf3e9524f50ca336253513d977224e083b816 · x_refsource_CONFIRM, x_transferred
  • github.com /ImageMagick/ImageMagick/commit/2130bf6f89ded32ef0c88a11694f107c52566c53 · x_refsource_CONFIRM, x_transferred

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.