ADVISORIES

Go Vulnerability Database

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.

Affected packages

EcosystemPackageAffected versions
Gogolang.org/x/image
All versions before 0.41.0 (fixed in 0.41.0)

References