Vulnerability · Published Jul 22, 2024 · Assigned by GitHub_M
CVE-2024-41132SixLabors ImageSharp Allows Excessive Memory Allocation in Gif Decoder
Medium 5.3
In plain English
A medium-severity security flaw in ImageSharp from SixLabors. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| NuGet | sixlabors.imagesharp | 2.1.9 | GHSA-qxrv-gp6x-rc23 |
| NuGet | sixlabors.imagesharp | 3.1.5 | GHSA-qxrv-gp6x-rc23 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| SixLabors | ImageSharp | < 2.1.9>= 3.0.0, < 3.1.5 |
Weakness: CWE-789 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-qxrv-gp6x-rc23 x_refsource_CONFIRM
- https://github.com/SixLabors/ImageSharp/pull/2759 x_refsource_MISC
- https://github.com/SixLabors/ImageSharp/pull/2764 x_refsource_MISC
- https://github.com/SixLabors/ImageSharp/pull/2770 x_refsource_MISC
- https://github.com/SixLabors/ImageSharp/commit/59de13c8cc47f2b402e2c43aa7024511d029d515 x_refsource_MISC
- https://github.com/SixLabors/ImageSharp/commit/9816ca45016c5d3859986f3c600e8934bc450a56 x_refsource_MISC
- https://github.com/SixLabors/ImageSharp/commit/b496109051cc39feee1f6cde48fca6481de17f9a x_refsource_MISC
- https://docs.sixlabors.com/articles/imagesharp.web/processingcommands.html#securing-processing-commands x_refsource_MISC
- https://docs.sixlabors.com/articles/imagesharp/security.html x_refsource_MISC