Uncontrolled Resource Consumption Affecting sixlabors.imagesharp package, versions [,2.1.9) [3.0.0,3.1.5)
Threat Intelligence
EPSS
0.33% (72nd
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-DOTNET-SIXLABORSIMAGESHARP-7547407
- published 23 Jul 2024
- disclosed 22 Jul 2024
- credit Brecht Carlier
Introduced: 22 Jul 2024
CVE-2024-41132 Open this link in a new tabHow to fix?
Upgrade SixLabors.ImageSharp
to version 2.1.9, 3.1.5 or higher.
Overview
Affected versions of this package are vulnerable to Uncontrolled Resource Consumption through the Gif decoder. An attacker can cause the application to consume excessive memory resources by processing specially crafted image files.
Workaround
This vulnerability can be mitigated by using Image.Identify
before calling Image.Decode(Async)
to determine the image dimensions and enforce a limit.