Home / Libtiff / Libtiff / CVE-2012-3401
CVE-2012-3401: is it exploited, and which versions of Libtiff are affected and fixed?
CVE-2012-3401 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, 06:38 UTC). Affected: libtiff through 4.0.2, 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, 06:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:48 UTC.
What is CVE-2012-3401?
The t2p_read_tiff_init function in tiff2pdf (tools/tiff2pdf.c) in LibTIFF 4.0.2 and earlier does not properly initialize the T2P context struct pointer in certain error conditions, which allows context-dependent attackers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted TIFF image that triggers a heap-based buffer overflow.
From the CVE record by redhat, last updated August 6, 2024, 20:05 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libtiff | libtiff | through 4.0.2 | 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:43 UTC.
How severe is CVE-2012-3401?
| 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-3401 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.07% probability of exploitation activity in the next 30 days, percentile 90.9 (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?
- https://bugzilla.redhat.com/show_bug.cgi?id=837577 x_refsource_MISC
- openSUSE-SU-2012:0955 vendor-advisory, x_refsource_SUSE
- [oss-security] 20120719 tiff2pdf: Heap-based buffer overflow due to improper initialization of T2P context struct pointer mailing-list, x_refsource_MLIST
- http://libjpeg-turbo.svn.sourceforge.net/viewvc/libjpeg-turbo?view=revision&revision=830 x_refsource_MISC
- 54601 vdb-entry, x_refsource_BID
- [oss-security] 20120719 Re: tiff2pdf: Heap-based buffer overflow due to improper initialization of T2P context struct pointer mailing-list, x_refsource_MLIST
- DSA-2552 vendor-advisory, x_refsource_DEBIAN
- 49938 third-party-advisory, x_refsource_SECUNIA
- 50007 third-party-advisory, x_refsource_SECUNIA
- USN-1511-1 vendor-advisory, x_refsource_UBUNTU
- GLSA-201209-02 vendor-advisory, x_refsource_GENTOO
- 84090 vdb-entry, x_refsource_OSVDB
- libtiff-t2preadtiffinit-bo(77088) vdb-entry, x_refsource_XF
- https://bugzilla.redhat.com/attachment.cgi?id=596457 x_refsource_MISC
- MDVSA-2012:127 vendor-advisory, x_refsource_MANDRIVA
- RHSA-2012:1590 vendor-advisory, x_refsource_REDHAT
- http://www.xerox.com/download/security/security-bulletin/16287-4d6b7b0c81f7b/cert_XRX13-003_v1.0.pdf x_refsource_CONFIRM
- 50726 third-party-advisory, x_refsource_SECUNIA
When was it published, and where is the official record?
- Reserved
- June 14, 2012
- Published
- August 13, 2012, 20:00 UTC
- CVE record updated
- August 6, 2024, 20:05 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:43 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:48 UTC; KEV December 3, 2026, 06:38 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-3401
Is CVE-2012-3401 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 06:38 UTC. FIRST's EPSS gives it a 4.07% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Libtiff are affected by CVE-2012-3401?
libtiff through 4.0.2, 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-3401?
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-3401?
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-3401?
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.