Tk: Buffer overflow A buffer overflow vulnerability has been discovered in Tk. tk 2007-10-07 2007-10-07 192539 remote 8.4.15-r1 8.4.15-r1

Tk is a toolkit for creating graphical user interfaces.

Reinhard Max discovered a boundary error in Tk when processing an interlaced GIF with two frames where the second is smaller than the first one.

A remote attacker could entice a user to open a specially crafted GIF image with a Tk-based software, possibly resulting in the execution of arbitrary code with the privileges of the user running the application.

There is no known workaround at this time.

All Tk users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose ">=dev-lang/tk-8.4.15-r1"
CVE-2007-4851 p-y p-y p-y