Vulnerability · Published Apr 15, 2024 · Assigned by GitHub_M
CVE-2024-32035Memory Allocation with Excessive Size Value in SixLabors.ImageSharp
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.6% (higher than 50% 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 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| NuGet | sixlabors.imagesharp | 2.1.8 | GHSA-g85r-6x2q-45w7 |
| NuGet | sixlabors.imagesharp | 3.1.4 | GHSA-g85r-6x2q-45w7 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| SixLabors | ImageSharp | < 2.1.8>= 3.0.0, < 3.1.4 |
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-g85r-6x2q-45w7 x_refsource_CONFIRM
- https://github.com/SixLabors/ImageSharp/commit/b6b08ac3e7cea8da5ac1e90f7c0b67dd254535c3 x_refsource_MISC
- https://github.com/SixLabors/ImageSharp/commit/f21d64188e59ae9464ff462056a5e29d8e618b27 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