Vulnerability in libgd2 - Security Update

libgd2 Updated 02 Oct 2025

Summary

29/01/2017
N/A
Yes i
Unrated
Not published

DLA-804-1: libgd2 - security update. Affects libgd2 versions < 2.0.36~rc1~dfsg-6.1+deb7u8. Fixed in 2.0.36~rc1~dfsg-6.1+deb7u8. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libgd2 is a graphics library that allows developers to dynamically create images using various formats. It is widely used in applications for image manipulation and generation. This vulnerability affects libgd2 in Debian 7 Wheezy.

Vulnerability Detail

Multiple security issues have been discovered in the GD Graphics Library used by libgd2. These vulnerabilities can potentially lead to the execution of arbitrary code or cause application crashes. The specific vulnerabilities are as follows:

  • CVE-2016-9317: A signed integer overflow in gd_io.c
  • CVE-2016-10167: Improper handling of missing image data can cause a crash
  • CVE-2016-10168: Integer overflows due to the way GD2 stores the number of horizontal and vertical chunks

These vulnerabilities can be exploited by an attacker to gain unauthorized access to systems or disrupt their normal operation.

How To Fix

Minimum fixed version

2.0.36~rc1~dfsg-6.1+deb7u8

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. It is essential to apply the security update as soon as possible to mitigate the risk.

Conclusion

Multiple security vulnerabilities have been identified in libgd2, which can potentially lead to unauthorized access or service disruption. It is crucial to upgrade to the latest version of the libgd2 package to mitigate these risks. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libgd2 →

Share this vulnerability

FAQ

libgd2 is a graphics library used for image manipulation and generation in various applications.

The vulnerability affects libgd2 version 2.0.36~rc1~dfsg-6.1+deb7u8 and earlier in Debian 7 Wheezy.

These vulnerabilities can allow an attacker to execute arbitrary code or cause application crashes, potentially leading to unauthorized access or disruption of services.

To fix these vulnerabilities, it is recommended to upgrade the libgd2 package to version 2.0.36~rc1~dfsg-6.1+deb7u8 or later.

There are no known workarounds for these vulnerabilities. Applying the security update is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for libgd2.

How To Fix

Minimum fixed version

2.0.36~rc1~dfsg-6.1+deb7u8

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