CVE-2016-6911
Medium · 5.5CVSS
5.5
EPSS
1.8%
Published
Jan 26, 2017
CISA due date
—
Cloudanix analysis
An old flaw in a picture-handling library could make programs crash when they open a specially made image file, but modern versions and the packages involved are already safe.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits an out-of-bounds read inside the dynamicGetbuf function during TIFF parsing, causing a denial-of-service crash in any application linked against the affected libgd.
Why it matters to the business
Image-processing workloads that accept untrusted TIFF files may experience intermittent crashes and service degradation; however the issue is more than nine years old, carries low exploitation probability, and appears absent from the listed packages, limiting operational exposure.
How an attack unfolds
An attacker creates a malformed TIFF image that triggers the bounds violation in dynamicGetbuf, then supplies the file to any service that invokes libgd’s TIFF decoder, resulting in an immediate crash.
How to fix it
Upgrade libgd to 2.2.4 or newer; the listed pulumi packages on Chainguard and Wolfi already ship non-vulnerable versions (fixed at base version 0) and require no further change.
How to confirm the fix worked
Confirm the installed libgd shared library reports version 2.2.4 or later; reprocess a known-bad TIFF test case and verify the application no longer crashes.
Typical attack path
- Locate an application or service that uses libgd to decode TIFF images
- Generate a TIFF file engineered to exercise the vulnerable code path
- Deliver the crafted image through normal input channels (upload, email attachment, API)
- Trigger image processing to induce the out-of-bounds read and crash
How to detect it
Search application and system logs for segmentation faults or abrupt process termination immediately after TIFF decoding attempts; no public in-the-wild exploitation artifacts are known.
What your security team should do
- Inventory any remaining direct or transitive use of libgd < 2.2.4
- Block or sanitize TIFF input where possible until libraries are current
- Add the stable low EPSS score and nine-year publication age to risk-acceptance documentation
The record
The dynamicGetbuf function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TIFF image.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libgd2 | 0 | 2.2.3-87-gd0fec80-2 |
| Debian:12 | libgd2 | 0 | 2.2.3-87-gd0fec80-2 |
| Debian:13 | libgd2 | 0 | 2.2.3-87-gd0fec80-2 |
| Debian:14 | libgd2 | 0 | 2.2.3-87-gd0fec80-2 |
| Debian:7 | libgd2 | 0 | 2.0.36~rc1~dfsg-6.1+deb7u6 |
| Debian:8 | libgd2 | 0 | 2.1.0-5+deb8u7 |
| Mageia:5 | libgd | 0 | 2.2.3-1.4.mga5 |
| SUSE:Linux Enterprise Desktop 12 SP1 | gd | 0 | 2.1.0-17.1 |
| SUSE:Linux Enterprise Module for Web and Scripting 12 | php5 | 0 | 5.5.14-83.1 |
| SUSE:Linux Enterprise Module for Web and Scripting 12 | php7 | 0 | 7.0.7-20.1 |
| SUSE:Linux Enterprise Server 11 SP4 | gd | 0 | 2.0.36.RC1-52.25.1 |
| SUSE:Linux Enterprise Server 11 SP4 | php53 | 0 | 5.3.17-87.1 |
| SUSE:Linux Enterprise Server 12 SP1 | gd | 0 | 2.1.0-17.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | gd | 0 | 2.0.36.RC1-52.25.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | php53 | 0 | 5.3.17-87.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | gd | 0 | 2.1.0-17.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | gd | 0 | 2.0.36.RC1-52.25.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | php53 | 0 | 5.3.17-87.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | gd | 0 | 2.1.0-17.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | php5 | 0 | 5.5.14-83.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | php7 | 0 | 7.0.7-20.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP1 | gd | 0 | 2.1.0-17.1 |
| Ubuntu:14.04:LTS | libgd2 | 0 | 2.1.0-3ubuntu0.5 |
| Ubuntu:16.04:LTS | libgd2 | 0 | 2.1.1-4ubuntu0.16.04.5 |
Related vulnerabilities
- CVE-2017-6362 Double free vulnerability in the gdImagePngPtr function in libgd2 before 2.2.5 allows… Also affects libgd2
- CVE-2017-7890 The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics… Also affects libgd2
- CVE-2016-10166 Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD… Also affects libgd2
- CVE-2016-6132 The gdImageCreateFromTgaCtx function in the GD Graphics Library (aka libgd) before 2.2.3… Also affects libgd2
- CVE-2013-7456 gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.1.1, as used in PHP… Also affects libgd2
- CVE-2016-3074 Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote… Also affects libgd2
- CVE-2014-9709 The GetCode_ function in gd_gif_in.c in GD 2.1.1 and earlier, as used in PHP before… Also affects libgd2
- CVE-2014-2497 The gdImageCreateFromXpm function in gdxpm.c in libgd, as used in PHP 5.4.26 and earlier… Also affects libgd2