---
title: "CVE-2007-5137\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2007-5137?format=md
keywords: index, follow
---

# CVE-2007-5137

Publication date 28 September 2007

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## 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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2007-5137?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| libtk-img | 11.10 oneiric | Not affected |
| 11.04 natty | Not affected |
| 10.10 maverick | Not affected |
| 10.04 LTS lucid | Not affected |
| 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Fixed 1:1.3-release-7+lenny1build0.8.10.1 |
| 8.04 LTS hardy | Ignored end of life |
| 7.10 gutsy | Ignored end of life, was needed |
| 6.06 LTS dapper | Ignored end of life |
| tk8.3 | 11.10 oneiric | Not in release |
| 11.04 natty | Not affected |
| 10.10 maverick | Not affected |
| 10.04 LTS lucid | Not affected |
| 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Not affected |
| 8.04 LTS hardy | Not affected |
| 7.04 feisty | Fixed 8.3.5-6ubuntu2.1 |
| 6.10 edgy | Fixed 8.3.5-6ubuntu1.1 |
| 6.06 LTS dapper | Fixed 8.3.5-4ubuntu1.1 |
| tk8.4 | 11.10 oneiric | Not affected |
| 11.04 natty | Not affected |
| 10.10 maverick | Not affected |
| 10.04 LTS lucid | Not affected |
| 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Not affected |
| 8.04 LTS hardy | Not affected |
| 7.04 feisty | Fixed 8.4.14-0ubuntu2.1 |
| 6.10 edgy | Fixed 8.4.12-1ubuntu0.1 |
| 6.06 LTS dapper | Fixed 8.4.12-0ubuntu1.1 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Notes

---

### [jdstrand](https://launchpad.net/~jdstrand)

CVE only affects feisty and gutsy tk8.4. These releases have a fix
for tcl/tk bug #1458234, which either introduced or unmasked the issue in
this CVE (investigate). Bug #1458234 is a memory corruption crasher as well,
and though it doesn't have a CVE, it should be fixed. tk8.3 is affected by
#1458234 in all releases, so when fixing it, be sure to fix the CVE as well.
tk8.4 in dapper and edgy need both fixes too.

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5137)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2007-5137)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2007-5137)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2007-5137)

### Related Ubuntu Security Notices (USN)

+ [USN-529-1](https://usn.ubuntu.com/USN-529-1)
+ Tk vulnerability
+ 11 October 2007

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2007-5137>
