Skip to content
Noroxi
CVE-2019-6978· NVD / CVE Program· CNA mitre

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.

Noroxi assessment

Priority: Plan (action score 40/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 4.4% (FIRST EPSS); higher than 91.3% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: gd (AlmaLinux:8) 2.2.5-7.el8; gd-devel (AlmaLinux:8) 2.2.5-7.el8; libwmf (AlmaLinux:8) 0.2.9-8.el8_0.

Add it to your regular patch cycle. Upgrade to gd (AlmaLinux:8) 2.2.5-7.el8; gd-devel (AlmaLinux:8) 2.2.5-7.el8; libwmf (AlmaLinux:8) 0.2.9-8.el8_0 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

CriticalCVSS 9.8 · v3.0—No exploit Fix available
Published
Jan 28, 2019
Updated
Jun 16, 2026
EPSS
4.4% · 91th percentile

Report tools

JSON

Action score

40

Plan

Add it to your regular patch cycle.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 4.4%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2019-6978

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
libgdlibgd
debiandebian linux
canonicalubuntu linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • canonical ubuntu linux14.04
  • canonical ubuntu linux16.04
  • canonical ubuntu linux18.04
  • canonical ubuntu linux18.10
  • debian debian linux8.0
  • debian debian linux9.0
  • libgd libgd2.2.5

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8gdbefore 2.2.5-7.el82.2.5-7.el8
AlmaLinux:8gd-develbefore 2.2.5-7.el82.2.5-7.el8
AlmaLinux:8libwmfbefore 0.2.9-8.el8_00.2.9-8.el8_0
AlmaLinux:8libwmf-develbefore 0.2.9-8.el8_00.2.9-8.el8_0
AlmaLinux:8libwmf-litebefore 0.2.9-8.el8_00.2.9-8.el8_0
Alpine:v3.10gdbefore 2.2.5-r22.2.5-r2
Debian:12libgd2before 2.2.5-5.12.2.5-5.1
Debian:8libgd2before 2.1.0-5+deb8u122.1.0-5+deb8u12
Debian:9libgd2before 2.2.4-2+deb9u42.2.4-2+deb9u4
openSUSE:Leap 15.0gdbefore 2.2.5-lp150.8.12.2.5-lp150.8.1
openSUSE:Tumbleweedgdbefore 2.3.3-1.12.3.3-1.1
Red Hat:enterprise_linux:7::clientlibwmfbefore 0:0.2.8.4-44.el70:0.2.8.4-44.el7
Red Hat:enterprise_linux:7::clientlibwmf-debuginfobefore 0:0.2.8.4-44.el70:0.2.8.4-44.el7
Red Hat:enterprise_linux:7::clientlibwmf-develbefore 0:0.2.8.4-44.el70:0.2.8.4-44.el7
Red Hat:enterprise_linux:7::clientlibwmf-litebefore 0:0.2.8.4-44.el70:0.2.8.4-44.el7
Red Hat:enterprise_linux:8::appstreamgdbefore 0:2.2.5-7.el80:2.2.5-7.el8
Red Hat:enterprise_linux:8::appstreamgd-debuginfobefore 0:2.2.5-7.el80:2.2.5-7.el8
Red Hat:enterprise_linux:8::appstreamgd-debugsourcebefore 0:2.2.5-7.el80:2.2.5-7.el8
Red Hat:enterprise_linux:8::appstreamgd-develbefore 0:2.2.5-7.el80:2.2.5-7.el8
Red Hat:enterprise_linux:8::appstreamgd-progs-debuginfobefore 0:2.2.5-7.el80:2.2.5-7.el8
Red Hat:enterprise_linux:8::appstreamlibwmfbefore 0:0.2.9-8.el8_00:0.2.9-8.el8_0
Red Hat:enterprise_linux:8::appstreamlibwmf-debuginfobefore 0:0.2.9-8.el8_00:0.2.9-8.el8_0
Red Hat:enterprise_linux:8::appstreamlibwmf-debugsourcebefore 0:0.2.9-8.el8_00:0.2.9-8.el8_0
Red Hat:enterprise_linux:8::appstreamlibwmf-litebefore 0:0.2.9-8.el8_00:0.2.9-8.el8_0

+11

Other highest-scoring records for the same primary product.

  • CVE-2019-6977gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as used in the imagecolormatch function in PHP before 5.
    56Plan
  • CVE-2016-3074Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote attackers to cause a denial of service (crash) or
    50Plan
  • CVE-2016-10166Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows rem
    42Plan

Published before and after this one in the same product

  • ← EarlierCVE-2017-6362Sep 7, 2017 · Double free vulnerability in the gdImagePngPtr function in libgd2 before 2.2.5 allows remote attackers to cause a denial of service via vect
    32Monitor
  • ← EarlierCVE-2018-1000222Aug 20, 2018 · Libgd version 2.2.5 contains a Double Free Vulnerability vulnerability in gdImageBmpPtr Function that can result in Remote Code Execution .
    36Monitor
  • Later →CVE-2019-11038Jun 18, 2019 · Uninitialized read in gdImageCreateFromXbm
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:gd2.2.5-7.el8 · AlmaLinux:8Package registry (OSV)
almalinux:gd-devel2.2.5-7.el8 · AlmaLinux:8Package registry (OSV)
almalinux:libwmf0.2.9-8.el8_0 · AlmaLinux:8Package registry (OSV)
almalinux:libwmf-devel0.2.9-8.el8_0 · AlmaLinux:8Package registry (OSV)
almalinux:libwmf-lite0.2.9-8.el8_0 · AlmaLinux:8Package registry (OSV)
alpine:gd2.2.5-r2 · Alpine:v3.10Package registry (OSV)
debian:libgd22.2.5-5.1 · Debian:12Package registry (OSV)
opensuse:gd2.2.5-lp150.8.1 · openSUSE:Leap 15.0Package registry (OSV)
opensuse:libwmf0.2.12-150000.4.4.1 · openSUSE:Leap 15.3Package registry (OSV)
red hat:gd0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:gd-debuginfo0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:gd-debugsource0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:gd-devel0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:gd-progs-debuginfo0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:libwmf0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:libwmf-debuginfo0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:libwmf-debugsource0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:libwmf-devel0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::crbPackage registry (OSV)
red hat:libwmf-lite0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:libwmf-lite-debuginfo0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
rocky linux:gd0:2.2.5-7.el8 · Rocky Linux:8Package registry (OSV)
rocky linux:libwmf0:0.2.9-8.el8_0 · Rocky Linux:8Package registry (OSV)
suse:gd2.1.0-24.12.1 · SUSE:Linux Enterprise Desktop 12 SP3Package registry (OSV)
suse:libwmf0.2.12-150000.4.4.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP4Package registry (OSV)
suse:php535.3.17-112.53.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4Package registry (OSV)
suse:php77.0.7-50.63.1 · SUSE:Linux Enterprise Module for Web and Scripting 12Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

Weakness class (CWE)

CWE-415 · Double Free

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records