CVE-2024-41132: SixLabors ImageSharp Allows Excessive Memory Allocation in Gif Decoder
Impact What kind of vulnerability is it? Who is impacted?
A vulnerability discovered in the ImageSharp library, where the processing of specially crafted files can lead to excessive memory usage in the Gif decoder. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw.
Patches Has the problem been patched? What versions should users upgrade to?
The problem has been patched. All users are advised to upgrade to v3.1.5 or v2.1.9.
Workarounds Is there a way for users to fix or remediate the vulnerability without upgrading?
Before calling Image.Decode(Async), use Image.Identify to determine the image dimensions in order to enforce a limit.
References Are there any links users can visit to find out more? - https://github.com/SixLabors/ImageSharp/pull/2759 - https://github.com/SixLabors/ImageSharp/pull/2764 - https://github.com/SixLabors/ImageSharp/pull/2770 - 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 the Gif decoder. The vulnerability is triggered when ImageSharp attempts to process image files that are designed to exploit this flaw. All users are advised to upgrade to v3.1.5 or v2.1.9.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-41132?
CVE-2024-41132 is considered a high severity vulnerability due to its potential for excessive memory usage.
Who is affected by CVE-2024-41132?
Users of the ImageSharp library versions prior to 3.1.5 and 2.1.9 are affected by CVE-2024-41132.
How do I fix CVE-2024-41132?
To fix CVE-2024-41132, you should upgrade ImageSharp to version 3.1.5 or 2.1.9.
What kind of vulnerability is CVE-2024-41132?
CVE-2024-41132 is a memory consumption vulnerability that affects the Gif decoder in the ImageSharp library.
What could be the impact of CVE-2024-41132 on my application?
The impact of CVE-2024-41132 could lead to application crashes or degraded performance due to excessive memory usage.