Vulnerability · Published Jul 30, 2025 · Assigned by GitHub_M

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

Medium 5.3

In plain English

A medium-severity uncontrolled resource consumption in ImageSharp from SixLabors. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.4%top 60.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
NuGetsixlabors.imagesharp2.1.11GHSA-rxmq-m78w-7wmc
NuGetsixlabors.imagesharp3.1.11GHSA-rxmq-m78w-7wmc

Affected products (as reported)

VendorProductVersions
SixLabors ImageSharp < 2.1.11>= 3.0.0, < 3.1.11

Weakness: CWE-400, CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References