{"id":"CVE-2018-16643","details":"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.","modified":"2026-08-07T16:50:37.465104Z","published":"2018-09-06T22:29:01.023Z","related":["SUSE-SU-2018:2977-1","SUSE-SU-2018:3095-1","SUSE-SU-2018:3269-1","SUSE-SU-2018:3348-1"],"database_specific":{"unresolved_ranges":[{"vendor_product":"canonical:ubuntu_linux","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:*:*:*"],"extracted_events":[{"introduced":"14.04"},{"last_affected":"14.04"},{"introduced":"16.04"},{"last_affected":"16.04"},{"introduced":"18.04"},{"last_affected":"18.04"}],"source":"CPE_STRING"},{"extracted_events":[{"introduced":"8.0"},{"last_affected":"8.0"}],"source":"CPE_STRING","vendor_product":"debian:debian_linux","cpes":["cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"]}]},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/10/msg00002.html"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3785-1/"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/issues/1199"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/imagemagick/imagemagick","events":[{"introduced":"0e75f0a50fe4a9df75068c0eabaaf2a9e83dffe9"},{"last_affected":"0e75f0a50fe4a9df75068c0eabaaf2a9e83dffe9"},{"fixed":"6b6bff054d569a77973f2140c0e86366e6168a6c"}],"database_specific":{"cpe":"cpe:2.3:a:imagemagick:imagemagick:7.0.8-4:*:*:*:*:*:*:*","extracted_events":[{"introduced":"7.0.8-4"},{"last_affected":"7.0.8-4"}],"source":["CPE_STRING","REFERENCES"]}}],"versions":["7.0.8-4","7.0.8-5"],"database_specific":{"vanir_signatures_modified":"2026-08-07T16:50:37Z","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","target":{"file":"coders/cals.c","function":"ReadCALSImage"},"deprecated":false,"digest":{"function_hash":"151821552892915741770173898003066722704","length":2784},"id":"CVE-2018-16643-12720e63","signature_type":"Function"},{"id":"CVE-2018-16643-35e61409","signature_type":"Line","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","target":{"file":"coders/pwp.c"},"deprecated":false,"digest":{"line_hashes":["187533512943857346308346778587421428526","231920950740378249818910821841393386793","189095931184415899638832339113382182696","130223367870871285664262177353501464854"],"threshold":0.9}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","target":{"file":"coders/pict.c","function":"ReadPICTImage"},"deprecated":false,"digest":{"function_hash":"203070077634815224829465299352887414190","length":15924},"id":"CVE-2018-16643-44e94d95"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","target":{"file":"coders/cals.c"},"deprecated":false,"digest":{"line_hashes":["10110501647741398902524607502901130633","236759063174542429855447567423183366300","163786612835840933850059127572924549249","183097169735099011941040536475853576911"],"threshold":0.9},"id":"CVE-2018-16643-50cd2b18"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","target":{"file":"coders/pwp.c","function":"ReadPWPImage"},"deprecated":false,"digest":{"function_hash":"39804774322586891601766100662503627903","length":3644},"id":"CVE-2018-16643-937028a5"},{"deprecated":false,"digest":{"length":27570,"function_hash":"261599115229418059521409716770718207903"},"id":"CVE-2018-16643-be4e267d","signature_type":"Function","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","target":{"file":"coders/dcm.c","function":"ReadDCMImage"}},{"deprecated":false,"digest":{"line_hashes":["253301786758302436653254016906963793774","137873803676235522753668915003569008703","189766374457722655839155578208854704496","193869383204492240367463169495217187234","39857028589974231118589688254169858637","194895140565744107345321645471789901156","287552287390240115288847990630583350375","334331858103254438590899789618930688375","207071924030769842771473903323956025228","271583124863480110105028350825803226524","19363552495892662592930719613345772816","301481943347378010357468641588504728513","177227375233463829190662212773628464633","130223367870871285664262177353501464854","245642162127522678580172602418137411276","6558087767129097902083456721076762767","177759960853892708963081058335874578207","334065183752715418393280304446773169191"],"threshold":0.9},"id":"CVE-2018-16643-d579aed0","signature_type":"Line","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","target":{"file":"coders/dcm.c"}},{"target":{"file":"coders/pict.c"},"deprecated":false,"digest":{"line_hashes":["149465407627715467110335476937850666663","231920950740378249818910821841393386793","102154160121461609014101208257639932622","239996784553475754507201816640268921186"],"threshold":0.9},"id":"CVE-2018-16643-da9cdb50","signature_type":"Line","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16643.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}