CVE-2024-26540 json
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.
published 2024-03-15 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-23805
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 24%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- clmg_project clmg 3.3.3
- cimg Debian 14, Debian 13 3.5.0+dfsg-1
debian advisories DEBIAN-CVE-2024-26540
- cimg Ubuntu Pro 18.04 LTS 1.7.9+dfsg-2ubuntu0.18.04.2+esm1
- cimg Ubuntu Pro 22.04 LTS 2.9.4+dfsg-3ubuntu0.1~esm1
- cimg Ubuntu Pro 24.04 LTS 3.2.1+dfsg-1ubuntu0.24.04.1~esm1
ubuntu advisories UBUNTU-CVE-2024-26540
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.31% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/GreycLab/CImg/issues/403 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected products
- clmg_project clmg
Classification
- Weakness
-
- CWE-122 Heap-based Buffer Overflow
References
-
github.com
/GreycLab/CImg/issues/403
exploit, issue-tracking, third-party-advisory
Sources
- CVE List CVE-2024-26540
- NVD CVE-2024-26540
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.