Vulnerabilities / CVE-2019-6978

critical

CVE-2019-6978

gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c

Published Modified CWE 415
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by AlmaLinux (medium), Oracle (medium), Rocky Linux (medium), Red Hat (low), Amazon (low), Ubuntu (low).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 2.0libgd2.2.5-3.ph2
Photon OS 3.0libgd2.2.5-3.ph3
alma 8gd, gd-devel, libwmf and 2 more2.2.5-7.el8 and 1 more
alpine 3.10gd2.2.5-r2
alpine 3.11gd2.2.5-r2
alpine 3.12gd2.2.5-r2
alpine 3.13gd2.2.5-r2
alpine 3.14gd2.2.5-r2
alpine 3.15gd2.2.5-r2
alpine 3.16gd2.2.5-r2
alpine 3.17gd2.2.5-r2
alpine 3.18gd2.2.5-r2
Show all 69 entries from 44 sources
SourcePackageFixed in
Photon OS 2.0libgd2.2.5-3.ph2
Photon OS 3.0libgd2.2.5-3.ph3
alma 8gd2.2.5-7.el8
alma 8gd-devel2.2.5-7.el8
alma 8libwmf0.2.9-8.el8_0
alma 8libwmf-devel0.2.9-8.el8_0
alma 8libwmf-lite0.2.9-8.el8_0
alpine 3.10gd2.2.5-r2
alpine 3.11gd2.2.5-r2
alpine 3.12gd2.2.5-r2
alpine 3.13gd2.2.5-r2
alpine 3.14gd2.2.5-r2
alpine 3.15gd2.2.5-r2
alpine 3.16gd2.2.5-r2
alpine 3.17gd2.2.5-r2
alpine 3.18gd2.2.5-r2
alpine 3.19gd2.2.5-r2
alpine 3.20gd2.2.5-r2
alpine 3.21gd2.2.5-r2
alpine 3.22gd2.2.5-r2
alpine 3.23gd2.2.5-r2
alpine 3.24gd2.2.5-r2
alpine 3.6gd2.2.5-r2
alpine 3.7gd2.2.5-r2
alpine 3.8gd2.2.5-r2
alpine 3.9gd2.2.5-r2
alpine edgegd2.2.5-r2
amazon linux 1libwmf0.2.8.4-41.13.amzn1
amazon linux 1libwmf-debuginfo0.2.8.4-41.13.amzn1
amazon linux 1libwmf-devel0.2.8.4-41.13.amzn1
amazon linux 1libwmf-lite0.2.8.4-41.13.amzn1
amazon linux 2libwmf0.2.8.4-41.amzn2.0.3
amazon linux 2libwmf-debuginfo0.2.8.4-41.amzn2.0.3
amazon linux 2libwmf-devel0.2.8.4-41.amzn2.0.3
amazon linux 2libwmf-lite0.2.8.4-41.amzn2.0.3
debian 11libgd22.2.5-5.1
debian 12libgd22.2.5-5.1
debian 13libgd22.2.5-5.1
debian 14libgd22.2.5-5.1
debian 8libgd22.1.0-5+deb8u12
debian 9libgd22.2.4-2+deb9u4
echolibgd22.2.5-5.1
Oracle Linux 7libwmf0.2.8.4-44.el7
Oracle Linux 7libwmf-devel0.2.8.4-44.el7
Oracle Linux 7libwmf-lite0.2.8.4-44.el7
Oracle Linux 8gd2.2.5-7.el8
Oracle Linux 8gd-devel2.2.5-7.el8
Oracle Linux 8libwmf0.2.9-8.el8_0
Oracle Linux 8libwmf-devel0.2.9-8.el8_0
Oracle Linux 8libwmf-lite0.2.9-8.el8_0
Red Hatgdno fix listed
Red Hatgd-develno fix listed
Red Hatgd-progsno fix listed
Red Hatlibwmfno fix listed
Red Hatlibwmf-develno fix listed
Red Hatlibwmf-liteno fix listed
rocky 8gd2.2.5-7.el8
rocky 8gd-devel2.2.5-7.el8
rocky 8libwmf0.2.9-8.el8_0
rocky 8libwmf-lite0.2.9-8.el8_0
seal Red Hat 7gd2.0.35-27.el7_9+sp999
seal Red Hat 7seal-gd2.0.35-27.el7_9+sp999
ubuntu 14.04libgd22.1.0-3ubuntu0.11
ubuntu 14.04-ESMlibgd22.1.0-3ubuntu0.11
ubuntu 16.04libgd22.1.1-4ubuntu0.16.04.11
ubuntu 16.04-ESMlibgd22.1.1-4ubuntu0.16.04.11
ubuntu 18.04libgd22.2.5-4ubuntu0.3
ubuntu 18.04-ESMlibgd22.2.5-4ubuntu0.3
ubuntu 18.10libgd22.2.5-4ubuntu1.1

References

All 28 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.