golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
121.18k stars 17.37k forks source link

x/image/tiff: lack of limits on compressed tile data [CVE-2023-29408] #61582

Closed neild closed 11 months ago

neild commented 11 months ago

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

Thanks to Philippe Antoine (Catena cyber) for reporting this issue.

This is CVE-2023-29408.


This is a PRIVATE issue for CVE-2023-29408, tracked in http://b/279482083 and fixed by http://tg/1944079.

/cc @golang/security and @golang/release

gopherbot commented 11 months ago

Change https://go.dev/cl/514897 mentions this issue: tiff: limit work when decoding malicious images