CVE-2024-26540: A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimg_library::CImg<unsigned
CVE-2024-26540 is a high-severity flaw (CVSS 7.8) affecting cimg. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.3% (top 76%) |
| CISA exploited list | No |
| Weakness | CWE-122 |
| Published | 2024-03-15 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-26540?
cimg: upgrade to 3.3.3. Exact commands for each OS are on this page.
Is CVE-2024-26540 being exploited?
CVE-2024-26540 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-26540 affect?
CVE-2024-26540 affects cimg. Severity is high (CVSS 7.8). 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.
How urgent is CVE-2024-26540?
Priority 38/100. High severity; Public exploit reference
Related CVEs
- CVE-2023-41484 HIGH 8.1 DOWNGRADE An issue in cimg.eu Cimg Library v2.9.3 allows an attacker to obtain sensitive information via a crafted JPEG