ImageMagick 7.0.8-50 Q16 has a stack-based buffer overflow at coders/pnm.c in WritePNMImage because of off-by-one errors.
{ "vanir_signatures": [ { "id": "CVE-2019-13306-5229bcfb", "signature_type": "Function", "target": { "file": "coders/pnm.c", "function": "WritePNMImage" }, "digest": { "function_hash": "62266670660684400905173600749239523842", "length": 21296.0 }, "source": "https://github.com/imagemagick/imagemagick6/commit/cb5ec7d98195aa74d5ed299b38eff2a68122f3fa", "signature_version": "v1", "deprecated": false }, { "id": "CVE-2019-13306-a897742d", "signature_type": "Line", "target": { "file": "coders/pnm.c" }, "digest": { "line_hashes": [ "106194549059593632269021515242205683326", "73206001765135714412094639179018116291", "160821921610913074378187192959977773534", "54722723182597058330938219509802193063", "106194549059593632269021515242205683326", "73206001765135714412094639179018116291", "160821921610913074378187192959977773534", "54722723182597058330938219509802193063" ], "threshold": 0.9 }, "source": "https://github.com/imagemagick/imagemagick/commit/e92040ea6ee2a844ebfd2344174076795a4787bd", "signature_version": "v1", "deprecated": false }, { "id": "CVE-2019-13306-d4666a0a", "signature_type": "Line", "target": { "file": "coders/pnm.c" }, "digest": { "line_hashes": [ "106194549059593632269021515242205683326", "73206001765135714412094639179018116291", "160821921610913074378187192959977773534", "54722723182597058330938219509802193063", "106194549059593632269021515242205683326", "73206001765135714412094639179018116291", "160821921610913074378187192959977773534", "54722723182597058330938219509802193063" ], "threshold": 0.9 }, "source": "https://github.com/imagemagick/imagemagick6/commit/cb5ec7d98195aa74d5ed299b38eff2a68122f3fa", "signature_version": "v1", "deprecated": false }, { "id": "CVE-2019-13306-e8d33e0c", "signature_type": "Function", "target": { "file": "coders/pnm.c", "function": "WritePNMImage" }, "digest": { "function_hash": "129115947922196402685183886624375644393", "length": 21985.0 }, "source": "https://github.com/imagemagick/imagemagick/commit/e92040ea6ee2a844ebfd2344174076795a4787bd", "signature_version": "v1", "deprecated": false } ] }