CVE-2024-32035: Memory Allocation with Excessive Size Value in SixLabors.ImageSharp
Impact
A vulnerability discovered in the ImageSharp library, where the processing of specially crafted files can lead to excessive memory usage in image decoders. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw.
This flaw can be exploited to cause a denial of service (DoS) by depleting process memory, thereby affecting applications and services that rely on ImageSharp for image processing tasks. Users and administrators are advised to update to the latest version of ImageSharp that addresses this vulnerability to mitigate the risk of exploitation.
Patches
The problem has been patched. All users are advised to upgrade to v3.1.4 or v2.1.8.
Workarounds
Before calling Image.Decode(Async), use Image.Identify to determine the image dimensions in order to enforce a limit.
References
- ImageSharp: Security Considerations - ImageSharp.Web: Securing Processing Commands
Other sources
ImageSharp is a 2D graphics API. A vulnerability discovered in the ImageSharp library, where the processing of specially crafted files can lead to excessive memory usage in image decoders. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw. This flaw can be exploited to cause a denial of service (DoS) by depleting process memory, thereby affecting applications and services that rely on ImageSharp for image processing tasks. Users and administrators are advised to update to the latest version of ImageSharp that addresses this vulnerability to mitigate the risk of exploitation. The problem has been patched in v3.1.4 and v2.1.8.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-32035?
CVE-2024-32035 is classified as a vulnerability that can cause excessive memory usage in image decoders.
How do I fix CVE-2024-32035?
To fix CVE-2024-32035, update the SixLabors.ImageSharp library to version 3.1.4 or later if you are using version 3.0.0 or earlier, or update to version 2.1.8 or later if you are using an earlier version.
What software is affected by CVE-2024-32035?
CVE-2024-32035 affects all versions of the SixLabors.ImageSharp library from 2.1.8 and below or between 3.0.0 and 3.1.4.
What type of vulnerability is CVE-2024-32035?
CVE-2024-32035 is a memory consumption vulnerability due to improper handling of specially crafted image files.
Can CVE-2024-32035 be exploited remotely?
Yes, CVE-2024-32035 can potentially be exploited remotely through the upload or processing of malicious image files.