Loading0%
SUBZER0
LIVE
Alerts

CVE-2026-106117

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

Archived. This CVE has left SubZer0's live 30-day window. Signals below are as of 2026-11-06; check the references for anything newer.

  • Severity: High
  • CVSS 7.5
  • EPSS 0.39%
  • Public exploit
  • P2 · This week

Why P2: this week.

Description

## Summary When decoding a fax-compressed strip TIFF (Compression=3 / Group 3 1D, or Compression=2 / Modified Huffman), the CCITT decompressors write decoded runs through `BitWriterUtils.WriteBits/WriteBit/WriteZeroBit`, which advance and write bits via `Unsafe.Add` with read-modify-write semantics — **without ever comparing the write position against the target buffer length**. The strip buffer is sized `ImageWidth × RowsPerStrip` (8 bytes in the PoC), but two independent defects let an attacker write tens of millions of bits past it: (a) T4 only increments `rowsWritten` when an EOL code is read, and one `ReadNextRun` accumulates unlimited makeup codes (+2560 px per 12-bit code) into a single `RunLength` that `WritePixelRun` then writes in one shot; (b) Modified Huffman writes **before** validating (`pixelsWritten > Width` is checked at :90-93, after the write at :56-63), so the overflow completes even though an exception is thrown later. One crafted ~90 KB file writes ~19.2 MB linearly past an 8-byte buffer and deterministically kills the process; the write offset and length are fully attacker-controlled (classic heap-corruption primitive on the managed heap). Verified at commit `5cd4d0d26a82a9549f297a237aea9cf665bddff8` (main; latest release v4.1.0, the supported major). A related tiled-path variant (tile-buffer width mismatch) was reported separately as GHSA-v76p-62qx-wwq2 — this report covers the distinct strip-path root cause. ## Details Root cause: the bit-writing…

Affected products

  • nuget ImageSharp >= 3.0.0, < 3.2.0; first patched: 3.2.0
  • nuget ImageSharp >= 4.0.0, < 4.1.1; first patched: 4.1.1

References

Browse more

NuGet packagesWeek 41, 2026 recap

Published 2026-10-06 · sources: GitHub Advisory Database