CVE-2019-6978
published 2019-01-28CVE-2019-6978: 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.
PriorityP344critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
4.42%
90.1th percentile
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
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | libgd2 | < libgd2 2.2.5-5.1 (bookworm) | libgd2 2.2.5-5.1 (bookworm) |
| libgd | libgd | — | — |
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-7v6r-3q36-qvvp: The GD Graphics Library (aka LibGD) 2
ghsa_unreviewed·2022-05-14
CVE-2019-6978 [CRITICAL] CWE-415 GHSA-7v6r-3q36-qvvp: The GD Graphics Library (aka LibGD) 2
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.
OSV
CVE-2019-6978: The GD Graphics Library (aka LibGD) 2
osv·2019-01-28·CVSS 9.8
CVE-2019-6978 [CRITICAL] CVE-2019-6978: The GD Graphics Library (aka LibGD) 2
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.
Ubuntu
GD vulnerabilities
vendor_ubuntu·2019-02-28
CVE-2019-6977 GD vulnerabilities
Title: GD vulnerabilities
Summary: Several security issues were fixed in GD.
It was discovered that GD incorrectly handled memory when processing
certain images. A remote attacker could use this issue with a specially
crafted image file to cause GD to crash, resulting in a denial of service,
or possibly execute arbitrary code.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c
vendor_redhat·2019-01-15·CVSS 9.8
CVE-2019-6978 [CRITICAL] CWE-416 gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c
gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c
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.
Package: gd (Red Hat Enterprise Linux 5) - Will not fix
Package: libwmf (Red Hat Enterprise Linux 5) - Will not fix
Package: php (Red Hat Enterprise Linux 5) - Not affected
Package: php53 (Red Hat Enterprise Linux 5) - Not affected
Package: gd (Red Hat Enterprise Linux 6) - Will not fix
Package: libwmf (Red Hat Enterprise Linux 6) - Will not fix
Package: php (Red Hat Enterprise Linux 6) - Not affected
Package: gd (Red Hat Enterprise Linux 7) - Fix deferred
Package: php (Red Hat Enterprise Linux 7) - Not affected
Package: php (Red Hat Enterprise Li
Debian
CVE-2019-6978: libgd2 - The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr()...
vendor_debian·2019·CVSS 9.8
CVE-2019-6978 [CRITICAL] CVE-2019-6978: libgd2 - The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr()...
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.
Scope: local
bookworm: resolved (fixed in 2.2.5-5.1)
bullseye: resolved (fixed in 2.2.5-5.1)
forky: resolved (fixed in 2.2.5-5.1)
sid: resolved (fixed in 2.2.5-5.1)
trixie: resolved (fixed in 2.2.5-5.1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-6978 gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c
bugzilla·2019-01-31·CVSS 9.8
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
CVE-2019-6978 gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c
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.
References:
https://github.com/libgd/libgd/issues/492
Upstream Patch:
https://github.com/libgd/libgd/commit/553702980ae89c83f2d6e254d62cf82e204956d0
https://github.com/php/php-src/commit/089f7c0bc28d399b0420aa6ef058e4c1c120b2ae
Discussion:
Created gd tracking bugs for this issue:
Affects: fedora-all [bug 1671391]
Created libwmf tracking bugs for this issue:
Affects: fedora-all [bug 1671392]
---
Analysis:
Basically a double-free in the gd library when handling gdImage Pointers. Can result in application crash. However you need need
Bugzilla
CVE-2019-6978 gd: double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c [fedora-all]
bugzilla·2019-01-31·CVSS 9.8
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 [fedora-all]
CVE-2019-6978 gd: double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects m
Bugzilla
CVE-2019-6978 libwmf: gd: double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c [fedora-all]
bugzilla·2019-01-31·CVSS 9.8
CVE-2019-6978 [CRITICAL] CVE-2019-6978 libwmf: gd: double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c [fedora-all]
CVE-2019-6978 libwmf: gd: double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue a
http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.htmlhttps://access.redhat.com/errata/RHSA-2019:2722https://github.com/libgd/libgd/commit/553702980ae89c83f2d6e254d62cf82e204956d0https://github.com/libgd/libgd/issues/492https://github.com/php/php-src/commit/089f7c0bc28d399b0420aa6ef058e4c1c120b2aehttps://lists.debian.org/debian-lts-announce/2019/01/msg00028.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/https://security.gentoo.org/glsa/201903-18https://usn.ubuntu.com/3900-1/https://www.debian.org/security/2019/dsa-4384http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.htmlhttps://access.redhat.com/errata/RHSA-2019:2722https://github.com/libgd/libgd/commit/553702980ae89c83f2d6e254d62cf82e204956d0https://github.com/libgd/libgd/issues/492https://github.com/php/php-src/commit/089f7c0bc28d399b0420aa6ef058e4c1c120b2aehttps://lists.debian.org/debian-lts-announce/2019/01/msg00028.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/https://security.gentoo.org/glsa/201903-18https://usn.ubuntu.com/3900-1/https://www.debian.org/security/2019/dsa-4384
2019-01-28
Published