In ImageMagick 7.x before 7.0.8-41 and 6.x before 6.9.10-41, there is a divide-by-zero vulnerability in the MeanShiftImage function. It allows an attacker to cause a denial of service by sending a crafted file.
{
"unresolved_ranges": [
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
"extracted_events": [
{
"last_affected": "16.04"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
"extracted_events": [
{
"last_affected": "18.04"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "19.04"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "19.10"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "10.0"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "8.0"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "9.0"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "15.0"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "15.1"
}
]
}
]
}{
"source": [
"CPE_FIELD",
"REFERENCES"
],
"cpe": "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "7.0.0-0"
},
{
"fixed": "7.0.8-41"
}
]
}[
{
"target": {
"file": "MagickCore/feature.c"
},
"signature_type": "Line",
"id": "CVE-2019-14981-7ab5954d",
"source": "https://github.com/imagemagick/imagemagick/commit/a77d8d97f5a7bced0468f0b08798c83fb67427bc",
"signature_version": "v1",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"257338851475050578775486418440277654515",
"18818221762743927862888412051776098542",
"68010026463804182542121649108439342508",
"242016519962630399408319175319241661444"
]
}
},
{
"target": {
"function": "MeanShiftImage",
"file": "MagickCore/feature.c"
},
"signature_type": "Function",
"id": "CVE-2019-14981-fb7c4108",
"source": "https://github.com/imagemagick/imagemagick/commit/a77d8d97f5a7bced0468f0b08798c83fb67427bc",
"signature_version": "v1",
"deprecated": false,
"digest": {
"function_hash": "31258807294992505986865275756036920522",
"length": 4096.0
}
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-14981.json"
"2026-04-11T21:07:22Z"
{
"source": [
"CPE_FIELD",
"REFERENCES"
],
"cpe": "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "6.0"
},
{
"fixed": "6.9.10-41"
}
]
}[
{
"target": {
"function": "MeanShiftImage",
"file": "magick/feature.c"
},
"signature_type": "Function",
"id": "CVE-2019-14981-0284e767",
"source": "https://github.com/imagemagick/imagemagick6/commit/b522d2d857d2f75b659936b59b0da9df1682c256",
"signature_version": "v1",
"deprecated": false,
"digest": {
"function_hash": "161224625496149328780634590066992155975",
"length": 4137.0
}
},
{
"target": {
"file": "magick/feature.c"
},
"signature_type": "Line",
"id": "CVE-2019-14981-e76d344f",
"source": "https://github.com/imagemagick/imagemagick6/commit/b522d2d857d2f75b659936b59b0da9df1682c256",
"signature_version": "v1",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"257338851475050578775486418440277654515",
"18818221762743927862888412051776098542",
"68010026463804182542121649108439342508",
"242016519962630399408319175319241661444"
]
}
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-14981.json"
"2026-04-11T21:07:22Z"