CVE-2024-26540: Clmg · Heap-based Buffer Overflow
Affects cimgSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 1.7.9+dfsg-2ubuntu0.18.04.2+esm1 : patch cimg soon.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 24% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.7.9+dfsg-2ubuntu0.18.04.2+esm1, 2.9.4+dfsg-3ubuntu0.1~esm1, 3.2.1+dfsg-1ubuntu0.24.04.1~esm1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 15 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade the Ubuntu cimg to 1.7.9+dfsg-2ubuntu0.18.04.2+esm1 (package) or 2.9.4+dfsg-3ubuntu0.1~esm1 (package) or 3.2.1+dfsg-1ubuntu0.24.04.1~esm1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 24.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Ubuntu 16.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg<unsigned char>::_load_analyze.
References
- ubuntu.com/security/CVE-2024-26540 (opens in a new tab)
- github.com/GreycLab/CImg/issues/403 (opens in a new tab)
- github.com/GreycLab/CImg/commit/6a97a5209987e60fcce293ea102a068a88085098 (opens in a new tab)
- github.com/GreycLab/CImg/commit/c214dfee22a3fedcfae48fba7645f7a819cc9385 (opens in a new tab)
- github.com/GreycLab/CImg/commit/ec6a1f2183620a90b4dcf456813e597ade791dc6 (opens in a new tab)
- github.com/GreycLab/CImg/commit/cb9c5518905ea370954a59903ff747650c6edd40 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-26540 (opens in a new tab)
- ubuntu.com/security/notices/USN-7437-1 (opens in a new tab)