Skip to content
Fencer Vulns
high 8.8

CVE-2018-1000222 json

Libgd version 2.2.5 contains a Double Free Vulnerability vulnerability in gdImageBmpPtr Function that can result in Remote Code Execution .…

published 2018-08-20 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-1892

cvss
8.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
4.2%
EPSS 4.2% chance of exploitation in 30 days, percentile 91%
public exploits
0
none known

Summary

Libgd version 2.2.5 contains a Double Free Vulnerability vulnerability in gdImageBmpPtr Function that can result in Remote Code Execution . This attack appear to be exploitable via Specially Crafted Jpeg Image can trigger double free. This vulnerability appears to have been fixed in after commit ac16bdf2d41724b5a65255d4c28fb0ec46bc42f5.

Patch / fix

  • libgd2 Debian 14, Debian 13, Debian 12 2.2.5-4.1

debian advisories DEBIAN-CVE-2018-1000222

  • libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.10
  • libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.10
  • libgd2 Ubuntu 18.04 LTS 2.2.5-4ubuntu0.2

ubuntu advisories UBUNTU-CVE-2018-1000222

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • php7 SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +8 more 7.2.34-150000.4.103.1
  • gd SLE Module for Desktop Applications 15, SLE Module for Basesystem 15 2.2.5-4.3.1
  • php7 SLE Module for Web and Scripting 15 7.2.5-4.9.1
  • gd SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 +2 more 2.1.0-24.9.1

suse advisories SUSE-SU-2022:4067-1SUSE-SU-2018:2888-1SUSE-SU-2018:2840-1SUSE-SU-2018:2837-1

  • gd openSUSE Tumbleweed 2.3.3-1.1
  • php7 openSUSE Tumbleweed 7.4.24-1.1
  • php8 openSUSE Tumbleweed 8.0.11-1.1

opensuse advisories openSUSE-SU-2024:10777-1openSUSE-SU-2024:11167-1openSUSE-SU-2024:11169-1

  • gd Alpine 3.24, Alpine 3.23, Alpine 3.22 +17 more 2.2.5-r1

alpine advisories ALPINE-CVE-2018-1000222

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • gd Arch Linux 2.2.5-2

arch linux advisories AVG-865

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-1000222 updated cvss 5.3

gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG

  • Red Hat Enterprise Linux 5 gd, php, php53, libwmf Red Hat Enterprise Linux 6 gd, php, libwmf, php-gd, php-cli, php-dba, +24 more Red Hat Enterprise Linux 7 gd, php, libwmf, php-gd, php-cli, php-dba, +22 more Red Hat Enterprise Linux 8 gd, php, libwmf, libzip, php-gd, php-cli, +33 more Red Hat Software Collections rh-php70-php, rh-php71-php, rh-php70-php-gd, rh-php71-php-gd, rh-php70-php-cli, rh-php70-php-dba, +52 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

4.20% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 8.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.