CVE-2013-4231
NoneCVSS
—
EPSS
7.4%
Published
Jan 19, 2014
CISA due date
—
Cloudanix analysis
A problem in a common library used to handle image files could let attackers crash programs that open certain pictures.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflows in libtiff allow out-of-bounds writes when processing crafted GIF extension blocks, GIF raster images, or long filenames in TIFF processing tools, resulting in denial of service via application crashes.
Why it matters to the business
Image-handling applications or services relying on older libtiff versions may experience unexpected crashes when ingesting untrusted image files, leading to service disruptions for workflows involving GIF or TIFF conversion; the vulnerability is over a decade old with low exploit probability and no known active campaigns.
How an attack unfolds
An attacker supplies a specially crafted GIF image containing oversized extension blocks or raster data, or a TIFF image with an excessively long filename, to vulnerable libtiff tools such as gif2tiff or rgb2ycbcr; the input triggers an out-of-bounds write that crashes the process. No named threat actors or ransomware use have been associated with this issue.
How to fix it
Upgrade libtiff to version 4.0.3 or later; rebuild and redeploy any dependent applications against the patched library; disable or restrict use of the affected gif2tiff and rgb2ycbcr utilities if upgrades are delayed.
How to confirm the fix worked
Verify installed libtiff version is 4.0.3 or newer via package manager or library metadata; attempt processing of known trigger images in a controlled test environment and confirm absence of crashes.
Typical attack path
- Identify a target application or service that invokes libtiff for GIF or TIFF processing
- Craft a malicious GIF with oversized extension/raster data or a TIFF with a long filename
- Deliver the file via network upload, email attachment, or file share
- Trigger processing in the vulnerable tool or library call
- Cause out-of-bounds write resulting in denial of service
How to detect it
Review application and system logs for segmentation faults or crashes occurring during GIF or TIFF image processing; correlate with file ingestion timestamps from web servers, email gateways, or batch jobs that invoke libtiff tools.
What your security team should do
- Prioritize upgrade of libtiff to 4.0.3+ across all systems
- Inventory applications and containers that statically or dynamically link libtiff
- Implement input sanitization or sandboxing for image conversion workflows until patched
- Monitor vulnerability scanners for any remaining instances of libtiff < 4.0.3
The record
Multiple buffer overflows in libtiff before 4.0.3 allow remote attackers to cause a denial of service (out-of-bounds write) via a crafted (1) extension block in a GIF image or (2) GIF raster image to tools/gif2tiff.c or (3) a long filename for a TIFF image to tools/rgb2ycbcr.c. NOTE: vectors 1 and 3 are disputed by Red Hat, which states that the input cannot exceed the allocated buffer size.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | tiff | 0 | 4.0.3-2 |
| Debian:12 | tiff | 0 | 4.0.3-2 |
| Debian:13 | tiff | 0 | 4.0.3-2 |
| Debian:6.0 | tiff | 0 | 3.9.4-5+squeeze10 |
| Debian:7 | tiff | 0 | 4.0.2-6+deb7u2 |
| Mageia:2 | libtiff | 0 | 4.0.1-2.7.mga2 |
| Mageia:3 | libtiff | 0 | 4.0.3-4.1.mga3 |
| Red Hat:enterprise_linux:5::client | libtiff | 0 | 0:3.8.2-19.el5_10 |
| Red Hat:enterprise_linux:5::client | libtiff-debuginfo | 0 | 0:3.8.2-19.el5_10 |
| Red Hat:enterprise_linux:5::client | libtiff-devel | 0 | 0:3.8.2-19.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | libtiff | 0 | 0:3.8.2-19.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | libtiff-debuginfo | 0 | 0:3.8.2-19.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | libtiff-devel | 0 | 0:3.8.2-19.el5_10 |
| Red Hat:enterprise_linux:5::server | libtiff | 0 | 0:3.8.2-19.el5_10 |
| Red Hat:enterprise_linux:5::server | libtiff-debuginfo | 0 | 0:3.8.2-19.el5_10 |
| Red Hat:enterprise_linux:5::server | libtiff-devel | 0 | 0:3.8.2-19.el5_10 |
| Red Hat:enterprise_linux:6::client | libtiff | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::client | libtiff-debuginfo | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::client | libtiff-devel | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::client | libtiff-static | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::computenode | libtiff | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::computenode | libtiff-debuginfo | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::computenode | libtiff-devel | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::computenode | libtiff-static | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::server | libtiff | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::server | libtiff-debuginfo | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::server | libtiff-devel | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::server | libtiff-static | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::workstation | libtiff | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::workstation | libtiff-debuginfo | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::workstation | libtiff-devel | 0 | 0:3.9.4-10.el6_5 |
| Red Hat:enterprise_linux:6::workstation | libtiff-static | 0 | 0:3.9.4-10.el6_5 |
| Ubuntu:14.04:LTS | tiff | 0 | 4.0.3-5ubuntu1 |
| Ubuntu:14.04:LTS | tiff | 0 | 4.0.3-7ubuntu0.1 |
| openSUSE:Tumbleweed | tiff | 0 | 4.0.7-1.1 |
Related vulnerabilities
- CVE-2023-52356 A segment fault (SEGV) flaw was found in libtiff that could be triggered by passing a… Also affects tiff
- CVE-2023-6277 An out-of-memory flaw was found in libtiff. Also affects tiff
- CVE-2023-3576 A memory leak flaw was found in Libtiff's tiffcrop utility. Also affects tiff
- CVE-2023-30086 Buffer Overflow vulnerability found in Libtiff V.4.0.7 allows a local attacker to cause a… Also affects tiff
- CVE-2017-17095 tools/pal2rgb.c in pal2rgb in LibTIFF 4.0.9 allows remote attackers to cause a denial of… Also affects tiff
- CVE-2014-8127 LibTIFF 4.0.3 allows remote attackers to cause a denial of service (out-of-bounds read… Also affects tiff
- CVE-2016-10266 LibTIFF 4.0.7 allows remote attackers to cause a denial of service (divide-by-zero error… Also affects tiff
- CVE-2016-3186 Buffer overflow in the readextension function in gif2tiff.c in LibTIFF 4.0.6 allows… Also affects tiff