SixLabors ImageSharp
ImageSharp: Tiled fax TIFF: tile buffer sized by TileWidth but fax decompressor writes scanlines of ImageWidth — heap OOB write
ImageSharp is a 2D graphics library. From 3.0.0 until 4.1.1, tiled TIFF decoding allocates a destination buffer using TileWidth but TiffDecompressorsFactory.Create constructs T4, T6, and Modified Huffman decompressors using the full frame width. TiffDecoderCore.DecodeTilesChunky can therefore direct frame-width fax scanlines into a tile-width buffer when TileWidth is smaller than ImageWidth. The mismatch causes attacker-controlled out-of-bounds writes, heap corruption, and process termination even with legal per-row run codes. This tiled-path vulnerability is distinct from oversized CCITT runs in strip decoding. This issue is fixed in version 4.1.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.0.0, < 4.1.1
Fixed in 4.1.1
Mitigation
Upgrade ImageSharp to 4.1.1 or later.
References
- Vendor advisory github.com/SixLabors/ImageSharp/security/advis…
- Patch github.com/SixLabors/ImageSharp/pull/3176
- Patch github.com/SixLabors/ImageSharp/commit/9ee7d1d…
1 more
- Release notes github.com/SixLabors/ImageSharp/releases/tag/v…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.