CVE-2026-46599: golang.org/x/image/tiff has excessive resource consumption in PackBits decompression
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.
Published Jul 2, 2026
Affected packages
golang.org/x/image
- Ecosystem
- Go
- Affected
- < 0.41.0
- Fixed in
- 0.41.0
- Check
go list -m golang.org/x/image
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
