VDB
KO

GO-2026-5032

Excessive resource consumption in PackBits decompression in golang.org/x/image/tiff

Details

The TIFF decoder does not place a limit on the size of PackBits-compressed data. A maliciously-crafted image can exploit this to cause a small image (both in terms of pixel width/height and encoded size) to make the decoder decode large amounts of compressed data.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / golang.org/x/image
Introduced in: 0 Fixed in: 0.41.0
Fix go get golang.org/x/image@v0.41.0

References