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.
- BDU:2019-01286
- ALSA-2019:2722
- ALSA-2020:4659
- DLA-1651-1
- DSA-4384-1
- openSUSE-SU-2019:1148-1
- openSUSE-SU-2024:10777-1
- RHSA-2019:2722
- RHSA-2020:3943
- RHSA-2020:4659
- RLSA-2019:2722
- RLSA-2020:4659
- SUSE-SU-2019:0333-1
- SUSE-SU-2019:0747-1
- SUSE-SU-2019:0771-1
- SUSE-SU-2019:13961-1
- SUSE-SU-2022:1516-1
- SUSE-SU-2022:1560-1
- Published
- Jan 28, 2019
- Updated
- Jun 16, 2026
- EPSS
- 4.4% · 91th percentile
- CWE
- CWE-415
Report tools
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.
Running WordPress? Scan your site free with WP Lens
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 helpAffected 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.
| Vendor | Product | CPE |
|---|---|---|
| libgd | libgd | cpe:2.3:a:libgd:libgd |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | gd | before 2.2.5-7.el8 | 2.2.5-7.el8 |
| AlmaLinux:8 | gd-devel | before 2.2.5-7.el8 | 2.2.5-7.el8 |
| AlmaLinux:8 | libwmf | before 0.2.9-8.el8_0 | 0.2.9-8.el8_0 |
| AlmaLinux:8 | libwmf-devel | before 0.2.9-8.el8_0 | 0.2.9-8.el8_0 |
| AlmaLinux:8 | libwmf-lite | before 0.2.9-8.el8_0 | 0.2.9-8.el8_0 |
| Alpine:v3.10 | gd | before 2.2.5-r2 | 2.2.5-r2 |
| Debian:12 | libgd2 | before 2.2.5-5.1 | 2.2.5-5.1 |
| Debian:8 | libgd2 | before 2.1.0-5+deb8u12 | 2.1.0-5+deb8u12 |
| Debian:9 | libgd2 | before 2.2.4-2+deb9u4 | 2.2.4-2+deb9u4 |
| openSUSE:Leap 15.0 | gd | before 2.2.5-lp150.8.1 | 2.2.5-lp150.8.1 |
| openSUSE:Tumbleweed | gd | before 2.3.3-1.1 | 2.3.3-1.1 |
| Red Hat:enterprise_linux:7::client | libwmf | before 0:0.2.8.4-44.el7 | 0:0.2.8.4-44.el7 |
| Red Hat:enterprise_linux:7::client | libwmf-debuginfo | before 0:0.2.8.4-44.el7 | 0:0.2.8.4-44.el7 |
| Red Hat:enterprise_linux:7::client | libwmf-devel | before 0:0.2.8.4-44.el7 | 0:0.2.8.4-44.el7 |
| Red Hat:enterprise_linux:7::client | libwmf-lite | before 0:0.2.8.4-44.el7 | 0:0.2.8.4-44.el7 |
| Red Hat:enterprise_linux:8::appstream | gd | before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
| Red Hat:enterprise_linux:8::appstream | gd-debuginfo | before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
| Red Hat:enterprise_linux:8::appstream | gd-debugsource | before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
| Red Hat:enterprise_linux:8::appstream | gd-devel | before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
| Red Hat:enterprise_linux:8::appstream | gd-progs-debuginfo | before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
| Red Hat:enterprise_linux:8::appstream | libwmf | before 0:0.2.9-8.el8_0 | 0:0.2.9-8.el8_0 |
| Red Hat:enterprise_linux:8::appstream | libwmf-debuginfo | before 0:0.2.9-8.el8_0 | 0:0.2.9-8.el8_0 |
| Red Hat:enterprise_linux:8::appstream | libwmf-debugsource | before 0:0.2.9-8.el8_0 | 0:0.2.9-8.el8_0 |
| Red Hat:enterprise_linux:8::appstream | libwmf-lite | before 0:0.2.9-8.el8_0 | 0:0.2.9-8.el8_0 |
+11
Same product
libgd: all recordsOther 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 rem42Plan
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 vect32Monitor
- ← 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 gdImageCreateFromXbm22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:gd | 2.2.5-7.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:gd-devel | 2.2.5-7.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libwmf | 0.2.9-8.el8_0 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libwmf-devel | 0.2.9-8.el8_0 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libwmf-lite | 0.2.9-8.el8_0 · AlmaLinux:8 | Package registry (OSV) |
| alpine:gd | 2.2.5-r2 · Alpine:v3.10 | Package registry (OSV) |
| debian:libgd2 | 2.2.5-5.1 · Debian:12 | Package registry (OSV) |
| opensuse:gd | 2.2.5-lp150.8.1 · openSUSE:Leap 15.0 | Package registry (OSV) |
| opensuse:libwmf | 0.2.12-150000.4.4.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| red hat:gd | 0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:gd-debuginfo | 0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:gd-debugsource | 0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:gd-devel | 0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:gd-progs-debuginfo | 0:2.2.5-7.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libwmf | 0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libwmf-debuginfo | 0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libwmf-debugsource | 0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libwmf-devel | 0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::crb | Package registry (OSV) |
| red hat:libwmf-lite | 0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libwmf-lite-debuginfo | 0:0.2.9-8.el8_0 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| rocky linux:gd | 0:2.2.5-7.el8 · Rocky Linux:8 | Package registry (OSV) |
| rocky linux:libwmf | 0:0.2.9-8.el8_0 · Rocky Linux:8 | Package registry (OSV) |
| suse:gd | 2.1.0-24.12.1 · SUSE:Linux Enterprise Desktop 12 SP3 | Package registry (OSV) |
| suse:libwmf | 0.2.12-150000.4.4.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP4 | Package registry (OSV) |
| suse:php53 | 5.3.17-112.53.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4 | Package registry (OSV) |
| suse:php7 | 7.0.7-50.63.1 · SUSE:Linux Enterprise Module for Web and Scripting 12 | Package 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.
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.
Credits
All researchersFinders, 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 FreeCVSS 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
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (13 more)Show less
- lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html
- access.redhat.com/errata/RHSA-2019:2722
- github.com/libgd/libgd/commit/553702980ae89c83f2d6e254d62cf82e204956d0
- github.com/libgd/libgd/issues/492
- github.com/php/php-src/commit/089f7c0bc28d399b0420aa6ef058e4c1c120b2ae
- lists.debian.org/debian-lts-announce/2019/01/msg00028.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/
- security.gentoo.org/glsa/201903-18
- usn.ubuntu.com/3900-1/
- www.debian.org/security/2019/dsa-4384
Vendor advisories and official records. Exploit/PoC links are deliberately left out.