{"id":"CVE-2016-6823","details":"Integer overflow in the BMP coder in ImageMagick before 7.0.2-10 allows remote attackers to cause a denial of service (crash) via crafted height and width values, which triggers an out-of-bounds write.","modified":"2026-04-16T06:19:46.125594268Z","published":"2017-01-18T17:59:00.467Z","related":["SUSE-SU-2016:2667-1","SUSE-SU-2016:2724-1","SUSE-SU-2016:2952-1","SUSE-SU-2016:2964-1"],"references":[{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/93158"},{"type":"FIX","url":"http://www.openwall.com/lists/oss-security/2016/09/26/3"},{"type":"FIX","url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834504"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/commit/4cc6ec8a4197d4c008577127736bf7985d632323"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/imagemagick/imagemagick","events":[{"introduced":"0"},{"fixed":"104b6c96a4d7cd159f234a8f8fa1b4649b1d7286"},{"fixed":"4cc6ec8a4197d4c008577127736bf7985d632323"}],"database_specific":{"versions":[{"introduced":"7.0.0-0"},{"fixed":"7.0.2-10"}]}},{"type":"GIT","repo":"https://github.com/imagemagick/imagemagick6","events":[{"introduced":"0"},{"fixed":"95c9bbd2b75e4f76a2f97a422f5759ded7d1be88"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"6.9.10-50"}]}}],"versions":["6.9.10-0","6.9.10-1","6.9.10-10","6.9.10-11","6.9.10-12","6.9.10-13","6.9.10-14","6.9.10-15","6.9.10-16","6.9.10-17","6.9.10-18","6.9.10-19","6.9.10-2","6.9.10-20","6.9.10-21","6.9.10-22","6.9.10-23","6.9.10-24","6.9.10-25","6.9.10-26","6.9.10-27","6.9.10-28","6.9.10-29","6.9.10-3","6.9.10-30","6.9.10-31","6.9.10-32","6.9.10-33","6.9.10-34","6.9.10-35","6.9.10-36","6.9.10-37","6.9.10-38","6.9.10-39","6.9.10-4","6.9.10-40","6.9.10-41","6.9.10-42","6.9.10-43","6.9.10-44","6.9.10-45","6.9.10-46","6.9.10-47","6.9.10-48","6.9.10-49","6.9.10-5","6.9.10-6","6.9.10-7","6.9.10-8","6.9.10-9","6.9.4-0","6.9.4-1","6.9.4-10","6.9.4-2","6.9.4-3","6.9.4-4","6.9.4-5","6.9.4-6","6.9.4-7","6.9.4-8","6.9.4-9","6.9.5-0","6.9.5-1","6.9.5-10","6.9.5-2","6.9.5-3","6.9.5-4","6.9.5-5","6.9.5-6","6.9.5-7","6.9.5-8","6.9.5-9","6.9.6-0","6.9.6-1","6.9.6-2","6.9.6-3","6.9.6-4","6.9.6-5","6.9.6-6","6.9.6-7","6.9.6-8","6.9.7-0","6.9.7-1","6.9.7-10","6.9.7-2","6.9.7-3","6.9.7-4","6.9.7-5","6.9.7-6","6.9.7-7","6.9.7-8","6.9.7-9","6.9.8-0","6.9.8-1","6.9.8-10","6.9.8-2","6.9.8-3","6.9.8-4","6.9.8-5","6.9.8-6","6.9.8-7","6.9.8-8","6.9.8-9","6.9.9-0","6.9.9-1","6.9.9-10","6.9.9-11","6.9.9-12","6.9.9-13","6.9.9-14","6.9.9-15","6.9.9-17","6.9.9-18","6.9.9-19","6.9.9-2","6.9.9-20","6.9.9-21","6.9.9-22","6.9.9-23","6.9.9-24","6.9.9-25","6.9.9-26","6.9.9-27","6.9.9-28","6.9.9-29","6.9.9-3","6.9.9-30","6.9.9-31","6.9.9-32","6.9.9-33","6.9.9-34","6.9.9-35","6.9.9-36","6.9.9-37","6.9.9-38","6.9.9-39","6.9.9-4","6.9.9-40","6.9.9-41","6.9.9-42","6.9.9-43","6.9.9-44","6.9.9-45","6.9.9-46","6.9.9-47","6.9.9-48","6.9.9-49","6.9.9-5","6.9.9-50","6.9.9-51","6.9.9-6","6.9.9-7","6.9.9-8","6.9.9-9","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-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"],"database_specific":{"vanir_signatures":[{"signature_version":"v1","signature_type":"Function","digest":{"length":15970,"function_hash":"331451543737391559657662885288521718244"},"deprecated":false,"target":{"function":"WriteBMPImage","file":"coders/bmp.c"},"source":"https://github.com/imagemagick/imagemagick/commit/4cc6ec8a4197d4c008577127736bf7985d632323","id":"CVE-2016-6823-283bf911"},{"signature_version":"v1","signature_type":"Function","digest":{"length":9732,"function_hash":"233824663533578799883944741873460280200"},"deprecated":false,"target":{"function":"WritePSDImage","file":"coders/psd.c"},"source":"https://github.com/imagemagick/imagemagick/commit/104b6c96a4d7cd159f234a8f8fa1b4649b1d7286","id":"CVE-2016-6823-6e2077b7"},{"signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/104b6c96a4d7cd159f234a8f8fa1b4649b1d7286","signature_type":"Function","deprecated":false,"digest":{"length":1810,"function_hash":"129518849084965542227393714367609967839"},"target":{"function":"FilterAdditionalLayerInformation","file":"coders/psd.c"},"id":"CVE-2016-6823-a11d4e55"},{"signature_version":"v1","signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["108740126882545814851533735595465736822","48477567520902389236647671138370929630","87977518246777124720835573222756406809","326475873969871574180186612361008149091","103316115861786808335111923209966370780","328181468267352931963705897837823121811","156806815285268351483048121514396599840","282853779392576571124339293828972945725","312083330872765293319986429520062410420","192103501246992342805196797283805010345","108950214869754331967832519788943577408","35292478060111696458058930589778156425","185792689403760769672262205046227631005","59097276997680189510529763139163968628","237934478085821480177959881169460742626","196352857121978090287577182543906081952","49653345742379819664969521811633097205","31491154282409138535382876070113104871","218661088709509303266055304047316721918","20253547151499278016004694190735579378"]},"deprecated":false,"target":{"file":"coders/psd.c"},"source":"https://github.com/imagemagick/imagemagick/commit/104b6c96a4d7cd159f234a8f8fa1b4649b1d7286","id":"CVE-2016-6823-c8cfb57f"},{"signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/4cc6ec8a4197d4c008577127736bf7985d632323","signature_type":"Line","deprecated":false,"digest":{"threshold":0.9,"line_hashes":["331351229120922227843318387926724409269","156608791804150773886299176130981230275","127202957312584428731706579271309444669","44903408570580159889295902349541781732","18425249961333903615052808494222770307","229510203313684881377808077530990127394","332794569406156583923456839957309450669","214711130510733397844507499186233695168"]},"target":{"file":"coders/bmp.c"},"id":"CVE-2016-6823-fd6a85db"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-6823.json","vanir_signatures_modified":"2026-04-11T05:00:37Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}