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