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.
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"239037879911661576146958638240697473991",
"6775137549662369651095735069313677055",
"230263286374246415018531447678239154621",
"167777559930016920714550450146410033513"
]
},
"target": {
"file": "coders/wpg.c"
},
"id": "CVE-2017-16546-1a59bbd4",
"source": "https://github.com/imagemagick/imagemagick/commit/2130bf6f89ded32ef0c88a11694f107c52566c53",
"signature_type": "Line"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "120950539745086131144898489314772176044",
"length": 12071.0
},
"target": {
"function": "ReadWPGImage",
"file": "coders/wpg.c"
},
"id": "CVE-2017-16546-71e01bf3",
"source": "https://github.com/imagemagick/imagemagick/commit/e04cf3e9524f50ca336253513d977224e083b816",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "45674372341530071912301067453092590117",
"length": 12161.0
},
"target": {
"function": "ReadWPGImage",
"file": "coders/wpg.c"
},
"id": "CVE-2017-16546-9dbc3eb1",
"source": "https://github.com/imagemagick/imagemagick/commit/2130bf6f89ded32ef0c88a11694f107c52566c53",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"6775137549662369651095735069313677055",
"230263286374246415018531447678239154621",
"265662654767131670731158258118047212943",
"328812252873929144357777357305708714005"
]
},
"target": {
"file": "coders/wpg.c"
},
"id": "CVE-2017-16546-b18edb87",
"source": "https://github.com/imagemagick/imagemagick/commit/e04cf3e9524f50ca336253513d977224e083b816",
"signature_type": "Line"
}
]