CVE-2012-3401: Buffer Overflow

Published Jul 4, 2012
·
Updated

A heap-based buffer overflow flaw was found in the way tiff2pdf, a TIFF image to a PDF document conversion tool, of libtiff, a library of functions for manipulating TIFF (Tagged Image File Format) image format files, performed write of TIFF image content into particular PDF document file, when not properly initialized T2P context struct pointer has been provided by tiff2pdf (application requesting the conversion) as one of parameters for the routine performing the write. A remote attacker could provide a specially-crafted TIFF image format file, that when processed by tiff2pdf would lead to tiff2pdf executable crash or, potentially, arbitrary code execution with the privileges of the user running the tiff2pdf binary.

Issue found by: Huzaifa Sidhpurwala, Red Hat Security Response Team

Other sources

The t2preadtiffinit 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.

Affected Software

57 affected components
LibTIFF libtiff<=4.0.2
LibTIFF libtiff=3.4
LibTIFF libtiff=3.4-beta18
LibTIFF libtiff=3.4-beta24
LibTIFF libtiff=3.4-beta28
LibTIFF libtiff=3.4-beta29
LibTIFF libtiff=3.4-beta31
LibTIFF libtiff=3.4-beta32
LibTIFF libtiff=3.4-beta34
LibTIFF libtiff=3.4-beta35
LibTIFF libtiff=3.4-beta36
LibTIFF libtiff=3.4-beta37
LibTIFF libtiff=3.5.1
LibTIFF libtiff=3.5.2
LibTIFF libtiff=3.5.3
LibTIFF libtiff=3.5.4
LibTIFF libtiff=3.5.5
LibTIFF libtiff=3.5.6
LibTIFF libtiff=3.5.6-beta
LibTIFF libtiff=3.5.7
LibTIFF libtiff=3.5.7-alpha
LibTIFF libtiff=3.5.7-alpha2
LibTIFF libtiff=3.5.7-alpha3
LibTIFF libtiff=3.5.7-alpha4
LibTIFF libtiff=3.5.7-beta
LibTIFF libtiff=3.6.0
LibTIFF libtiff=3.6.0-beta
LibTIFF libtiff=3.6.0-beta2
LibTIFF libtiff=3.6.1
LibTIFF libtiff=3.7.0
LibTIFF libtiff=3.7.0-alpha
LibTIFF libtiff=3.7.0-beta
LibTIFF libtiff=3.7.0-beta2
LibTIFF libtiff=3.7.1
LibTIFF libtiff=3.7.2
LibTIFF libtiff=3.7.3
LibTIFF libtiff=3.7.4
LibTIFF libtiff=3.8.0
LibTIFF libtiff=3.8.1
LibTIFF libtiff=3.8.2
LibTIFF libtiff=3.9
LibTIFF libtiff=3.9.0
LibTIFF libtiff=3.9.0-beta
LibTIFF libtiff=3.9.1
LibTIFF libtiff=3.9.2
LibTIFF libtiff=3.9.2-5.2.1
LibTIFF libtiff=3.9.3
LibTIFF libtiff=3.9.4
LibTIFF libtiff=4.0
LibTIFF libtiff=4.0-alpha
LibTIFF libtiff=4.0-beta1
LibTIFF libtiff=4.0-beta2
LibTIFF libtiff=4.0-beta3
LibTIFF libtiff=4.0-beta4
LibTIFF libtiff=4.0-beta5
LibTIFF libtiff=4.0-beta6
LibTIFF libtiff=4.0.1

Event History

Jul 4, 2012
Data Sourced
10:01 AM
DescriptionSeverityAffected Software
Aug 13, 2012
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-3401?

CVE-2012-3401 is classified as a high severity vulnerability due to its potential for exploit via heap-based buffer overflow.

2

How do I fix CVE-2012-3401?

To fix CVE-2012-3401, upgrade to libtiff version 4.0.3 or later.

3

What types of systems are affected by CVE-2012-3401?

CVE-2012-3401 affects libtiff versions up to 4.0.2 and specific 3.x versions, commonly used for converting TIFF images to PDFs.

4

What can an attacker do with CVE-2012-3401?

An attacker can exploit CVE-2012-3401 to execute arbitrary code or crash the application utilizing the affected library.

5

Is CVE-2012-3401 a widely known vulnerability?

Yes, CVE-2012-3401 is well-documented in cybersecurity databases, indicating it's recognized as a significant vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203