CVE-2019-6978 json
The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr() functions in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c.
published 7y ago modified 4mo ago also EUVD-2019-16530
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.5%
- EPSS 4.5% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr() functions in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c. NOTE: PHP is unaffected.
Patch / fix
- libgd2 Debian 14, Debian 13, Debian 12 2.2.5-5.1
debian advisories DEBIAN-CVE-2019-6978
- libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.11
- libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.11
- libgd2 Ubuntu 18.04 LTS 2.2.5-4ubuntu0.3
ubuntu advisories UBUNTU-CVE-2019-6978
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- gd RHEL 8 2.2.5-7.el8
- libwmf RHEL 7 0.2.8.4-44.el7
- libwmf-lite RHEL 7 0.2.8.4-44.el7
- libwmf RHEL 8 0.2.9-8.el8_0
- libwmf-lite RHEL 8 0.2.9-8.el8_0
red hat advisories RHSA-2020:4659RHSA-2020:3943RHSA-2019:2722
- libwmf SLE Workstation Extension 12 SP5, SLE Software Development Kit 12 SP5 0.2.12-243.3.1
- libwmf SLE Workstation Extension 15 SP3, SLE Module for Package Hub 15 SP4, openSUSE Leap 15.4 +1 more 0.2.12-150000.4.4.1
- gd SLE Module for Desktop Applications 15, SLE Module for Basesystem 15 2.2.5-4.6.1
- gd SLES for SAP 12 SP4, SLES for SAP 12 SP3, SLES 12 SP4 +7 more 2.1.0-24.12.1
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 5.3.17-112.53.1
- php7 SLE Software Development Kit 12 SP4, SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 7.0.7-50.63.1
suse advisories SUSE-SU-2022:1560-1SUSE-SU-2022:1516-1SUSE-SU-2019:0771-1SUSE-SU-2019:0747-1SUSE-SU-2019:13961-1SUSE-SU-2019:0333-1
- gd openSUSE Tumbleweed 2.3.3-1.1
- gd openSUSE Leap 15.0 2.2.5-lp150.8.1
opensuse advisories openSUSE-SU-2024:10777-1openSUSE-SU-2019:1148-1
- gd AlmaLinux 8 2.2.5-7.el8
- libwmf AlmaLinux 8 0.2.9-8.el8_0
- libwmf-lite AlmaLinux 8 0.2.9-8.el8_0
almalinux advisories ALSA-2020:4659ALSA-2019:2722
- gd Rocky Linux 8 2.2.5-7.el8
- libwmf Rocky Linux 8 0.2.9-8.el8_0
rocky linux advisories RLSA-2020:4659RLSA-2019:2722
- gd Alpine 3.24, Alpine 3.23, Alpine 3.22 +16 more 2.2.5-r2
alpine advisories ALPINE-CVE-2019-6978
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- gd Arch Linux 2.2.5-2
arch linux advisories AVG-865
- github.com/php/php-src@089f7c0 commit
- github.com/libgd/libgd@5537029 commit
- github.com/libgd/libgd/issues/492 advisory
Is CVE-2019-6978 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-6978 updated cvss 5.3
gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c
-
Red Hat Enterprise Linux 5 gd, libwmf Red Hat Enterprise Linux 6 gd, libwmf, gd-progs, libwmf-liteaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 7 gd, gd-progsaffected: no fix available “Fix deferred”
-
Red Hat CodeReady Linux Builder (v. 8) libwmf-devel 0.2.9-8.el8_0, libwmf-debuginfo 0.2.9-8.el8_0, libwmf-debugsource 0.2.9-8.el8_0, libwmf-lite-debuginfo 0.2.9-8.el8_0 Red Hat Enterprise Linux AppStream (v. 8) gd 2.2.5-7.el8, libwmf 0.2.9-8.el8_0, libwmf-lite 0.2.9-8.el8_0fixed: vendor fix RHSA-2019:2722
-
Red Hat Enterprise Linux Client (v. 7) libwmf 0.2.8.4-44.el7, libwmf-lite 0.2.8.4-44.el7 Red Hat Enterprise Linux Client Optional (v. 7) libwmf-devel 0.2.8.4-44.el7, libwmf-debuginfo 0.2.8.4-44.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) libwmf 0.2.8.4-44.el7, libwmf-lite 0.2.8.4-44.el7 Red Hat Enterprise Linux Server (v. 7) libwmf 0.2.8.4-44.el7, libwmf-lite 0.2.8.4-44.el7 Red Hat Enterprise Linux Server Optional (v. 7) libwmf 0.2.8.4-44.el7 Red Hat Enterprise Linux Workstation (v. 7) libwmf 0.2.8.4-44.el7, libwmf-lite 0.2.8.4-44.el7fixed: vendor fix RHSA-2020:3943
+1 more productsfewer
Red Hat Enterprise Linux Workstation Optional (v. 7) libwmf-devel 0.2.8.4-44.el7, libwmf-debuginfo 0.2.8.4-44.el7 -
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 more Red Hat Software Collections rh-php70-php, rh-php71-php, rh-php70-php-gd, rh-php71-php-gd, rh-php70-php-cli, rh-php70-php-dba, +52 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.45% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-415 Double Free
References
-
github.com
/php/php-src/commit/089f7c0bc28d399b0420aa6ef058e4c1c120b2ae
patch, third-party-advisory
-
github.com
/libgd/libgd/commit/553702980ae89c83f2d6e254d62cf82e204956d0
patch, third-party-advisory
-
github.com
/libgd/libgd/issues/492
patch, third-party-advisory
-
usn.ubuntu.com
/3900-1/
vendor-advisory, third-party-advisory
-
debian.org
/security/2019/dsa-4384
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201903-18
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-04/msg00025.html
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-04/msg00031.html
vendor-advisory
-
access.redhat.com
/errata/RHSA-2019:2722
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2019/01/msg00028.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2019-6978
- NVD CVE-2019-6978
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.