CVE-2024-26540: CImg · n/a
Affects CImgSource CVE Database V5
Not known to be exploited · CVSS 7.8 High : upgrade to 3.3.3 soon.
Data as of 26 Oct 2026, 06:26 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 3.3.3
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
Weaponised: 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 2026-10-26.
What to do
Upgrade greyclab/CImg to 3.3.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubgreyclab/CImgpkg:github/greyclab/CImgOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-26540, organizations should prioritize upgrading the CImg library to version 3.3.3 or later once the patch is officially released. Until then, implement strict input validation and sanitization to reject malformed or suspicious image files before processing. Employ sandboxing or containerization techniques to isolate image processing tasks, limiting the potential damage from exploitation. Restrict local user permissions to minimize the impact of arbitrary code execution. Educate users about the risks of opening untrusted image files and enforce policies to avoid processing images from unknown or untrusted sources. Monitor systems for unusual behavior or crashes related to image processing components. Additionally, consider using alternative, well-maintained image processing libraries with robust security track records if immediate patching is not feasible. Regularly review and update software dependencies to reduce exposure to similar vulnerabilities.
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.