CVE-2016-3186
Medium · 6.2CVSS
6.2
EPSS
2.6%
Published
Apr 19, 2016
CISA due date
—
Cloudanix analysis
An old flaw in image-processing software could let a specially made picture file crash the program that tries to open it.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in the readextension function allows a crafted GIF file to trigger memory corruption that crashes the processing application.
Why it matters to the business
Processing untrusted GIF images can unexpectedly terminate image-handling services or applications, causing brief operational disruption; the issue is limited to older bundled versions of the affected software package and carries low urgency given its age and lack of observed exploitation.
How an attack unfolds
An attacker crafts a malicious GIF file that overflows a buffer when the readextension function processes it; the file is then supplied to any local process or tool that uses the vulnerable LibTIFF code, resulting in an immediate application crash and denial of service. No named threat actors or ransomware campaigns have been associated with this flaw.
How to fix it
Upgrade the affected node (Bitnami) package to version 12.22.5 or later, which contains the corrected LibTIFF code; rebuild or redeploy any containers or images that embed the vulnerable version.
How to confirm the fix worked
Confirm the installed package version is at least 12.22.5; test by attempting to process a known-triggering GIF with gif2tiff or any dependent image-handling utility and verify the process no longer crashes.
Typical attack path
- Craft a GIF file that triggers the buffer overflow in readextension
- Place or deliver the file to a system running the vulnerable software
- Cause the target application or service to open or process the GIF
- Observe the resulting process crash and service interruption
How to detect it
Review application and system logs for unexpected crashes of gif2tiff, tiff-related utilities, or any service that handles GIF files; look for entries around the time of suspected file processing that show segmentation faults or abrupt termination.
What your security team should do
- Prioritize upgrade of node (Bitnami) installations to the fixed release 12.22.5
- Scan container and dependency inventories for any remaining copies of LibTIFF 4.0.6
- Add the package version check to routine vulnerability scanning pipelines
- Review image-processing workflows to ensure they run with least privilege
The record
Buffer overflow in the readextension function in gif2tiff.c in LibTIFF 4.0.6 allows remote attackers to cause a denial of service (application crash) via a crafted GIF file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.2 | tiff | 0 | 4.0.7-r0 |
| Alpine:v3.3 | tiff | 0 | 4.0.7-r0 |
| Alpine:v3.4 | tiff | 0 | 4.0.7-r0 |
| Debian:11 | tiff | 0 | 4.0.6-3 |
| Debian:12 | tiff | 0 | 4.0.6-3 |
| Debian:13 | tiff | 0 | 4.0.6-3 |
| Debian:14 | tiff | 0 | 4.0.6-3 |
| Debian:7 | tiff | 0 | 4.0.2-6+deb7u7 |
| Debian:7 | tiff3 | 0 | 3.9.6-11+deb7u1 |
| Mageia:5 | libtiff | 0 | 4.0.6-1.4.mga5 |
| Red Hat:enterprise_linux:7::client | libtiff | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::client | libtiff-debuginfo | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::client | libtiff-devel | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::client | libtiff-static | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::client | libtiff-tools | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::computenode | libtiff | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::computenode | libtiff-debuginfo | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::computenode | libtiff-devel | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::computenode | libtiff-static | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::computenode | libtiff-tools | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::server | libtiff | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::server | libtiff-debuginfo | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::server | libtiff-devel | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::server | libtiff-static | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::server | libtiff-tools | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::workstation | libtiff | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::workstation | libtiff-debuginfo | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::workstation | libtiff-devel | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::workstation | libtiff-static | 0 | 0:4.0.3-32.el7 |
| Red Hat:enterprise_linux:7::workstation | libtiff-tools | 0 | 0:4.0.3-32.el7 |
| SUSE:Linux Enterprise Desktop 12 SP1 | tiff | 0 | 4.0.6-26.3 |
| SUSE:Linux Enterprise Server 11 SP4 | tiff | 0 | 3.8.2-141.168.1 |
| SUSE:Linux Enterprise Server 12 SP1 | tiff | 0 | 4.0.6-26.3 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | tiff | 0 | 3.8.2-141.168.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | tiff | 0 | 4.0.6-26.3 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | tiff | 0 | 3.8.2-141.168.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | tiff | 0 | 4.0.6-26.3 |
| Ubuntu:14.04:LTS | tiff | 0 | 4.0.3-7ubuntu0.9 |
| Ubuntu:16.04:LTS | tiff | 0 | 4.0.6-1ubuntu0.4 |
| openSUSE:Tumbleweed | tiff | 0 | 4.0.7-1.1 |
Related vulnerabilities
- CVE-2014-8127 LibTIFF 4.0.3 allows remote attackers to cause a denial of service (out-of-bounds read… Also affects tiff
- 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-2016-10266 LibTIFF 4.0.7 allows remote attackers to cause a denial of service (divide-by-zero error… Also affects tiff
- CVE-2015-8665 tif_getimage.c in LibTIFF 4.0.6 allows remote attackers to cause a denial of service… Also affects tiff