Security Update for libgd2

libgd2 Updated 02 Oct 2025

Summary

26/07/2016
N/A
Yes i
Unrated
Not published

DLA-563-1: libgd2 - security update. Affects libgd2 versions < 2.0.36~rc1~dfsg-6.1+deb7u5. Fixed in 2.0.36~rc1~dfsg-6.1+deb7u5. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libgd2 is a library for dynamically creating images. It provides functions to create and manipulate images in various formats, including GIF. The library is widely used in applications that require image generation and manipulation capabilities.

Vulnerability Detail

A global out of bounds read vulnerability has been discovered in libgd2. This vulnerability occurs when encoding GIF from malformed input. When provided with invalid inputs, libgd2 may encounter the end-of-file (EOF) marker prematurely, resulting in a negative index. Subsequent data can then cause an underflow in the masks array. This vulnerability could potentially lead to information disclosure or denial of service.

How To Fix

Minimum fixed version

2.0.36~rc1~dfsg-6.1+deb7u5

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 is no known workaround for this vulnerability. It is essential to apply the security update to ensure the integrity and security of your system.

Conclusion

It is crucial to promptly apply the recommended security update for libgd2 to mitigate the risk of information disclosure or denial of service. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libgd2 →

Share this vulnerability

FAQ

libgd2 is a library for dynamically creating images in various formats, including GIF.

This vulnerability could potentially lead to information disclosure or denial of service.

To fix this vulnerability, you need to upgrade your libgd2 packages to version 2.0.36~rc1~dfsg-6.1+deb7u5 or later.

No, there is no known workaround for this vulnerability. Applying the security update is the recommended solution.

You can find more information about Debian LTS security advisories, including how to apply updates and frequently asked questions, at https://wiki.debian.org/LTS.

Related vulnerabilities

Recent vulnerabilities recorded for libgd2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.0.36~rc1~dfsg-6.1+deb7u5

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