CVE-2026-106116: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in SixLabors ImageSharp
Description
ImageSharp is a 2D graphics library. From 2.0.0 until 4.1.2, ExifReader.ReadValues64 trusts the 64-bit BigTIFF IFD entry count and iterates once per declared entry. When fewer than 20 bytes remain, ExifReader.ReadValue64 returns without advancing the stream or terminating the outer loop, so a small malformed BigTIFF can keep one decoder thread executing for an attacker-controlled duration. This report does not claim worker-pool exhaustion. This issue is fixed in version 4.1.2.
CVSS v3.1
Score 5.3medium
Affected software
SixLabors
ImageSharp
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ImageSharp versions >=2.0.0 and <4.1.2 contain a loop with an unreachable exit condition (CWE-835) in the ExifReader.ReadValues64 method. The method trusts the 64-bit BigTIFF IFD entry count and iterates once per declared entry. When fewer than 20 bytes remain in the stream, ReadValue64 returns without advancing the stream or terminating the outer loop, causing an infinite loop. This allows a small malformed BigTIFF file to keep one decoder thread executing for an attacker-controlled duration. The vulnerability is resolved in version 4.1.2.
Potential Impact
An attacker can supply a malformed BigTIFF file that triggers an infinite loop in the ExifReader.ReadValues64 function, causing a decoder thread to remain active indefinitely. This results in a denial of service condition by tying up processing resources. There is no impact on confidentiality or integrity, and no known exploitation in the wild.
Mitigation Recommendations
Upgrade ImageSharp to version 4.1.2 or later, where this infinite loop vulnerability is fixed. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-06T15:33:55.333Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac538122cdf04f656cdddeb
Added to database: 10/06/2026, 18:04:02 UTC
Last enriched: 10/06/2026, 18:18:34 UTC
Last updated: 10/06/2026, 19:04:17 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.