CVE-2026-106117

ImageSharp: CCITT fax decompression (T4/Modified Huffman): unbounded WriteBits overflows strip buffer — heap OOB write in SixLabors.ImageSharp

Published Oct 6, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
ImageSharp is a 2D graphics library. From 3.0.0 until 4.1.1, decoding a strip TIFF using CCITT Group 3 or Modified Huffman compression can pass attacker-expanded runs to BitWriterUtils.WriteBits without first checking the current row width. T4TiffCompression.WritePixelRun can accumulate oversized makeup-code runs, and ModifiedHuffmanTiffCompression.Decompress validates the width only after writing. The unchecked writes can overflow the strip buffer, corrupt heap memory, and terminate the process. This strip-path vulnerability is distinct from the tiled decompressor-width mismatch. This issue is fixed in version 4.1.1.

Analysis

AI-generated

Technical impact

ImageSharp provides 2‑D graphics support and includes a TIFF decoder. Between versions 3.0.0 and 4.1.1 the library allows a strip of a TIFF image to be decoded using CCITT Group 3 or Modified Huffman compression. Attackers can craft a TIFF file that expands run‑length entries so that the BitWriterUtils.WriteBits routine writes an unchecked number of bits, overflowing the strip buffer and corrupting adjacent heap memory. The corruption can terminate the process and could also lead to denial of service.

Affected Systems

The vulnerability affects SixLabors ImageSharp versions 3.0.0 through 4.1.1. Updated releases starting with 4.1.1 contain a patch that validates run lengths before writing bits.

Risk and Exploitability

The CVSS score of 7.5 signals high severity, but no EPSS data are available and the vulnerability is not listed in CISA KEV. The likely attack vector is a file-based exploit: an attacker supplies a malicious TIFF image to an application that uses the affected ImageSharp library. The vulnerability can be triggered when the application attempts to decode the image, potentially causing a crash or, if memory corruption is exploited, denial of service. The lack of empirical exploitation data combined with the high CVSS suggests that this issue poses a real risk to applications that process untrusted TIFF files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to SixLabors ImageSharp v4.1.1 or newer, which contains the validation fix for run‑length writes.
  • If upgrading is not immediately possible, ensure that any TIFF images from untrusted sources are validated or sanitized by a separate, trusted component before being passed to ImageSharp.
  • Stay alert for subsequent patches from SixLabors and apply them promptly; run the image‑processing code in a sandboxed environment with ASLR and DEP enabled to mitigate the impact of a potential heap corruption attack.

Generated by OpenCVE AI on October 6, 2026 at 20:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jj3q-cwqj-842r ImageSharp: CCITT fax decompression (T4/Modified Huffman): unbounded WriteBits overflows strip buffer — heap OOB write in SixLabors.ImageSharp
History
Type Values Removed Values Added
CPEs cpe:2.3:a:sixlabors:imagesharp:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Sixlabors
Sixlabors imagesharp
Vendors & Products Sixlabors
Sixlabors imagesharp
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ImageSharp is a 2D graphics library. From 3.0.0 until 4.1.1, decoding a strip TIFF using CCITT Group 3 or Modified Huffman compression can pass attacker-expanded runs to BitWriterUtils.WriteBits without first checking the current row width. T4TiffCompression.WritePixelRun can accumulate oversized makeup-code runs, and ModifiedHuffmanTiffCompression.Decompress validates the width only after writing. The unchecked writes can overflow the strip buffer, corrupt heap memory, and terminate the process. This strip-path vulnerability is distinct from the tiled decompressor-width mismatch. This issue is fixed in version 4.1.1.
Title ImageSharp: CCITT fax decompression (T4/Modified Huffman): unbounded WriteBits overflows strip buffer — heap OOB write in SixLabors.ImageSharp
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 6, 2026, 6:20 PM
Reserved
Oct 6, 2026, 3:33 PM
Status
Analyzed
Published
Oct 6, 2026, 6:16 PM
Modified
Oct 27, 2026, 8:11 PM