Denial-of-Service Attack in libgd2

libgd2 Updated 02 Oct 2025

Summary

19/01/2018
N/A
Yes i
Unrated
Not published

DLA-1248-1: libgd2 - security update. Affects libgd2 versions < 2.0.36~rc1~dfsg-6.1+deb7u11. Fixed in 2.0.36~rc1~dfsg-6.1+deb7u11. 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 Your last release was probably never penetration tested 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 an image library used for manipulating images. It provides functions to create, modify, and save images in various formats. The library is widely used in applications that require image processing capabilities. However, a vulnerability has been discovered in libgd2 that could be exploited to launch a denial-of-service attack. This vulnerability arises from a signedness confusion issue when processing corrupt image files, leading to an infinite loop.

Vulnerability Detail

The vulnerability in libgd2 allows an attacker to cause a denial-of-service condition by providing a specially crafted image file. When the library attempts to process the corrupt file, it encounters a signedness confusion, which triggers an infinite loop. This loop consumes excessive CPU resources and may cause the affected application to become unresponsive or crash. This vulnerability can be exploited remotely by an attacker who can trick a user or application into opening a malicious image file.

How To Fix

Minimum fixed version

2.0.36~rc1~dfsg-6.1+deb7u11

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 provided fix by upgrading the libgd2 package to the patched version.

Conclusion

The libgd2 image library is vulnerable to a denial-of-service attack due to a signedness confusion issue. To mitigate this vulnerability, it is recommended to upgrade the libgd2 package to version 2.0.36~rc1~dfsg-6.1+deb7u11 or later. No known workaround exists for this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libgd2 →

Share this vulnerability

FAQ

libgd2 is an image library used for manipulating images in various formats. It provides functions for creating, modifying, and saving images.

This vulnerability allows an attacker to launch a denial-of-service attack by providing a specially crafted image file. It can cause the affected application to become unresponsive or crash.

Yes, this vulnerability can be exploited remotely by tricking a user or application into opening a malicious image file.

No, there is no known workaround for this vulnerability. It is crucial to upgrade the libgd2 package to the patched version.

You can obtain the fixed version of libgd2 from the official Debian repository or through package management tools.

Related vulnerabilities

Recent vulnerabilities recorded for libgd2.

How To Fix

Minimum fixed version

2.0.36~rc1~dfsg-6.1+deb7u11

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