{"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-04-16T06:21:42.177686021Z","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"],"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":"0"},{"last_affected":"0e75f0a50fe4a9df75068c0eabaaf2a9e83dffe9"},{"fixed":"6b6bff054d569a77973f2140c0e86366e6168a6c"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"7.0.8-4"}]}}],"versions":["7.0.1-0","7.0.1-1","7.0.1-10","7.0.1-2","7.0.1-3","7.0.1-4","7.0.1-5","7.0.1-6","7.0.1-7","7.0.1-8","7.0.1-9","7.0.2-0","7.0.2-1","7.0.2-10","7.0.2-2","7.0.2-3","7.0.2-4","7.0.2-5","7.0.2-6","7.0.2-7","7.0.2-8","7.0.2-9","7.0.3-0","7.0.3-1","7.0.3-10","7.0.3-2","7.0.3-3","7.0.3-4","7.0.3-5","7.0.3-6","7.0.3-7","7.0.3-8","7.0.3-9","7.0.4-0","7.0.4-1","7.0.4-10","7.0.4-2","7.0.4-3","7.0.4-4","7.0.4-5","7.0.4-6","7.0.4-7","7.0.4-8","7.0.4-9","7.0.5-0","7.0.5-1","7.0.5-10","7.0.5-2","7.0.5-3","7.0.5-4","7.0.5-5","7.0.5-6","7.0.5-7","7.0.5-8","7.0.5-9","7.0.6-0","7.0.6-1","7.0.6-2","7.0.6-3","7.0.6-4","7.0.6-5","7.0.6-6","7.0.6-7","7.0.6-8","7.0.6-9","7.0.7-0","7.0.7-1","7.0.7-10","7.0.7-11","7.0.7-12","7.0.7-13","7.0.7-14","7.0.7-15","7.0.7-16","7.0.7-17","7.0.7-18","7.0.7-19","7.0.7-2","7.0.7-20","7.0.7-21","7.0.7-22","7.0.7-23","7.0.7-24","7.0.7-25","7.0.7-26","7.0.7-27","7.0.7-28","7.0.7-29","7.0.7-3","7.0.7-30","7.0.7-31","7.0.7-32","7.0.7-33","7.0.7-34","7.0.7-35","7.0.7-36","7.0.7-37","7.0.7-38","7.0.7-39","7.0.7-4","7.0.7-5","7.0.7-6","7.0.7-8","7.0.7-9","7.0.7.7","7.0.8-0","7.0.8-1","7.0.8-2","7.0.8-3","7.0.8-4","7.0.8-5"],"database_specific":{"vanir_signatures_modified":"2026-04-11T12:27:52Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16643.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","id":"CVE-2018-16643-12720e63","target":{"function":"ReadCALSImage","file":"coders/cals.c"},"signature_type":"Function","digest":{"length":2784,"function_hash":"151821552892915741770173898003066722704"},"deprecated":false},{"signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","id":"CVE-2018-16643-35e61409","target":{"file":"coders/pwp.c"},"signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["187533512943857346308346778587421428526","231920950740378249818910821841393386793","189095931184415899638832339113382182696","130223367870871285664262177353501464854"]},"deprecated":false},{"signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","id":"CVE-2018-16643-44e94d95","target":{"file":"coders/pict.c","function":"ReadPICTImage"},"signature_type":"Function","digest":{"length":15924,"function_hash":"203070077634815224829465299352887414190"},"deprecated":false},{"signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","id":"CVE-2018-16643-50cd2b18","target":{"file":"coders/cals.c"},"signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["10110501647741398902524607502901130633","236759063174542429855447567423183366300","163786612835840933850059127572924549249","183097169735099011941040536475853576911"]},"deprecated":false},{"digest":{"length":3644,"function_hash":"39804774322586891601766100662503627903"},"deprecated":false,"id":"CVE-2018-16643-937028a5","target":{"function":"ReadPWPImage","file":"coders/pwp.c"},"signature_type":"Function","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","signature_version":"v1"},{"digest":{"length":27570,"function_hash":"261599115229418059521409716770718207903"},"source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","id":"CVE-2018-16643-be4e267d","target":{"file":"coders/dcm.c","function":"ReadDCMImage"},"signature_type":"Function","signature_version":"v1","deprecated":false},{"digest":{"threshold":0.9,"line_hashes":["253301786758302436653254016906963793774","137873803676235522753668915003569008703","189766374457722655839155578208854704496","193869383204492240367463169495217187234","39857028589974231118589688254169858637","194895140565744107345321645471789901156","287552287390240115288847990630583350375","334331858103254438590899789618930688375","207071924030769842771473903323956025228","271583124863480110105028350825803226524","19363552495892662592930719613345772816","301481943347378010357468641588504728513","177227375233463829190662212773628464633","130223367870871285664262177353501464854","245642162127522678580172602418137411276","6558087767129097902083456721076762767","177759960853892708963081058335874578207","334065183752715418393280304446773169191"]},"deprecated":false,"id":"CVE-2018-16643-d579aed0","target":{"file":"coders/dcm.c"},"signature_type":"Line","source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","signature_version":"v1"},{"digest":{"threshold":0.9,"line_hashes":["149465407627715467110335476937850666663","231920950740378249818910821841393386793","102154160121461609014101208257639932622","239996784553475754507201816640268921186"]},"source":"https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c","id":"CVE-2018-16643-da9cdb50","target":{"file":"coders/pict.c"},"signature_type":"Line","signature_version":"v1","deprecated":false}],"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"14.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.04"}]},{"events":[{"introduced":"0"},{"last_affected":"8.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}