In ImageMagick 7.0.7-29 and earlier, a missing NULL check in ReadOneJNGImage in coders/png.c allows an attacker to cause a denial of service (WriteBlob assertion failure and application exit) via a crafted file.
{
"unresolved_ranges": [
{
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"last_affected": "14.04"
},
{
"last_affected": "16.04"
},
{
"last_affected": "18.04"
}
],
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
],
"source": "CPE_STRING"
},
{
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"last_affected": "8.0"
},
{
"last_affected": "9.0"
}
],
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"source": "CPE_STRING"
}
]
}{
"extracted_events": [
{
"introduced": "7.0.0-0"
},
{
"last_affected": "7.0.7-29"
}
],
"cpe": "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "6.9.9-42"
}
],
"cpe": "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*",
"source": [
"CPE_RANGE",
"REFERENCES"
]
}"2026-05-30T12:22:37Z"
[
{
"digest": {
"line_hashes": [
"298871696389629155284717183490975032472",
"28410204597529120706238128142211346520",
"266622275964940873483939931408488320853",
"242540208099304219285832213890642484568"
],
"threshold": 0.9
},
"signature_version": "v1",
"id": "CVE-2018-16749-c74ff6cf",
"signature_type": "Line",
"deprecated": false,
"target": {
"file": "coders/png.c"
},
"source": "https://github.com/imagemagick/imagemagick6/commit/1007b98f8795ad4bea6bc5f68a32d83e982fdae4"
},
{
"digest": {
"function_hash": "4859487235691391041003765874819701615",
"length": 14962.0
},
"signature_version": "v1",
"id": "CVE-2018-16749-fc5a5880",
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "coders/png.c",
"function": "ReadOneJNGImage"
},
"source": "https://github.com/imagemagick/imagemagick6/commit/1007b98f8795ad4bea6bc5f68a32d83e982fdae4"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-16749.json"