CVE-2024-26540: Buffer Overflow
A heap-based buffer overflow in Clmg before 3.3.3 can occur via a crafted file to cimglibrary::CImg<unsigned char>::loadanalyze.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/cimgto a version that resolves this vulnerability.Fixed in 3.5.0+dfsg-1 - Upgrade
Upgrade
debian/cimgto a version that resolves this vulnerability.Fixed in 3.5.2+dfsg-1+deb13u1Fixed in 4.0.4+dfsg-1 - Upgrade
Upgrade
Clmgto a version that resolves this vulnerability.Fixed in 3.3.3
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26540?
CVE-2024-26540 is classified as a high-severity vulnerability due to its potential for exploitation leading to arbitrary code execution.
How do I fix CVE-2024-26540?
To mitigate CVE-2024-26540, users should upgrade to CImg version 3.3.3 or later, which includes a patch for the buffer overflow vulnerability.
What causes CVE-2024-26540?
CVE-2024-26540 is caused by a heap-based buffer overflow that can occur during the loading of crafted files in versions prior to 3.3.3 of CImg.
Which versions of CImg are affected by CVE-2024-26540?
CVE-2024-26540 affects all versions of CImg prior to 3.3.3.
Is there a workaround for CVE-2024-26540?
While upgrading is recommended, there are no known effective workarounds for CVE-2024-26540 other than avoiding the use of affected versions.