Medium
Security advisory
The functions ReadDCMImage in coders/dcm.c, ReadPWPImage in coders/pwp.c, ReadCALSImage in coders/cals.c, and ReadPICTImage in coders/pict.c in ImageMagick 7.0.8-4 do not check the return value of the fputc function, which allows remote attackers to cause a denial of service via a crafted image file.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-16643
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:19 UTC · Revision 1
Source evidence
The functions ReadDCMImage in coders/dcm.c, ReadPWPImage in coders/pwp.c, ReadCALSImage in coders/cals.c, and ReadPICTImage in coders/pict.c in ImageMagick 7.0.8-4 do not check the return value of the fputc function, which allows remote attackers to cause a denial of service via a crafted image file.
osv:CVE-2018-16643
Complete source record
{
"id": "d3f0e489b4a70befa99b3cb0c09c191e1d27f61e0f3826ba9341328861e8dc20",
"url": "https://osv.dev/vulnerability/CVE-2018-16643",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-16643",
"summary": "The functions ReadDCMImage in coders/dcm.c, ReadPWPImage in coders/pwp.c, ReadCALSImage in coders/cals.c, and ReadPICTImage in coders/pict.c in ImageMagick 7.0.8-4 do not check the return value of the fputc function, which allows remote attackers to cause a denial of service via a crafted image file.",
"evidence": "osv:CVE-2018-16643",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-16643",
"aliases": [
"CVE-2018-16643"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/imagemagick/imagemagick",
"type": "GIT",
"events": [
{
"introduced": "0e75f0a50fe4a9df75068c0eabaaf2a9e83dffe9"
},
{
"last_affected": "0e75f0a50fe4a9df75068c0eabaaf2a9e83dffe9"
},
{
"fixed": "6b6bff054d569a77973f2140c0e86366e6168a6c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:imagemagick:imagemagick:7.0.8-4:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.8-4"
},
{
"last_affected": "7.0.8-4"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "6b6bff054d569a77973f2140c0e86366e6168a6c"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"7.0.8-4"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16643.json",
"vanir_signatures": [
{
"id": "CVE-2018-16643-12720e63",
"digest": {
"length": 2784,
"function_hash": "151821552892915741770173898003066722704"
},
"source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
"target": {
"file": "coders/cals.c",
"function": "ReadCALSImage"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-16643-35e61409",
"digest": {
"threshold": 0.9,
"line_hashes": [
"187533512943857346308346778587421428526",
"231920950740378249818910821841393386793",
"189095931184415899638832339113382182696",
"130223367870871285664262177353501464854"
]
},
"source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
"target": {
"file": "coders/pwp.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-16643-44e94d95",
"digest": {
"length": 15924,
"function_hash": "203070077634815224829465299352887414190"
},
"source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
"target": {
"file": "coders/pict.c",
"function": "ReadPICTImage"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-16643-50cd2b18",
"digest": {
"threshold": 0.9,
"line_hashes": [
"10110501647741398902524607502901130633",
"236759063174542429855447567423183366300",
"163786612835840933850059127572924549249",
"183097169735099011941040536475853576911"
]
},
"source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
"target": {
"file": "coders/cals.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-16643-937028a5",
"digest": {
"length": 3644,
"function_hash": "39804774322586891601766100662503627903"
},
"source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
"target": {
"file": "coders/pwp.c",
"function": "ReadPWPImage"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-16643-be4e267d",
"digest": {
"length": 27570,
"function_hash": "261599115229418059521409716770718207903"
},
"source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
"target": {
"file": "coders/dcm.c",
"function": "ReadDCMImage"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-16643-d579aed0",
"digest": {
"threshold": 0.9,
"line_hashes": [
"253301786758302436653254016906963793774",
"137873803676235522753668915003569008703",
"189766374457722655839155578208854704496",
"193869383204492240367463169495217187234",
"39857028589974231118589688254169858637",
"194895140565744107345321645471789901156",
"287552287390240115288847990630583350375",
"334331858103254438590899789618930688375",
"207071924030769842771473903323956025228",
"271583124863480110105028350825803226524",
"19363552495892662592930719613345772816",
"301481943347378010357468641588504728513",
"177227375233463829190662212773628464633",
"130223367870871285664262177353501464854",
"245642162127522678580172602418137411276",
"6558087767129097902083456721076762767",
"177759960853892708963081058335874578207",
"334065183752715418393280304446773169191"
]
},
"source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
"target": {
"file": "coders/dcm.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-16643-da9cdb50",
"digest": {
"threshold": 0.9,
"line_hashes": [
"149465407627715467110335476937850666663",
"231920950740378249818910821841393386793",
"102154160121461609014101208257639932622",
"239996784553475754507201816640268921186"
]
},
"source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
"target": {
"file": "coders/pict.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:12:15Z"
}
}
],
"modified": "2026-10-24T14:12:15.103577703Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html",
"https://lists.debian.org/debian-lts-announce/2018/10/msg00002.html",
"https://usn.ubuntu.com/3785-1/",
"https://github.com/ImageMagick/ImageMagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
"https://github.com/ImageMagick/ImageMagick/issues/1199"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "14.04"
},
{
"last_affected": "14.04"
},
{
"introduced": "16.04"
},
{
"last_affected": "16.04"
},
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:imagemagick:imagemagick:7.0.8-4:*:*:*:*:*:*:*"
],
"vendor_product": "imagemagick:imagemagick",
"extracted_events": [
{
"range": [
{
"introduced": "7.0.8-4"
},
{
"last_affected": "7.0.8-4"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-16643",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443376,
"published_at": "2018-09-06T22:29:01.023+00:00"
}