Skip to main content

CVE-2026-106116: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in SixLabors ImageSharp

0
Medium
VulnerabilityCVE-2026-106116cvecve-2026-106116cwe-835
Published: 10/06/2026 (10/06/2026, 17:51:36 UTC)
Source: CVE Database V5
Vendor/Project: SixLabors
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

SixLabors

ImageSharp

Affected versions
>=2.0.0 <4.1.2
GitHub Actionsmore threats →ai
sixlabors/ImageSharp
pkg:github/sixlabors/ImageSharp

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/06/2026, 18:18:34 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses