ImageSharp Triggers an Infinite Loop in its GIF Decoder When Skipping Malformed Comment Extension Blocks
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| SixLabors | ImageSharp | before 2.1.11; 3.0.0 to before 3.1.11 | 2.1.11, 3.1.11 | Patch available | CNA |
| — | SixLabors.ImageSharp (NuGet) | before 2.1.11 | 2.1.11 | Patch available | GHSA-rxmq-m78w-7wmc |
| — | SixLabors.ImageSharp (NuGet) | 3.0.0 to before 3.1.11 | 3.1.11 | Patch available | GHSA-rxmq-m78w-7wmc |
- ImageSharp VendorSixLabors Affected before 2.1.11; 3.0.0 to before 3.1.11 Fixed in 2.1.11, 3.1.11 Patch available CNA
- SixLabors.ImageSharp (NuGet) Vendor— Affected before 2.1.11 Fixed in 2.1.11 Patch available GHSA-rxmq-m78w-7wmc
- SixLabors.ImageSharp (NuGet) Vendor— Affected 3.0.0 to before 3.1.11 Fixed in 3.1.11 Patch available GHSA-rxmq-m78w-7wmc
Remediation
- Fix · CNA ImageSharp (SixLabors) Fixed in 2.1.11, 3.1.11
- Fix · GHSA-rxmq-m78w-7wmc SixLabors.ImageSharp (NuGet) Fixed in 2.1.11 Advisory →
- Fix · GHSA-rxmq-m78w-7wmc SixLabors.ImageSharp (NuGet) Fixed in 3.1.11 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-54575
- 2026-10-03 Alias added: GHSA-rxmq-m78w-7wmc
References
Other 5
- 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
- https://github.com/SixLabors/ImageSharp
More SixLabors vulnerabilities
- TI-2026-68636 Out-of-bounds write in ImageSharp CCITT fax decompression CVSS 3.1HIGH 7.5
- TI-2026-68634 Out-of-bounds write in ImageSharp TIFF CCITT Group 4 encoder CVSS 3.1HIGH 7.5
- TI-2026-68629 Out-of-bounds write in ImageSharp TIFF CCITT encoder CVSS 3.1HIGH 7.5
- TI-2025-20408 Out-of-bounds Write in SixLabors ImageSharp CVSS 3.1HIGH 7.5
- TI-2026-68635 ImageSharp BigTIFF IFD count can keep a decoder thread in a non-progressing loop CVSS 3.1MEDIUM 5.3
- TI-2026-68633 Excessive memory allocation in ImageSharp ICC CLUT parsing CVSS 3.1MEDIUM 5.3
Sources
- CVE-2025-54575 · CVE Program
- CVE-2025-54575 · NVD
- FIRST EPSS
- GHSA-rxmq-m78w-7wmc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences