# CVE-2019-6977: gd: GD is an open source code library for the dynamic creation of images by programmers

CVE-2019-6977 is fixed in 4 products on 1 platform, first by libgd-tools 2.2.5-4ubuntu0.3, released January 27, 2019. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2019-6977
- Priority: High
- CVSS: 8.8 (Moderate)
- EPSS: 0.7150
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 25, 2019

## Description

GD is an open source code library for the dynamic creation of images by programmers. GD creates PNG, JPEG, GIF, WebP, XPM, BMP images, among other formats.   Security Fix(es):  * gd: Heap-based buffer overflow in gdImageColorMatch() in gd_color_match.c (CVE-2019-6977)  * gd: NULL pointer dereference in gdImageClone (CVE-2018-14553)  * gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c (CVE-2019-6978)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.  Additional Changes:  For detailed information on changes in this release, see the Red Hat Enterprise Linux 8.3 Release Notes linked from the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | gd RHEL 8 | 0:2.2.5-7.el8 | [RHSA-2020:4659](https://patchblox.com/security/data/fix/linux/rhsa-2020-4659.md) | Nov 4, 2020 |
| Linux | gd ol 8 | 0:2.2.5-7.el8 | [ELSA-2020-4659](https://patchblox.com/security/data/fix/linux/elsa-2020-4659.md) | Nov 10, 2020 |
| Linux | gd-devel RHEL 8 | 0:2.2.5-7.el8 | [RHSA-2020:4659](https://patchblox.com/security/data/fix/linux/rhsa-2020-4659.md) | Nov 4, 2020 |
| Linux | gd-devel ol 8 | 0:2.2.5-7.el8 | [ELSA-2020-4659](https://patchblox.com/security/data/fix/linux/elsa-2020-4659.md) | Nov 10, 2020 |
| Linux | libgd-tools Ubuntu 18.04.6 LTS (bionic) | 2.2.5-4ubuntu0.3 | [libgd-tools 2.2.5-4ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgd-tools-2.2.5-4ubuntu0.3.md) | Jan 27, 2019 |
| Linux | libgd3 Ubuntu 18.04.6 LTS (bionic) | 2.2.5-4ubuntu0.3 | [libgd3 2.2.5-4ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgd3-2.2.5-4ubuntu0.3.md) | Jan 27, 2019 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
