CVE-2008-0553: Buffer Overflow
Stack-based buffer overflow in the ReadImage function in tkImgGIF.c in Tk (Tcl/Tk) before 8.5.1 allows remote attackers to execute arbitrary code via a crafted GIF image, a similar issue to CVE-2006-4484.
Other sources
tk GIF handling code is based on the same code as used by gd and SDLimage and is affected by the overflow known as CVE-2006-4484 and CVE-2007-6697.
ReadImage function in tkImgGIF.c does not properly check the value of initialCodeSize value read from GIF image before using it as upper bound during the initialization of append array. This can result in stack buffer overflow.
Upstream fix: http://tktoolkit.cvs.sourceforge.net/tktoolkit/tk/generic/tkImgGIF.c?r1=1.40&r2=1.41
This is expected to be included in upstream tk version 8.5.1.
Related issues: CVE-2006-4484 (gd), CVE-2007-6697 (SDLimage), CVE-2008-0554 (netpbm)
— Red Hat
Affected Software
Remediation
Patch Available
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2008-0553?
CVE-2008-0553 has a medium severity rating due to its potential for remote code execution through crafted GIF images.
How do I fix CVE-2008-0553?
To fix CVE-2008-0553, update to a version of Tk (Tcl/Tk) that is 8.5.1 or later.
What are the affected versions listed in CVE-2008-0553?
CVE-2008-0553 affects Tcl/Tk versions before 8.5.1, including 8.4.17 and earlier.
Can CVE-2008-0553 exploit my system through remote attacks?
Yes, CVE-2008-0553 can be exploited by remote attackers using specially crafted GIF images.
What should I do if I can't immediately update for CVE-2008-0553?
If an immediate update isn't possible for CVE-2008-0553, consider implementing security measures such as network segmentation or monitoring to reduce exposure.