Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. SixLabors.ImageSharp
  4. ›
  5. CVE-2025-54575

CVE-2025-54575: SixLabors ImageSharp Has Infinite Loop in GIF Decoder When Skipping Malformed Comment Extension Blocks

July 30, 2025 (updated July 31, 2025)

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.

References

  • github.com/SixLabors/ImageSharp
  • github.com/SixLabors/ImageSharp/commit/55e49262df9a057dff9b7807ed1b7bdb49187c3f
  • github.com/SixLabors/ImageSharp/commit/833f3ceec35af6b775950e06f03b934546cefbf6
  • github.com/SixLabors/ImageSharp/issues/2953
  • github.com/SixLabors/ImageSharp/security/advisories/GHSA-rxmq-m78w-7wmc
  • github.com/advisories/GHSA-rxmq-m78w-7wmc
  • nvd.nist.gov/vuln/detail/CVE-2025-54575

Code Behaviors & Features

Detect and mitigate CVE-2025-54575 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.11, all versions starting from 3.0.0 before 3.1.11

Fixed versions

  • 2.1.11
  • 3.1.11

Solution

Upgrade to versions 2.1.11, 3.1.11 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

nuget/SixLabors.ImageSharp/CVE-2025-54575.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:13 +0000.