{"id":"CVE-2024-26540","aliases":["DEBIAN-CVE-2024-26540","EUVD-2024-23805","GHSA-c2c4-4544-w949","MGASA-2025-0169","UBUNTU-CVE-2024-26540","USN-7437-1"],"status":"published","title":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library:...","description":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg\u003cunsigned char\u003e::_load_analyze.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-09","score":0.00314,"percentile":0.24561,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-122"],"published":"2024-03-15T00:00:00Z","modified":"2026-11-02T12:01:16Z","fixes":[{"ecosystem":"Debian:13","package":"cimg","fixed_in":["3.5.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"cimg","fixed_in":["3.5.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Mageia:9","package":"cimg","fixed_in":["3.2.5-1.1.mga9"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"cimg","fixed_in":["1.7.9+dfsg-2ubuntu0.18.04.2+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"cimg","fixed_in":["2.9.4+dfsg-3ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"cimg","fixed_in":["3.2.1+dfsg-1ubuntu0.24.04.1~esm1"],"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"},{"fixed":"3.5.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Mageia:9","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.5-1.1.mga9"}]}]},{"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:Pro:18.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.9+dfsg-2ubuntu0.18.04.2+esm1"}]}],"versions":["1.7.9+dfsg-2","1.7.9+dfsg-2build1","1.7.9+dfsg-2ubuntu0.18.04.1","1.7.9+dfsg-2ubuntu0.18.04.2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.5+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.4+dfsg-3ubuntu0.1~esm1"}]}],"versions":["2.9.4+dfsg-2","2.9.4+dfsg-3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1+dfsg-1ubuntu0.24.04.1~esm1"}]}],"versions":["3.2.1+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.9+dfsg-2ubuntu0.18.04.2+esm1"}]}],"versions":["1.7.9+dfsg-2","1.7.9+dfsg-2build1","1.7.9+dfsg-2ubuntu0.18.04.1","1.7.9+dfsg-2ubuntu0.18.04.2"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.4+dfsg-3ubuntu0.1~esm1"}]}],"versions":["2.9.4+dfsg-2","2.9.4+dfsg-3"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1+dfsg-1ubuntu0.24.04.1~esm1"}]}],"versions":["3.2.1+dfsg-1"],"bundled":2}],"products":[{"vendor":"cimg","product":"cimg"},{"vendor":"clmg_project","product":"clmg"}],"references":[{"url":"https://github.com/GreycLab/CImg/issues/403","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26540","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-c2c4-4544-w949"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26540.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-26540","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2025-0169.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=34214","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7437-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-26540","tags":["report"]},{"url":"https://github.com/GreycLab/CImg/commit/6a97a5209987e60fcce293ea102a068a88085098","tags":["report"]},{"url":"https://github.com/GreycLab/CImg/commit/c214dfee22a3fedcfae48fba7645f7a819cc9385","tags":["report"]},{"url":"https://github.com/GreycLab/CImg/commit/ec6a1f2183620a90b4dcf456813e597ade791dc6","tags":["report"]},{"url":"https://github.com/GreycLab/CImg/commit/cb9c5518905ea370954a59903ff747650c6edd40","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-26540","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2022-1325","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-26540","description":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg\u003cunsigned char\u003e::_load_analyze.","status":"published","published":"2024-03-15T00:00:00Z","modified":"2024-08-27T17:41:34.734Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T14:33:59.884489Z"}],"euvd":[{"id":"EUVD-2024-23805","description":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg\u003cunsigned char\u003e::_load_analyze.","status":"published","published":"2024-03-15T00:00:00Z","modified":"2024-08-27T17:41:34Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:56:10.428773Z"}],"ghsa":[{"id":"GHSA-c2c4-4544-w949","title":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library:...","description":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg\u003cunsigned char\u003e::_load_analyze.","status":"published","published":"2024-03-15T03:30:52Z","modified":"2024-08-27T21:32:17Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T14:58:06.582466Z"}],"nvd":[{"id":"CVE-2024-26540","description":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg\u003cunsigned char\u003e::_load_analyze.","status":"published","published":"2024-03-15T01:15:58.833Z","modified":"2026-06-17T07:17:46.973Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T14:09:40.831473Z"}],"osv":[{"id":"CVE-2024-26540","description":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg\u003cunsigned char\u003e::_load_analyze.","status":"published","published":"2024-03-15T00:00:00Z","modified":"2026-10-28T10:36:26.84198116Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:39.244433Z"},{"id":"DEBIAN-CVE-2024-26540","description":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg\u003cunsigned char\u003e::_load_analyze.","status":"published","published":"2024-03-15T01:15:58.833Z","modified":"2026-11-02T12:01:16.682716124Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:41.849198Z"},{"id":"UBUNTU-CVE-2024-26540","description":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg\u003cunsigned char\u003e::_load_analyze.","status":"published","published":"2024-03-15T01:15:00Z","modified":"2026-04-22T14:42:33.183799Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:44.862765Z"},{"id":"MGASA-2025-0169","title":"Updated cimg packages fix security vulnerability","description":"A heap-based buffer overflow in Clmg before 3.3.3 can occur via a\ncrafted file to cimg_library::CImg\u003cunsigned char\u003e::_load_analyze.\n(CVE-2024-26540)\n","status":"published","published":"2025-05-28T19:45:40Z","modified":"2026-04-16T04:44:12.008654528Z","updated_at":"2026-11-02T15:49:43.178336Z"},{"id":"USN-7437-1","title":"cimg vulnerabilities","description":"It was discovered that the CImg library did not properly check the size\nof images before loading them. An attacker could possibly use this issue\nto cause a denial of service. This issue only affected Ubuntu 22.04 LTS.\n(CVE-2022-1325)\n\nIt was discovered that the CImg library did not correctly handle certain\nmemory operations, which could lead to a buffer overflow. An attacker\ncould possibly use this issue to execute arbitrary code or cause a denial\nof service. (CVE-2024-26540)\n","status":"published","published":"2025-04-15T02:04:00Z","modified":"2026-04-27T17:54:37.256565Z","updated_at":"2026-11-02T16:58:19.988474Z"}]}}
