Security Update for libgd2

libgd2 Updated 02 Oct 2025

Summary

07/04/2024
N/A
Yes i
Unrated
Not published

DLA-3781-1: libgd2 - security update. Affects libgd2 versions < 2.2.5-5.2+deb10u1. Fixed in 2.2.5-5.2+deb10u1. 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 a library for dynamically manipulating images. It provides functions to create, modify, and save images in various formats. The library is commonly used in web applications and graphic processing software. However, a vulnerability has been discovered in libgd2 that could potentially allow attackers to execute arbitrary code or cause denial of service.

Vulnerability Detail

The vulnerability, identified as CVE-2018-14553, CVE-2021-38115, and CVE-2021-40812, affects libgd2 version 0 and is present in Debian 10. It allows attackers to exploit buffer overflow and integer overflow issues, leading to potential remote code execution or denial of service attacks. The vulnerability arises from improper input validation and handling of image data. Attackers can craft malicious images that trigger these vulnerabilities when processed by applications using libgd2.

How To Fix

Minimum fixed version

2.2.5-5.2+deb10u1

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 specific workaround available for this vulnerability. However, as a general security measure, it is advisable to ensure that applications using libgd2 properly validate and sanitize user-supplied image data to mitigate the risk of exploitation.

Conclusion

libgd2 has been found to have a vulnerability that could potentially allow attackers to execute arbitrary code or cause denial of service attacks. It is crucial to update libgd2 to the latest version to address these vulnerabilities. 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 library for dynamically manipulating images, commonly used in web applications and graphic processing software.

The vulnerability could allow attackers to execute arbitrary code or cause denial of service attacks.

The vulnerability affects libgd2 version 0 in Debian 10.

To fix the vulnerability, update libgd2 to version 2.2.5-5.2+deb10u1 or later.

There is no specific workaround, but ensuring proper validation and sanitization of user-supplied image data can help mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for libgd2.

How To Fix

Minimum fixed version

2.2.5-5.2+deb10u1

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