---
title: CVE-2012-5581
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-2012-5581
---

# CVE-2012-5581

Publication date 28 November 2012

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

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

Toggle side navigation

## Description

Stack-based buffer overflow in tif\_dir.c in LibTIFF before 4.0.2 allows
remote attackers to cause a denial of service (crash) and possibly execute
arbitrary code via a crafted DOTRANGE tag in a TIFF image.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| tiff | 14.04 LTS trusty | Not affected |
| 13.10 saucy | Not affected |
| 13.04 raring | Not affected |
| 12.10 quantal | Not affected |
| 12.04 LTS precise | Fixed in 3.9.5-2ubuntu1.4 |
| 11.10 oneiric | Fixed in 3.9.5-1ubuntu1.5 |
| 10.04 LTS lucid | Fixed in 3.9.2-2ubuntu0.12 |
| 8.04 LTS hardy | Fixed in 3.8.2-7ubuntu3.16 |
| tiff3 | 14.04 LTS trusty | Not in release |
| 13.10 saucy | Ignored end of life |
| 13.04 raring | Ignored end of life |
| 12.10 quantal | Ignored end of life |
| 12.04 LTS precise | Not in release |
| 11.10 oneiric | Not in release |
| 10.04 LTS lucid | Not in release |
| 8.04 LTS hardy | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2012-5581#patch-details)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| tiff | * Vendor:   <https://bugzilla.redhat.com/attachment.cgi?id=640578> |

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-1655-1](https://usn.ubuntu.com/USN-1655-1)
+ LibTIFF vulnerability
+ 5 December 2012

### Other references

* <http://www.openwall.com/lists/oss-security/2012/11/28/1>
* <https://bugzilla.redhat.com/show_bug.cgi?id=867235>
* <https://www.cve.org/CVERecord?id=CVE-2012-5581>
