CVE-2013-4232
Description
Use-after-free vulnerability in the t2p_readwrite_pdf_image function in tools/tiff2pdf.c in libtiff 4.0.3 allows remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via a crafted TIFF image.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
5cpe:2.3:o:debian:debian_linux:6.0:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:debian:debian_linux:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
Patches
Vulnerability mechanics
Root cause
"Use-after-free in t2p_readwrite_pdf_image when processing crafted TIFF raster image data."
Attack vector
An attacker can trigger the use-after-free by crafting a malicious TIFF image and convincing a victim to process it with the tiff2pdf tool. The crafted raster data causes the `t2p_readwrite_pdf_image` function to access freed memory, leading to a crash or potentially arbitrary code execution [ref_id=1]. No authentication or special network access is required beyond delivering the file.
Affected code
The vulnerability resides in the `t2p_readwrite_pdf_image` function in `tools/tiff2pdf.c` of libtiff 4.0.3. The flaw is a use-after-free that occurs when the tiff2pdf tool reads TIFF file raster image data and writes them to the output PDF XObject's image dictionary stream [ref_id=1].
What the fix does
The advisory does not include a published patch. The recommended remediation is to update libtiff to a version that corrects the use-after-free in `t2p_readwrite_pdf_image`. Without a patch diff, the exact fix cannot be described, but the vulnerability is resolved by ensuring proper memory management when processing TIFF raster data for PDF output [ref_id=1].
Preconditions
- inputThe victim must process a crafted TIFF file using the tiff2pdf tool.
Generated on Jun 24, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
8- bugzilla.maptools.org/show_bug.cginvdPatch
- bugzilla.redhat.com/show_bug.cginvdPatch
- secunia.com/advisories/54543nvdVendor Advisory
- secunia.com/advisories/54628nvdVendor Advisory
- rhn.redhat.com/errata/RHSA-2014-0223.htmlnvd
- www.asmail.be/msg0055359936.htmlnvd
- www.debian.org/security/2013/dsa-2744nvd
- www.openwall.com/lists/oss-security/2013/08/10/2nvd
News mentions
0No linked articles in our index yet.