CVE-2012-3401 Memory corruption in n/a

Medium 6.8 Published Updated

A heap-based buffer overflow in LibTIFF allows attackers to execute arbitrary code or cause a denial of service via a crafted TIFF image.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2012-3401?

CVE-2012-3401 is a medium-severity memory corruption vulnerability in Libtiff Libtiff, published on 13 Aug 2012. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-119

Which versions are affected by CVE-2012-3401?

It affects 1 product.

Products include Libtiff Libtiff.

How do I fix CVE-2012-3401?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2012-3401 being exploited?

There is no known exploitation of CVE-2012-3401 in the wild and no public exploit code.

All Libtiff Libtiff vulnerabilities

Sources

Also known as DEBIAN-CVE-2012-3401, GHSA-j3j5-3pcx-xp73.

Is CVE-2012-3401 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free