CVE-2024-26540 Memory corruption in n/a
A heap-based buffer overflow in the CImg library allows attackers to execute arbitrary code or cause denial of service via a crafted file.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-26540?
CVE-2024-26540 is a high-severity memory corruption vulnerability in n/a, published on 15 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-122
Which versions are affected by CVE-2024-26540?
It affects 1 product.
Products include Cimg Cimg.
How do I fix CVE-2024-26540?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-26540 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-26540 exists.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2024-26540, GHSA-c2c4-4544-w949, MGASA-2025-0169, UBUNTU-CVE-2024-26540.