{"id":"CVE-2018-7587","aliases":["DEBIAN-CVE-2018-7587","EUVD-2018-19308","GHSA-vrf4-rm5p-c95x","MGASA-2018-0438","UBUNTU-CVE-2018-7587","USN-4039-1"],"status":"published","title":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers...","description":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers an allocation failure in load_bmp in CImg.h.","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/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.01086,"percentile":0.65507,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2018-03-01T00:00:00Z","modified":"2026-10-23T18:03:08Z","fixes":[{"ecosystem":"Ubuntu:18.04:LTS","package":"cimg","fixed_in":["1.7.9+dfsg-2ubuntu0.18.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.1+dfsg-1","3.2.1+dfsg-2","3.5.0+dfsg-1","3.5.2+dfsg-1","3.5.2+dfsg-2","4.0.4+dfsg-1"]},{"source":"osv","ecosystem":"Debian:13","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.5.2+dfsg-1","3.5.2+dfsg-1+deb13u1","3.5.2+dfsg-2","4.0.4+dfsg-1"]},{"source":"osv","ecosystem":"Debian:14","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.5.2+dfsg-1","3.5.2+dfsg-2","4.0.4+dfsg-1"]},{"source":"osv","ecosystem":"Mageia:6","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0-1.mga6"}]}],"bundled":8},{"source":"osv","ecosystem":"Mageia:6","package":"gmic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0-1.2.mga6"}]}],"bundled":8},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.4+dfsg-1build1","1.6.5+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.9+dfsg-2ubuntu0.18.04.1"}]}],"versions":["1.7.9+dfsg-2","1.7.9+dfsg-2build1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.9+dfsg-2ubuntu0.18.04.1"}]}],"versions":["1.7.9+dfsg-2","1.7.9+dfsg-2build1"],"bundled":3}],"products":[{"vendor":"cimg","product":"cimg"}],"references":[{"url":"https://github.com/xiaoqx/pocs/tree/master/cimg","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://usn.ubuntu.com/4039-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-7587"},{"url":"https://github.com/advisories/GHSA-vrf4-rm5p-c95x"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-7587","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0438.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=23700","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/6Z4EMB7JFEKIYRFRANRNDD7ZIIZP6T4Z/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/OCWBP5ZUZHIZXP7IFUEZIJG7Q3VLJXBV/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-7587","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4039-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-7587","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-7588","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-7589","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-7587","description":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers an allocation failure in load_bmp in CImg.h.","status":"published","published":"2018-03-01T21:00:00Z","modified":"2024-08-05T06:31:05.082Z","updated_at":"2026-11-02T14:35:10.313768Z"}],"euvd":[{"id":"EUVD-2018-19308","description":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers an allocation failure in load_bmp in CImg.h.","status":"published","published":"2018-03-01T21:00:00Z","modified":"2024-08-05T06:31:05Z","updated_at":"2026-11-03T02:40:05.186892Z"}],"ghsa":[{"id":"GHSA-vrf4-rm5p-c95x","title":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers...","description":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers an allocation failure in load_bmp in CImg.h.","status":"published","published":"2022-05-14T00:57:26Z","modified":"2023-02-02T05:02:55Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:51:32.364862Z"}],"nvd":[{"id":"CVE-2018-7587","description":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers an allocation failure in load_bmp in CImg.h.","status":"published","published":"2018-03-01T22:29:00.393Z","modified":"2026-06-17T02:03:25.36Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/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-119"],"updated_at":"2026-11-02T14:04:23.783914Z"}],"osv":[{"id":"CVE-2018-7587","description":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers an allocation failure in load_bmp in CImg.h.","status":"published","published":"2018-03-01T22:29:00.393Z","modified":"2026-04-16T06:23:02.137891827Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"DEBIAN-CVE-2018-7587","description":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers an allocation failure in load_bmp in CImg.h.","status":"published","published":"2018-03-01T22:29:00.393Z","modified":"2026-10-23T18:03:08.705091226Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:31.170944Z"},{"id":"UBUNTU-CVE-2018-7587","description":"An issue was discovered in CImg v.220. DoS occurs when loading a crafted bmp image that triggers an allocation failure in load_bmp in CImg.h.","status":"published","published":"2018-03-01T00:00:00Z","modified":"2026-04-22T12:02:51.792031Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:18.772093Z"},{"id":"MGASA-2018-0438","title":"Updated cimg and gmic packages fix security vulnerabilities","description":"Updated cimg and gmic packages fix security vulnerabilities:\n\nAn issue was discovered in CImg v.220. DoS occurs when loading a crafted\nbmp image that triggers an allocation failure in load_bmp in CImg.h\n(CVE-2018-7587).\n\nAn issue was discovered in CImg v.220. A heap-based buffer over-read in\nload_bmp in CImg.h occurs when loading a crafted bmp image (CVE-2018-7588).\n\nAn issue was discovered in CImg v.220. A double free in load_bmp in CImg.h\noccurs when loading a crafted bmp image (CVE-2018-7589).\n\nAn issue was discovered in CImg v.220. A heap-based buffer over-read in\nload_bmp in CImg.h occurs when loading a crafted bmp image. This is in a\n\"16 colors\" case, aka case 4 (CVE-2018-7637).\n\nAn issue was discovered in CImg v.220. A heap-based buffer over-read in\nload_bmp in CImg.h occurs when loading a crafted bmp image. This is in a\n\"256 colors\" case, aka case 8 (CVE-2018-7638).\n\nAn issue was discovered in CImg v.220. A heap-based buffer over-read in\nload_bmp in CImg.h occurs when loading a crafted bmp image. This is in a\n\"16 bits colors\" case, aka case 16 (CVE-2018-7639).\n\nAn issue was discovered in CImg v.220. A heap-based buffer over-read in\nload_bmp in CImg.h occurs when loading a crafted bmp image. This is in a\nMonochrome case, aka case 1 (CVE-2018-7640).\n\nAn issue was discovered in CImg v.220. A heap-based buffer over-read in\nload_bmp in CImg.h occurs when loading a crafted bmp image. This is in a\n\"32 bits colors\" case, aka case 32 (CVE-2018-7641).\n","status":"published","published":"2018-11-03T19:20:21Z","modified":"2026-04-16T06:22:36.18743663Z","updated_at":"2026-11-02T15:49:40.793816Z"},{"id":"USN-4039-1","title":"CImg vulnerabilities","description":"It was discovered that allocation failures could occur in CImg when loading \ncrafted bmp images. An attacker could possibly use this issue to cause a \ndenial of service. (CVE-2018-7587)\n\nIt was discovered that a heap-based buffer over-read existed in CImg when \nloading crafted bmp images. An attacker could possibly use this issue to \nexecute arbitrary code. (CVE-2018-7588)\n\nIt was discovered that a double free existed in CImg when loading crafted \nbmp images. An attacker could possibly use this issue to execute arbitrary \ncode. (CVE-2018-7589)\n","status":"published","published":"2019-06-26T20:39:40Z","modified":"2026-04-27T15:26:18.276477Z","updated_at":"2026-11-02T16:58:14.019824Z"}]}}
