Security Update for libgd2 Package

libgd2 Updated 02 Oct 2025

Summary

18/10/2016
N/A
Yes i
Unrated
Not published

DLA-665-1: libgd2 - security update. Affects libgd2 versions < 2.0.36~rc1~dfsg-6.1+deb7u6. Fixed in 2.0.36~rc1~dfsg-6.1+deb7u6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The libgd2 package is a graphics library that allows developers to dynamically create and manipulate images. It provides functions for reading and writing various image formats, as well as performing image operations such as resizing and cropping. The package is widely used in applications that require image processing capabilities.

Vulnerability Detail

The libgd2 package is affected by two vulnerabilities:

  1. CVE-2016-6911: This vulnerability is an invalid read in the gdImageCreateFromTiffPtr() function. It could allow an attacker to read uninitialized or out-of-bounds memory, potentially leading to information disclosure or a crash. However, this vulnerability is not present in the Debian 7 Wheezy version of the package.

  2. CVE-2016-8670: This vulnerability is a stack buffer overflow in the GD dynamicGetbuf function. An attacker could exploit this vulnerability to execute arbitrary code or cause a denial of service by crashing the application.

How To Fix

Minimum fixed version

2.0.36~rc1~dfsg-6.1+deb7u6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libgd2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There are no known workarounds for these vulnerabilities.

Conclusion

To ensure the security of your system, it is highly recommended to upgrade the libgd2 package to version 2.0.36~rc1~dfsg-6.1+deb7u6 or later. This will help protect against potential information disclosure, denial of service, or remote code execution. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for libgd2 →

Share this vulnerability

FAQ

The impact of these vulnerabilities can vary depending on the specific use case and the presence of other security measures. However, they could potentially lead to information disclosure, denial of service, or remote code execution.

At the time of this advisory, there are no known public exploits for these vulnerabilities. However, it is always recommended to apply security updates as soon as they become available.

In most cases, it is not necessary to restart the application after updating the libgd2 package. However, if the application dynamically loads the affected library, it may be required to restart or reload the application for the changes to take effect.

Yes, these vulnerabilities can be exploited remotely if the affected application is exposed to untrusted network connections. It is important to apply the security update to mitigate the risk.

You can find more information about Debian LTS security advisories, including how to apply updates and frequently asked questions, on the Debian Wiki page dedicated to LTS security advisories.

Related vulnerabilities

Recent vulnerabilities recorded for libgd2.

How To Fix

Minimum fixed version

2.0.36~rc1~dfsg-6.1+deb7u6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libgd2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback