Critical Buffer Overflow Vulnerability in GD Package: Important Security Update

gd Updated 06 Oct 2026

Summary

05/10/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:75680: Important: gd security update. Affects gd versions < 2.2.5-8.el8_10. Fixed in 2.2.5-8.el8_10. 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

GD is an open-source code library widely used for the dynamic creation of images in various formats such as PNG, JPEG, GIF, WebP, XPM, and BMP. It is commonly utilized by developers to generate images on-the-fly for web applications and other software. The library's functionality is crucial for applications that require image manipulation and generation. However, GD has been found to have a significant vulnerability that could lead to severe security issues if not addressed promptly.

Vulnerability Detail

The vulnerability identified in the GD library is a buffer overflow that occurs when processing specially crafted GIF files. This flaw, documented as CVE-2026-9672, can allow an attacker to exploit the vulnerability by sending a malicious GIF file, potentially leading to arbitrary code execution or application crashes. The ramifications of this vulnerability are severe, as it could compromise the integrity and security of applications relying on the GD library for image processing.

How To Fix

Minimum fixed version

2.2.5-8.el8_10

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 →

Workaround

As a temporary workaround, it is advisable to avoid processing untrusted or unknown GIF files until the GD library is updated to the patched version. Additionally, implementing strict validation and sanitization of input files can help mitigate the risk of exploitation.

Conclusion

The GD library has a critical buffer overflow vulnerability that poses significant security risks. It is crucial for users to update to the patched version to safeguard their applications. By following the recommended steps and utilizing tools like Vulert, developers can ensure their software remains secure against this and other vulnerabilities.

See every vulnerability recorded for gd →

Share this vulnerability

FAQ

The GD library is an open-source code library used for dynamic image creation and manipulation in various formats.

A buffer overflow vulnerability occurs when a program writes more data to a buffer than it can hold, potentially leading to unexpected behavior or security breaches.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Yes, avoid processing untrusted GIF files and implement strict validation and sanitization of input files as a temporary measure.

For detailed information, refer to the CVE page for CVE-2026-9672, which outlines the impact, CVSS score, and acknowledgments related to this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for gd.

How To Fix

Minimum fixed version

2.2.5-8.el8_10

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