SixLabors ImageSharp has Excessive Memory Allocation in Gif Decoder
Moderate severity
GitHub Reviewed
Published
Jul 22, 2024
in
SixLabors/ImageSharp
•
Updated Sep 11, 2024
Package
Affected versions
< 2.1.9
>= 3.0.0, < 3.1.5
Patched versions
2.1.9
3.1.5
Description
Published by the National Vulnerability Database
Jul 22, 2024
Published to the GitHub Advisory Database
Jul 22, 2024
Reviewed
Jul 22, 2024
Last updated
Sep 11, 2024
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)
, useImage.Identify
to determine the image dimensions in order to enforce a limit.References
Are there any links users can visit to find out more?
References