Skip to content

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

MediumCVSS 5.3 EPSS 0.82%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
nuget SixLabors.ImageSharp(NuGet) < 2.1.11; = 1.0.0; = 1.0.0-beta0001; = 1.0.0-beta0002 +39 more 2.1.11, 3.1.11 Fixed
SixLabors ImageSharp = < 2.1.11; = >= 3.0.0, < 3.1.11 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
nuget SixLabors.ImageSharp(NuGet) < 2.1.11 2.1.11
nuget SixLabors.ImageSharp(NuGet) = 1.0.0 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-beta0001 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-beta0002 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-beta0003 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-beta0004 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-beta0005 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-beta0006 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-beta0007 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-rc0001 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-rc0002 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.0-rc0003 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.1 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.2 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.3 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 1.0.4 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.0.0 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.0 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.1 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.10 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.2 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.3 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.4 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.5 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.6 No fix listed
Show 20 more
ProductAffected versionsFixed in
nuget SixLabors.ImageSharp(NuGet) = 2.1.7 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.8 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 2.1.9 No fix listed
nuget SixLabors.ImageSharp(NuGet) >= 3.0.0, < 3.1.11 3.1.11
nuget SixLabors.ImageSharp(NuGet) = 3.0.0 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.0.1 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.0.2 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.0 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.1 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.10 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.2 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.3 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.4 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.5 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.6 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.7 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.8 No fix listed
nuget SixLabors.ImageSharp(NuGet) = 3.1.9 No fix listed
SixLabors ImageSharp = < 2.1.11 No fix listed
SixLabors ImageSharp = >= 3.0.0, < 3.1.11 No fix listed

References