Moderate: gd security update

gd Updated 02 Oct 2025

Summary

03/11/2020
N/A
Yes i
Unrated
Not published

ALSA-2020:4659: Moderate: gd security update. Affects gd versions < 2.2.5-7.el8. Fixed in 2.2.5-7.el8. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

GD is an open source code library for the dynamic creation of images by programmers. It provides functionality for creating images in various formats such as PNG, JPEG, GIF, WebP, XPM, and BMP. The library is widely used in web development and other applications that involve image manipulation.

Vulnerability Detail

This security update addresses multiple vulnerabilities in the gd library:

  1. CVE-2019-6977: Heap-based buffer overflow in gdImageColorMatch() in gd_color_match.c

This vulnerability could allow an attacker to execute arbitrary code or cause a denial of service by providing a specially crafted image file.

  1. CVE-2018-14553: NULL pointer dereference in gdImageClone

This vulnerability could lead to a crash or potential code execution if a NULL pointer is dereferenced during the cloning of an image.

  1. CVE-2019-6978: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c

This vulnerability could be exploited to execute arbitrary code or cause a denial of service by providing a specially crafted image file that triggers a double free condition.

These vulnerabilities have a moderate impact and can be exploited remotely without authentication.

How To Fix

Minimum fixed version

2.2.5-7.el8

This is the first release that contains the fix.

sudo dnf update gd

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

Conclusion

In conclusion, the gd library is affected by multiple vulnerabilities that could allow an attacker to execute arbitrary code or cause a denial of service. It is recommended to update the gd package to the latest version to mitigate these vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for gd →

Share this vulnerability

FAQ

GD is an open source code library for the dynamic creation of images by programmers. It is commonly used in web development and other applications that involve image manipulation.

These vulnerabilities can allow an attacker to execute arbitrary code or cause a denial of service by providing a specially crafted image file.

Yes, these vulnerabilities can be exploited remotely without authentication.

No, there is no known workaround for these vulnerabilities. It is recommended to update the gd package to the latest version.

To update the gd package, you can use the package manager update command specific to your operating system. For AlmaLinux 8, you can use the command 'sudo dnf update gd'.

Related vulnerabilities

Recent vulnerabilities recorded for gd.

How To Fix

Minimum fixed version

2.2.5-7.el8

This is the first release that contains the fix.

sudo dnf update gd

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