# CVE-2024-26540: A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimglibrary::CImg<unsigned char::loadanalyze.

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-15T00:00:00.000Z
- Modified: 2026-06-17T07:17:46.973Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- clmg_project clmg: before 3.3.3
- cimg cimg: before 3.3.3

## References

- <https://github.com/GreycLab/CImg/issues/403> (exploit, issue-tracking, third-party-advisory)

## Sources

- CVE List: [CVE-2024-26540](https://www.cve.org/CVERecord?id=CVE-2024-26540), CVE Terms of Use, modified 2024-08-27
- NVD: [CVE-2024-26540](https://nvd.nist.gov/vuln/detail/CVE-2024-26540), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26540 · Whole record: https://cve.day/CVE-2024-26540.json · Rebuilt by cve.day 2026-11-25T22:58:37.579Z
