Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. SixLabors.ImageSharp
  4. ›
  5. CVE-2026-106118

CVE-2026-106118: ImageSharp: Tiled fax TIFF: tile buffer sized by TileWidth but fax decompressor writes scanlines of ImageWidth — heap OOB write

October 7, 2026 (updated October 26, 2026)

When decoding a tiled TIFF with fax compression (T4/T6/MH), DecodeTilesChunky allocates each tile buffer from TileWidth (ceil(TileWidth*bpp/8)*TileLength bytes) but constructs the fax decompressor with frame.Width: TiffDecompressorsFactory ignores the isTiled/tileWidth/tileHeight parameters entirely. The T4/T6/MH decompressors treat the full image width as the scanline length and advance (and really write, via read-modify-write bit ops) frame.Width bits per row, with no bounds check against the tile buffer. The very first tile therefore writes linearly out of bounds — about ImageWidth/8 bytes per row × TileLength rows into a TileWidth-sized buffer. With ImageWidth=4,000,000, TileWidth=16, TileLength=16 this writes ~2 MB past a 32-byte buffer and kills the process deterministically; a T6 all-white variant advances the bit offset by >512 MB silently, showing an alarm-free heap-corruption window for the same defect. A crafted file fully controls the OOB length per tile and works with perfectly legal per-row run codes (no overlong runs needed).

Verified at commit 5cd4d0d26a82a9549f297a237aea9cf665bddff8 (main; latest release v4.1.0, the supported major).

References

  • github.com/SixLabors/ImageSharp/commit/9ee7d1dd5b62d8c9f16cc755e76828386bc2191f
  • github.com/SixLabors/ImageSharp/commit/baa37cd19077b2a2a0c5667535111cf31d48c019
  • github.com/SixLabors/ImageSharp/pull/3176
  • github.com/SixLabors/ImageSharp/pull/3208
  • github.com/SixLabors/ImageSharp/releases/tag/v3.2.0
  • github.com/SixLabors/ImageSharp/releases/tag/v4.1.1
  • github.com/SixLabors/ImageSharp/security/advisories/GHSA-v76p-62qx-wwq2
  • github.com/advisories/GHSA-v76p-62qx-wwq2
  • nvd.nist.gov/vuln/detail/CVE-2026-106118

Code Behaviors & Features

Detect and mitigate CVE-2026-106118 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 3.2.0, all versions starting from 4.0.0 before 4.1.1

Fixed versions

  • 3.2.0
  • 4.1.1

Solution

Upgrade to versions 3.2.0, 4.1.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-787: Out-of-bounds Write

Source file

nuget/SixLabors.ImageSharp/CVE-2026-106118.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:07 +0000.