cve.bz

CVE-2019-6978 Double Free

9.8 criticalEPSS 4.5%Fix available

Critical (9.8). EPSS 4.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.5% (unchanged from 4.5% a week ago; 4.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-415 Double Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-6978 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-6978?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-6978?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-6978 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libgd:libgd2.2.5
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libgd22.1.0-5+deb8u12DLA-1651-1
Debian9libgd22.2.4-2+deb9u4DSA-4384-1
Debian12, 13, 14libgd22.2.5-5.1DEBIAN-CVE-2019-6978
Ubuntu14.04:LTSlibgd22.1.0-3ubuntu0.11UBUNTU-CVE-2019-6978 USN-3900-1
Ubuntu16.04:LTSlibgd22.1.1-4ubuntu0.16.04.11UBUNTU-CVE-2019-6978 USN-3900-1
Ubuntu18.04:LTSlibgd22.2.5-4ubuntu0.3UBUNTU-CVE-2019-6978 USN-3900-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morelibwmf, libwmf-lite, libwmf-devel and 1 more0:0.2.8.4-44.el7RHSA-2020:3943
Red Hatenterprise_linux:8::appstreamgd, gd-devel, gd-debuginfo and 2 more0:2.2.5-7.el8RHSA-2020:4659
Red Hatenterprise_linux:8::appstreamlibwmf, libwmf-lite, libwmf-debuginfo and 2 more0:0.2.9-8.el8_0RHSA-2019:2722
Red Hatenterprise_linux:8::crblibwmf-devel, libwmf-debuginfo, libwmf-debugsource and 1 more0:0.2.9-8.el8_0RHSA-2019:2722
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP3 and 7 moregd2.1.0-24.12.1SUSE-SU-2019:0747-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Desktop Applications 15gd2.2.5-4.6.1SUSE-SU-2019:0771-1
SUSELinux Enterprise Module for Package Hub 15 SP4, Linux Enterprise Workstation Extension 15 SP3libwmf0.2.12-150000.4.4.1SUSE-SU-2022:1516-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP3, Linux Enterprise Software Development Kit 12 SP4php77.0.7-50.63.1SUSE-SU-2019:0333-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4php535.3.17-112.53.1SUSE-SU-2019:13961-1
SUSELinux Enterprise Software Development Kit 12 SP5, Linux Enterprise Workstation Extension 12 SP5libwmf0.2.12-243.3.1SUSE-SU-2022:1560-1
openSUSELeap 15.0gd2.2.5-lp150.8.1openSUSE-SU-2019:1148-1
openSUSELeap 15.3, Leap 15.4libwmf0.2.12-150000.4.4.1SUSE-SU-2022:1516-1
openSUSETumbleweedgd2.3.3-1.1openSUSE-SU-2024:10777-1
AlmaLinux8gd, gd-devel2.2.5-7.el8ALSA-2020:4659
AlmaLinux8libwmf, libwmf-lite, libwmf-devel0.2.9-8.el8_0ALSA-2019:2722
Rocky Linux8gd0:2.2.5-7.el8RLSA-2020:4659
Rocky Linux8libwmf0:0.2.9-8.el8_0RLSA-2019:2722
Alpinev3.6, v3.7, v3.8 and 16 moregd2.2.5-r2ALPINE-CVE-2019-6978

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7libwmf-0:0.2.8.4-44.el7Fixed 2020-09-29RHSA-2020:3943
Red Hat Enterprise Linux 8libwmf-0:0.2.9-8.el8_0Fixed 2019-09-12RHSA-2019:2722
Red Hat Enterprise Linux 8gd-0:2.2.5-7.el8Fixed 2020-11-04RHSA-2020:4659
Red Hat Enterprise Linux 5gdWill not fix
Red Hat Enterprise Linux 5libwmfWill not fix
Red Hat Enterprise Linux 5phpNot affected
Red Hat Enterprise Linux 5php53Not affected
Red Hat Enterprise Linux 6gdWill not fix
Red Hat Enterprise Linux 6libwmfWill not fix
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 7gdFix deferred
Red Hat Enterprise Linux 7phpNot affected
Red Hat Enterprise Linux 8phpNot affected
Red Hat Software Collectionsrh-php70-phpNot affected
Red Hat Software Collectionsrh-php71-phpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-6978.

References

Check your stackJSON