In the ReadDCMImage function in coders/dcm.c in ImageMagick before 7.0.7-23, each redmap, greenmap, and bluemap variable can be overwritten by a new pointer. The previous pointer is lost, which leads to a memory leak. This allows remote attackers to cause a denial of service.
[
{
"signature_version": "v1",
"id": "CVE-2018-6405-237ab371",
"source": "https://github.com/imagemagick/imagemagick/commit/3278fc22854db6236bcac95c963f0460b247a778",
"target": {
"function": "FxOperatorPrecedence",
"file": "MagickCore/fx.c"
},
"deprecated": false,
"digest": {
"length": 4165.0,
"function_hash": "174549838093824963011606393577566324275"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"id": "CVE-2018-6405-a9c33d10",
"source": "https://github.com/imagemagick/imagemagick/commit/3278fc22854db6236bcac95c963f0460b247a778",
"target": {
"file": "coders/sixel.c"
},
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"7368723730650628299495536989707392415",
"38444483134926382049006828137605767340",
"181324996052434100112521657381919597484",
"202665483238523151720625381698885187292",
"163248604037358845186522867964271043970"
]
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"id": "CVE-2018-6405-ac92c3c2",
"source": "https://github.com/imagemagick/imagemagick/commit/3278fc22854db6236bcac95c963f0460b247a778",
"target": {
"function": "get_params",
"file": "coders/sixel.c"
},
"deprecated": false,
"digest": {
"length": 635.0,
"function_hash": "216164064737174095701038092019725948622"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"id": "CVE-2018-6405-c547ceea",
"source": "https://github.com/imagemagick/imagemagick/commit/3278fc22854db6236bcac95c963f0460b247a778",
"target": {
"file": "MagickCore/fx.c"
},
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"14506741143791144854337711429724104819",
"259734791683846731672426035649556009981",
"34434602777197909828372166031083835547",
"320749183341654163787140637683923139753",
"219775680239919231027252668851838505937",
"121167628359434047203577183612862842065",
"96090577654565114165740927246950460438",
"36067022126598229402898403854917983440",
"108248970347698439430189627981118170116",
"60245068343414080660929639926030497231",
"187163405868859656044173062068664167660",
"91156981420042806155067768320631623148"
]
},
"signature_type": "Line"
}
]