Intel

AIKIDO-2026-827156

SixLabors.ImageSharp is vulnerable to Out-of-bounds Write

Out-of-bounds WriteGHSA-v76p-62qx-wwq2 Published 3 days ago

75

High Risk

This Affects:

DOTNETSixLabors.ImageSharp
3.0.0 - 4.1.0
Fixed in 4.1.1
Are you affected? Scan for Free

TL;DR

The TIFF decoder allocates tile buffers sized by the tile width but constructs the CCITT/fax decompressors with the full image width when decoding tiled images. Decoding a crafted tiled TIFF that uses T4, T6, or Modified Huffman compression makes the decompressor write scanlines wider than the allocated tile buffer. This out-of-bounds heap write produces a crash and potential heap corruption, reachable from Image.Load on untrusted input. The fix passes the tile width to the decompressor factory so writes stay within the tile buffer.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you decode untrusted tiled TIFF images that use CCITT/fax compression.

Background info

SixLabors.ImageSharp is vulnerable to Out-of-bounds Write in versions 3.0.0 - 4.1.0.

How to fix this

Upgrade the SixLabors.ImageSharp library to the patch version.