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.
{ "vanir_signatures": [ { "id": "CVE-2018-6405-237ab371", "digest": { "length": 4165.0, "function_hash": "174549838093824963011606393577566324275" }, "target": { "function": "FxOperatorPrecedence", "file": "MagickCore/fx.c" }, "source": "https://github.com/imagemagick/imagemagick/commit/3278fc22854db6236bcac95c963f0460b247a778", "signature_version": "v1", "deprecated": false, "signature_type": "Function" }, { "id": "CVE-2018-6405-a9c33d10", "digest": { "line_hashes": [ "7368723730650628299495536989707392415", "38444483134926382049006828137605767340", "181324996052434100112521657381919597484", "202665483238523151720625381698885187292", "163248604037358845186522867964271043970" ], "threshold": 0.9 }, "target": { "file": "coders/sixel.c" }, "source": "https://github.com/imagemagick/imagemagick/commit/3278fc22854db6236bcac95c963f0460b247a778", "signature_version": "v1", "deprecated": false, "signature_type": "Line" }, { "id": "CVE-2018-6405-ac92c3c2", "digest": { "length": 635.0, "function_hash": "216164064737174095701038092019725948622" }, "target": { "function": "get_params", "file": "coders/sixel.c" }, "source": "https://github.com/imagemagick/imagemagick/commit/3278fc22854db6236bcac95c963f0460b247a778", "signature_version": "v1", "deprecated": false, "signature_type": "Function" }, { "id": "CVE-2018-6405-c547ceea", "digest": { "line_hashes": [ "14506741143791144854337711429724104819", "259734791683846731672426035649556009981", "34434602777197909828372166031083835547", "320749183341654163787140637683923139753", "219775680239919231027252668851838505937", "121167628359434047203577183612862842065", "96090577654565114165740927246950460438", "36067022126598229402898403854917983440", "108248970347698439430189627981118170116", "60245068343414080660929639926030497231", "187163405868859656044173062068664167660", "91156981420042806155067768320631623148" ], "threshold": 0.9 }, "target": { "file": "MagickCore/fx.c" }, "source": "https://github.com/imagemagick/imagemagick/commit/3278fc22854db6236bcac95c963f0460b247a778", "signature_version": "v1", "deprecated": false, "signature_type": "Line" } ] }