Home / Libtiff / Libtiff / CVE-2012-5581
CVE-2012-5581: is it exploited, and which versions of Libtiff are affected and fixed?
CVE-2012-5581 is a memory corruption (buffer overflow) vulnerability in Libtiff. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: libtiff through 4.0.1, libtiff 3.4, libtiff 3.5.1 and 25 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (6.8, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:48 UTC.
What is CVE-2012-5581?
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.
From the CVE record by redhat, last updated August 6, 2024, 21:14 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libtiff | libtiff | through 4.0.1 | application |
| libtiff | libtiff | 3.4 | application |
| libtiff | libtiff | 3.5.1 | application |
| libtiff | libtiff | 3.5.2 | application |
| libtiff | libtiff | 3.5.3 | application |
| libtiff | libtiff | 3.5.4 | application |
| libtiff | libtiff | 3.5.5 | application |
| libtiff | libtiff | 3.5.6 | application |
| libtiff | libtiff | 3.5.7 | application |
| libtiff | libtiff | 3.6.0 | application |
| libtiff | libtiff | 3.6.1 | application |
| libtiff | libtiff | 3.7.0 | application |
| libtiff | libtiff | 3.7.1 | application |
| libtiff | libtiff | 3.7.2 | application |
| libtiff | libtiff | 3.7.3 | application |
| libtiff | libtiff | 3.7.4 | application |
| libtiff | libtiff | 3.8.0 | application |
| libtiff | libtiff | 3.8.1 | application |
| libtiff | libtiff | 3.8.2 | application |
| libtiff | libtiff | 3.9 | application |
| libtiff | libtiff | 3.9.0 | application |
| libtiff | libtiff | 3.9.1 | application |
| libtiff | libtiff | 3.9.2 | application |
| libtiff | libtiff | 3.9.2-5.2.1 | application |
| libtiff | libtiff | 3.9.3 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:47 UTC.
How severe is CVE-2012-5581?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-5581 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.25% probability of exploitation activity in the next 30 days, percentile 91.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Where are the vendor advisories and references?
- libtiff-dotrange-bo(80339) vdb-entry, x_refsource_XF
- DSA-2589 vendor-advisory, x_refsource_DEBIAN
- 56715 vdb-entry, x_refsource_BID
- openSUSE-SU-2013:0187 vendor-advisory, x_refsource_SUSE
- 51491 third-party-advisory, x_refsource_SECUNIA
- USN-1655-1 vendor-advisory, x_refsource_UBUNTU
- https://bugzilla.redhat.com/show_bug.cgi?id=867235 x_refsource_MISC
- [oss-security] 20121128 libtiff: Stack based buffer overflow when handling DOTRANGE tags mailing-list, x_refsource_MLIST
- RHSA-2012:1590 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- October 24, 2012
- Published
- January 4, 2013, 22:00 UTC
- CVE record updated
- August 6, 2024, 21:14 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:47 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:48 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Libtiff?
- Feb 23, 2026CVE-2025-61145 Libtiff: double free
- Feb 23, 2026CVE-2025-61144 Libtiff: memory corruption (buffer overflow)
- Feb 23, 2026CVE-2025-61143 Libtiff: NULL pointer dereference (crash)
- Aug 19, 2025CVE-2025-9165 LibTIFF: memory leak disputed
- Aug 14, 2025CVE-2025-8961 LibTIFF: memory corruption (buffer overflow)
- Aug 11, 2025CVE-2025-8851 LibTIFF: stack buffer overflow
- Aug 4, 2025CVE-2025-8534 libtiff: NULL pointer dereference (crash)
- Aug 1, 2025CVE-2024-13978 LibTIFF: NULL pointer dereference (crash)
Questions about CVE-2012-5581
Is CVE-2012-5581 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 4.25% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Libtiff are affected by CVE-2012-5581?
libtiff through 4.0.1, libtiff 3.4, libtiff 3.5.1, libtiff 3.5.2, libtiff 3.5.3, libtiff 3.5.4 and 22 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2012-5581?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2012-5581?
Medium (6.8, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-5581?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.