golang.org/x/image/tiff has excessive resource consumption in PackBits decompression
High severity
GitHub Reviewed
Published
Jul 2, 2026
to the GitHub Advisory Database
•
Updated Jul 2, 2026
Description
Published by the National Vulnerability Database
May 29, 2026
Published to the GitHub Advisory Database
Jul 2, 2026
Reviewed
Jul 2, 2026
Last updated
Jul 2, 2026
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