{"id":"UBUNTU-CVE-2024-26540","details":"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.","modified":"2026-04-22T14:42:33.183799Z","published":"2024-03-15T01:15:00Z","related":["USN-7437-1"],"upstream":["CVE-2024-26540"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-26540"},{"type":"REPORT","url":"https://github.com/GreycLab/CImg/issues/403"},{"type":"REPORT","url":"https://github.com/GreycLab/CImg/commit/6a97a5209987e60fcce293ea102a068a88085098"},{"type":"REPORT","url":"https://github.com/GreycLab/CImg/commit/c214dfee22a3fedcfae48fba7645f7a819cc9385"},{"type":"REPORT","url":"https://github.com/GreycLab/CImg/commit/ec6a1f2183620a90b4dcf456813e597ade791dc6"},{"type":"REPORT","url":"https://github.com/GreycLab/CImg/commit/cb9c5518905ea370954a59903ff747650c6edd40"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-26540"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7437-1"}],"affected":[{"package":{"name":"cimg","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/cimg@1.6.5+dfsg-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.4+dfsg-1build1","1.6.5+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"cimg-examples","binary_version":"1.6.5+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-26540.json"}},{"package":{"name":"cimg","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/cimg@1.7.9+dfsg-2ubuntu0.18.04.2+esm1?arch=source&distro=esm-apps/bionic"},"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"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"1.7.9+dfsg-2ubuntu0.18.04.2+esm1","binary_name":"cimg-examples"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-26540.json"}},{"package":{"name":"cimg","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/cimg@2.4.5+dfsg-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.5+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"cimg-examples","binary_version":"2.4.5+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-26540.json"}},{"package":{"name":"cimg","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/cimg@2.9.4+dfsg-3ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"cimg-examples","binary_version":"2.9.4+dfsg-3ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-26540.json"}},{"package":{"name":"cimg","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/cimg@3.2.1+dfsg-1ubuntu0.24.04.1~esm1?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1+dfsg-1ubuntu0.24.04.1~esm1"}]}],"versions":["3.2.1+dfsg-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"cimg-examples","binary_version":"3.2.1+dfsg-1ubuntu0.24.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-26540.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}