LibTIFF vulnerable to integer overflow via corrupted directory entry count

2005-01-11T00:00:00
ID VU:125598
Type cert
Reporter CERT
Modified 2005-05-12T00:00:00

Description

Overview

An integer overflow in LibTIFF may allow a remote attacker to execute arbitrary code.

Description

LibTIFF is a library used to encode and decode images in Tag Image File Format (TIFF). A lack of validation on user supplied input may allow buffer overflow to occur. TIFF files contain directory entry header fields to describe the data in the file. If a remote attacker creates a TIFF file with specially crafted directory headers and persuades a user to access that file, an integer overflow will occur that may eventually lead to a heap-based buffer overflow.


Impact

If a remote attacker can persuade a user to access a specially crafted TIFF image, that attacker may be able to execute arbitrary code with the privileges of that user.


Solution

Upgrade or Patch

This issue has been corrected in LibTIFF version 3.7.1. Obtain a patch or upgraded software from your vendor. Recompile statically linked applications.


Do Not Accept TIFF Files from Unknown or Untrusted Sources

Exploitation occurs by accessing a specially crafted TIFF file (typically .tiff or .tif extension). By only accessing TIFF files from trusted or known sources, the chances of exploitation are reduced.


Systems Affected

Vendor| Status| Date Notified| Date Updated
---|---|---|---
Apple Computer Inc.| | 11 Jan 2005| 05 May 2005
Debian| | 11 Jan 2005| 11 Jan 2005
FreeBSD| | 11 Jan 2005| 11 Jan 2005
Red Hat Inc.| | 11 Jan 2005| 19 Jan 2005
NEC Corporation| | 11 Jan 2005| 17 Mar 2005
NetBSD| | 11 Jan 2005| 13 Jan 2005
Connectiva| | 11 Jan 2005| 11 Jan 2005
Cray Inc.| | 11 Jan 2005| 11 Jan 2005
EMC Corporation| | 11 Jan 2005| 11 Jan 2005
Engarde| | 11 Jan 2005| 11 Jan 2005
F5 Networks| | 11 Jan 2005| 11 Jan 2005
Fujitsu| | 11 Jan 2005| 11 Jan 2005
Hewlett-Packard Company| | 11 Jan 2005| 11 Jan 2005
Hitachi| | 11 Jan 2005| 11 Jan 2005
IBM| | 11 Jan 2005| 11 Jan 2005
If you are a vendor and your product is affected, let us know.

CVSS Metrics

Group | Score | Vector
---|---|---
Base | N/A | N/A
Temporal | N/A | N/A
Environmental | N/A | N/A

References

Credit

This vulnerability was reported by iDefense.

This document was written by Jeff Gennari.

Other Information

  • CVE IDs: CAN-2004-1308
  • Date Public: 21 Dec 2004
  • Date First Published: 11 Jan 2005
  • Date Last Updated: 12 May 2005
  • Severity Metric: 7.75
  • Document Revision: 71