{"id":"CVE-2018-11625","aliases":["DEBIAN-CVE-2018-11625","EUVD-2018-3649","GHSA-3ww7-w2h2-5c4x","SUSE-SU-2018:2043-1","UBUNTU-CVE-2018-11625","USN-3681-1"],"status":"published","title":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a...","description":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a heap-based buffer over-read via a crafted file.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02237,"percentile":0.82925,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2018-05-31T00:00:00Z","modified":"2026-10-23T18:03:46Z","fixes":[{"ecosystem":"Debian:12","package":"imagemagick","fixed_in":["8:6.9.10.2+dfsg-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"imagemagick","fixed_in":["8:6.9.10.2+dfsg-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"imagemagick","fixed_in":["8:6.9.10.2+dfsg-2"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"imagemagick","fixed_in":["8:6.9.7.4+dfsg-16ubuntu6.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"imagemagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8:6.9.10.2+dfsg-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"imagemagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8:6.9.10.2+dfsg-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"imagemagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8:6.9.10.2+dfsg-2"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15","package":"ImageMagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.0.7.34-3.9.1"}]}],"bundled":5},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15","package":"ImageMagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.0.7.34-3.9.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"imagemagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8:6.9.7.4+dfsg-16ubuntu6.2"}]}],"versions":["8:6.9.7.4+dfsg-16ubuntu2","8:6.9.7.4+dfsg-16ubuntu3","8:6.9.7.4+dfsg-16ubuntu4","8:6.9.7.4+dfsg-16ubuntu5","8:6.9.7.4+dfsg-16ubuntu6"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"imagemagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8:6.7.7.10-6ubuntu3.11"}]}],"versions":["8:6.7.7.10-5ubuntu3","8:6.7.7.10-5ubuntu4","8:6.7.7.10-6ubuntu1","8:6.7.7.10-6ubuntu2","8:6.7.7.10-6ubuntu3","8:6.7.7.10-6ubuntu3.1","8:6.7.7.10-6ubuntu3.2","8:6.7.7.10-6ubuntu3.3","8:6.7.7.10-6ubuntu3.4","8:6.7.7.10-6ubuntu3.5","8:6.7.7.10-6ubuntu3.6","8:6.7.7.10-6ubuntu3.7","8:6.7.7.10-6ubuntu3.8","8:6.7.7.10-6ubuntu3.9"],"bundled":124},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"imagemagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8:6.8.9.9-7ubuntu5.11"}]}],"versions":["8:6.8.9.9-5ubuntu2","8:6.8.9.9-6","8:6.8.9.9-6build1","8:6.8.9.9-7","8:6.8.9.9-7ubuntu1","8:6.8.9.9-7ubuntu2","8:6.8.9.9-7ubuntu3","8:6.8.9.9-7ubuntu4","8:6.8.9.9-7ubuntu5","8:6.8.9.9-7ubuntu5.1","8:6.8.9.9-7ubuntu5.2","8:6.8.9.9-7ubuntu5.3","8:6.8.9.9-7ubuntu5.4","8:6.8.9.9-7ubuntu5.5","8:6.8.9.9-7ubuntu5.6","8:6.8.9.9-7ubuntu5.7","8:6.8.9.9-7ubuntu5.8","8:6.8.9.9-7ubuntu5.9"],"bundled":124},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"imagemagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8:6.9.7.4+dfsg-16ubuntu6.2"}]}],"versions":["8:6.9.7.4+dfsg-16ubuntu2","8:6.9.7.4+dfsg-16ubuntu3","8:6.9.7.4+dfsg-16ubuntu4","8:6.9.7.4+dfsg-16ubuntu5","8:6.9.7.4+dfsg-16ubuntu6"],"bundled":124}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"imagemagick","product":"imagemagick"}],"references":[{"url":"https://usn.ubuntu.com/3681-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/ImageMagick/ImageMagick/issues/1156","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-11625"},{"url":"https://github.com/advisories/GHSA-3ww7-w2h2-5c4x"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-11625","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20182043-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1094742","tags":["report"]},{"url":"https://bugzilla.suse.com/1094745","tags":["report"]},{"url":"https://bugzilla.suse.com/1095812","tags":["report"]},{"url":"https://bugzilla.suse.com/1096200","tags":["report"]},{"url":"https://bugzilla.suse.com/1096203","tags":["report"]},{"url":"https://bugzilla.suse.com/1098545","tags":["report"]},{"url":"https://bugzilla.suse.com/1098546","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2018-10805","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-11624","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-11625","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-12599","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-12600","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-11625","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3681-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-11625","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-10995","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-11352","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-11533","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-11535","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-11537","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-11639","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-11640","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12140","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12418","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12429","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12430","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12431","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12432","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12433","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12435","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12563","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12587","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12640","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12643","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12644","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12670","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12674","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12691","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12692","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12693","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12875","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12877","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12983","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13058","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13059","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13060","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13061","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13062","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13131","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13134","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13139","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13142","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13143","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13144","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13145","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13758","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13768","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-13769","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14060","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14172","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14173","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14174","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14175","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14224","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14249","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14325","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14326","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14341","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14342","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14343","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14400","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14505","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14531","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14532","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14533","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14607","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14624","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14625","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14626","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14682","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14684","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14739","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14741","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-14989","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-15015","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-15016","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-15017","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-15032","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-15033","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-15217","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-15218","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-15277","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-15281","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-16546","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17499","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17504","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17680","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17681","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17682","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17879","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17881","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17882","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17884","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17885","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17886","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17887","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17914","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-17934","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18008","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18022","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18027","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18028","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18029","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18209","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18211","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18251","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18252","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18254","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18271","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-18273","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-1000445","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-1000476","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-5246","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-5247","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-5248","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-5357","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-5358","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-6405","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-7443","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-8804","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-8960","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-9133","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-10177","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-10804","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-10805","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-11251","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-11655","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-11656","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-11625","description":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a heap-based buffer over-read via a crafted file.","status":"published","published":"2018-05-31T16:00:00Z","modified":"2024-08-05T08:17:08.409Z","updated_at":"2026-11-02T14:35:09.139955Z"}],"euvd":[{"id":"EUVD-2018-3649","description":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a heap-based buffer over-read via a crafted file.","status":"published","published":"2018-05-31T16:00:00Z","modified":"2024-08-05T08:17:08Z","updated_at":"2026-11-03T02:39:54.984528Z"}],"ghsa":[{"id":"GHSA-3ww7-w2h2-5c4x","title":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a...","description":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a heap-based buffer over-read via a crafted file.","status":"published","published":"2022-05-13T01:49:18Z","modified":"2023-02-02T05:01:49Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:51:16.189266Z"}],"nvd":[{"id":"CVE-2018-11625","description":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a heap-based buffer over-read via a crafted file.","status":"published","published":"2018-05-31T16:29:00.753Z","modified":"2026-06-17T01:36:16.18Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:04:28.483469Z"}],"osv":[{"id":"CVE-2018-11625","description":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a heap-based buffer over-read via a crafted file.","status":"published","published":"2018-05-31T16:29:00.753Z","modified":"2026-03-14T02:47:21.317764Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:07.934182Z"},{"id":"DEBIAN-CVE-2018-11625","description":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a heap-based buffer over-read via a crafted file.","status":"published","published":"2018-05-31T16:29:00.753Z","modified":"2026-10-23T18:03:46.80835639Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:29.988046Z"},{"id":"UBUNTU-CVE-2018-11625","description":"In ImageMagick 7.0.7-37 Q16, SetGrayscaleImage in the quantize.c file allows attackers to cause a heap-based buffer over-read via a crafted file.","status":"published","published":"2018-05-31T00:00:00Z","modified":"2026-04-22T11:42:42.449228Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:16.544091Z"},{"id":"SUSE-SU-2018:2043-1","title":"Security update for ImageMagick","description":"This update for ImageMagick fixes the following issues:\n\nThe following security vulnerabilities were fixed:\n\n- CVE-2018-11625: Fixed heap-based buffer over-read in SetGrayscaleImage in the\n  quantize.c file, which allowed remote attackers to cause buffer over-read via\n  a crafted file. (bsc#1096200)\n- CVE-2018-11624: Fixed a use-after-free issue in the ReadMATImage function in\n  coders/mat.c. (bsc#1096203)\n- CVE-2018-10805: Fixed several memory leaks in bgr.c, rgb.c, cmyk.c, gray.c,\n  and ycbcr.c (bsc#1095812)\n- CVE-2018-12600: The ReadDIBImage and WriteDIBImage functions allowed\n  attackers to cause an out of bounds write via a crafted file (bsc#1098545).\n- CVE-2018-12599: The ReadBMPImage and WriteBMPImage fucntions allowed\n  attackers to cause an out of bounds write via a crafted file (bsc#1098546).\n\nThe following other changes were made:\n\n- Fix -gamma issues in special cases. (bsc#1094745, bsc#1094742)\n","status":"published","published":"2018-07-23T14:02:48Z","modified":"2026-02-04T03:56:32.399212Z","updated_at":"2026-11-02T15:53:44.972817Z"},{"id":"USN-3681-1","title":"imagemagick vulnerabilities","description":"It was discovered that ImageMagick incorrectly handled certain malformed\nimage files. If a user or automated system using ImageMagick were tricked\ninto opening a specially crafted image, an attacker could exploit this to\ncause a denial of service or possibly execute code with the privileges of\nthe user invoking the program.\n","status":"published","published":"2018-06-12T11:40:14Z","modified":"2026-04-22T09:46:51.738947Z","updated_at":"2026-11-02T16:58:13.496563Z"}]}}
