ImageMagick before 7.1.2-33 and 6.9.13-58 contains a heap buffer underwrite vulnerability in DecodeImage() in coders/pict.c on 32-bit builds due to pointer arithmetic overflow. Attackers can supply a crafted PICT file with maximized row, column and bytes-per-line values to bypass bounds checks and write up to 128 controlled bytes below the heap buffer, causing crashes or code execution.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-124"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/109xxx/CVE-2026-109964.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "7.0.0-0"
},
{
"fixed": "7.1.2-33"
},
{
"fixed": "6.9.13-58"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"introduced": "7.0.0-0"
},
{
"fixed": "7.1.2-33"
},
{
"fixed": "6.9.13-58"
}
],
"source": "CPE_FIELD"
},
{
"extracted_events": [
{
"fixed": "7.1.2-33"
}
],
"source": "DESCRIPTION"
}
]
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-109964.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "117387027792205970232952717210880408727",
"length": 3054
},
"id": "CVE-2026-109964-1d091a32",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/imagemagick/imagemagick/commit/63dde0cf281383ab69432b88305f7dcd6a8ce900",
"target": {
"file": "coders/pict.c",
"function": "DecodeImage"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"4917291848142377781582873153874519309",
"213844221792978668527712223420981491100",
"198227743175777081057263015669437638123",
"89521379190447533666595174774494156558",
"185423303333719010553492520975619778908",
"308307662032748269624663092873733112026",
"138790451414154447525492944250428940699",
"42167598240762178921216975365190427853"
],
"threshold": 0.9
},
"id": "CVE-2026-109964-b3882bbe",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/imagemagick/imagemagick/commit/63dde0cf281383ab69432b88305f7dcd6a8ce900",
"target": {
"file": "coders/pict.c"
}
}
]
"2026-10-15T07:06:25Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-109964.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "77932664089419344014451958297261304399",
"length": 2972
},
"id": "CVE-2026-109964-216ee395",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/imagemagick/imagemagick6/commit/c18c5d5fb7f1d87ddbe0a02e9d1207c89b24588c",
"target": {
"file": "coders/pict.c",
"function": "DecodeImage"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"250463251388015879183891945455985365806",
"135369567819229732579412206353358754059",
"2280563405488784040940950726732038094",
"248230789525853067412103598145247646995",
"45893089876707795013409956826782844845",
"172801312162214553756934479860760550366",
"138737294364165070450608689508366214918",
"2216776254526499793613810724633447168"
],
"threshold": 0.9
},
"id": "CVE-2026-109964-737a4e86",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/imagemagick/imagemagick6/commit/c18c5d5fb7f1d87ddbe0a02e9d1207c89b24588c",
"target": {
"file": "coders/pict.c"
}
}
]
"2026-10-15T07:06:25Z"