{"id":"CVE-2007-5137","aliases":["DEBIAN-CVE-2007-5137","DSA-1743-1","EUVD-2007-5118","GHSA-67cg-f67f-c8v9","RHSA-2008:0136"],"status":"published","title":"Buffer overflow in the ReadImage function in generic/tkImgGIF.c in Tcl (Tcl/Tk) 8.4.13 through 8...","description":"Buffer overflow in the ReadImage function in generic/tkImgGIF.c in Tcl (Tcl/Tk) 8.4.13 through 8.4.15 allows remote attackers to execute arbitrary code via multi-frame interlaced GIF files in which later frames are smaller than the first.  NOTE: this issue is due to an incorrect patch for CVE-2007-5378.","severity":{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.04855,"percentile":0.92084,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2007-09-28T21:00:00Z","modified":"2026-10-21T17:47:41Z","fixes":[{"ecosystem":"Debian:12","package":"libtk-img","fixed_in":["1.3-release-8"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libtk-img","fixed_in":["1.3-release-8"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libtk-img","fixed_in":["1.3-release-8"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libtk-img","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-release-8"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libtk-img","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-release-8"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libtk-img","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3-release-8"}]}]},{"source":"osv","ecosystem":"Debian:4.0","package":"libtk-img","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.3-15etch3"}]}],"versions":["1:1.3-15","1:1.3-15etch2"],"bundled":2},{"source":"osv","ecosystem":"Debian:5.0","package":"libtk-img","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.3-release-7+lenny1"}]}],"versions":["1:1.3-release-7"],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"tk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.4.13-5.el5_1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"tk-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.4.13-5.el5_1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"tk-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.4.13-5.el5_1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"tk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.4.13-5.el5_1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"tk-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.4.13-5.el5_1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"tk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.4.13-5.el5_1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"tk-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.4.13-5.el5_1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"tk-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.4.13-5.el5_1.1"}]}],"bundled":2}],"products":[{"vendor":"tcl_tk","product":"tcl_tk"}],"references":[{"url":"http://secunia.com/advisories/34297","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9540","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred","web"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00261.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://bugs.gentoo.org/show_bug.cgi?id=192539","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://secunia.com/advisories/26942","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://secunia.com/advisories/27086","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.redhat.com/support/errata/RHSA-2008-0136.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","web"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:200","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://www.debian.org/security/2009/dsa-1743","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"http://security.gentoo.org/glsa/glsa-200710-07.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/27295","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://sourceforge.net/project/shownotes.php?release_id=541207","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix"]},{"url":"http://secunia.com/advisories/27229","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.ubuntu.com/usn/usn-529-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/27182","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.attrition.org/pipermail/vim/2007-October/001826.html","tags":["mailing-list","x_refsource_VIM","x_transferred","web"]},{"url":"http://secunia.com/advisories/29069","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/27207","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.novell.com/linux/security/advisories/2007_20_sr.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","advisory"]},{"url":"http://www.securityfocus.com/bid/25826","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-5137","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-67cg-f67f-c8v9"},{"url":"https://security-tracker.debian.org/tracker/CVE-2007-5137","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2008:0136","tags":["advisory"]},{"url":"http://www.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=290991","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=431518","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2008/rhsa-2008_0136.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-5137","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-5137","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2008-0553","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2008-0553","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-0553","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2007-5137","description":"Buffer overflow in the ReadImage function in generic/tkImgGIF.c in Tcl (Tcl/Tk) 8.4.13 through 8.4.15 allows remote attackers to execute arbitrary code via multi-frame interlaced GIF files in which later frames are smaller than the first.  NOTE: this issue is due to an incorrect patch for CVE-2007-5378.","status":"published","published":"2007-09-28T21:00:00Z","modified":"2024-08-07T15:24:41.948Z","updated_at":"2026-11-02T13:32:11.910312Z"}],"euvd":[{"id":"EUVD-2007-5118","description":"Buffer overflow in the ReadImage function in generic/tkImgGIF.c in Tcl (Tcl/Tk) 8.4.13 through 8.4.15 allows remote attackers to execute arbitrary code via multi-frame interlaced GIF files in which later frames are smaller than the first.  NOTE: this issue is due to an incorrect patch for CVE-2007-5378.","status":"published","published":"2007-09-28T21:00:00Z","modified":"2024-08-07T15:24:41Z","updated_at":"2026-11-03T01:16:18.681639Z"}],"ghsa":[{"id":"GHSA-67cg-f67f-c8v9","title":"Buffer overflow in the ReadImage function in generic/tkImgGIF.c in Tcl (Tcl/Tk) 8.4.13 through 8...","description":"Buffer overflow in the ReadImage function in generic/tkImgGIF.c in Tcl (Tcl/Tk) 8.4.13 through 8.4.15 allows remote attackers to execute arbitrary code via multi-frame interlaced GIF files in which later frames are smaller than the first.  NOTE: this issue is due to an incorrect patch for CVE-2007-5378.","status":"published","published":"2022-05-01T18:30:35Z","modified":"2023-01-31T05:04:38Z","cwes":["CWE-119"],"updated_at":"2026-11-02T14:48:42.511023Z"}],"nvd":[{"id":"CVE-2007-5137","description":"Buffer overflow in the ReadImage function in generic/tkImgGIF.c in Tcl (Tcl/Tk) 8.4.13 through 8.4.15 allows remote attackers to execute arbitrary code via multi-frame interlaced GIF files in which later frames are smaller than the first.  NOTE: this issue is due to an incorrect patch for CVE-2007-5378.","status":"published","published":"2007-09-28T21:17:00Z","modified":"2026-06-16T22:45:31.247Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:01:21.141213Z"}],"osv":[{"id":"CVE-2007-5137","description":"Buffer overflow in the ReadImage function in generic/tkImgGIF.c in Tcl (Tcl/Tk) 8.4.13 through 8.4.15 allows remote attackers to execute arbitrary code via multi-frame interlaced GIF files in which later frames are smaller than the first.  NOTE: this issue is due to an incorrect patch for CVE-2007-5378.","status":"published","published":"2007-09-28T21:17:00Z","modified":"2026-04-10T03:39:16.50694Z","updated_at":"2026-11-02T15:43:57.178433Z"},{"id":"DEBIAN-CVE-2007-5137","description":"Buffer overflow in the ReadImage function in generic/tkImgGIF.c in Tcl (Tcl/Tk) 8.4.13 through 8.4.15 allows remote attackers to execute arbitrary code via multi-frame interlaced GIF files in which later frames are smaller than the first.  NOTE: this issue is due to an incorrect patch for CVE-2007-5378.","status":"published","published":"2007-09-28T21:17:00Z","modified":"2026-10-21T17:47:41.945492292Z","updated_at":"2026-11-02T15:45:23.411908Z"},{"id":"DSA-1743-1","title":"libtk-img - arbitrary code execution","status":"published","published":"2009-03-17T00:00:00Z","modified":"2026-03-09T01:01:30.178723Z","updated_at":"2026-11-02T15:46:14.734124Z"},{"id":"RHSA-2008:0136","title":"Red Hat Security Advisory: tk security update","status":"published","published":"2024-09-15T17:12:07Z","modified":"2026-06-26T12:18:07.255873677Z","updated_at":"2026-11-02T15:52:59.70892Z"}]}}
