cve.bz

CVE-2018-1000222 Double Free

8.8 highEPSS 4.2%

High (8.8). EPSS 4.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

8.8 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
4.2% (unchanged from 4.2% a week ago; 4.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-415 Double Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-1000222 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1000222?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1000222?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-1000222 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libgd:libgd2.2.5
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
debian:debian_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libgd22.1.0-5+deb8u12DLA-1651-1
Debian12, 13, 14libgd22.2.5-4.1DEBIAN-CVE-2018-1000222
Ubuntu14.04:LTSlibgd22.1.0-3ubuntu0.10UBUNTU-CVE-2018-1000222 USN-3755-1
Ubuntu16.04:LTSlibgd22.1.1-4ubuntu0.16.04.10UBUNTU-CVE-2018-1000222 USN-3755-1
Ubuntu18.04:LTSlibgd22.2.5-4ubuntu0.2UBUNTU-CVE-2018-1000222 USN-3755-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morephp77.2.34-150000.4.103.1SUSE-SU-2022:4067-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3 and 2 moregd2.1.0-24.9.1SUSE-SU-2018:2837-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Desktop Applications 15gd2.2.5-4.3.1SUSE-SU-2018:2888-1
SUSELinux Enterprise Module for Web and Scripting 15php77.2.5-4.9.1SUSE-SU-2018:2840-1
openSUSELeap 15.4php77.2.34-150000.4.103.1SUSE-SU-2022:4067-1
openSUSETumbleweedgd2.3.3-1.1openSUSE-SU-2024:10777-1
openSUSETumbleweedphp77.4.24-1.1openSUSE-SU-2024:11167-1
openSUSETumbleweedphp88.0.11-1.1openSUSE-SU-2024:11169-1
Alpinev3.5, v3.6, v3.7 and 17 moregd2.2.5-r1ALPINE-CVE-2018-1000222

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5gdNot affected
Red Hat Enterprise Linux 5libwmfNot affected
Red Hat Enterprise Linux 5phpNot affected
Red Hat Enterprise Linux 5php53Not affected
Red Hat Enterprise Linux 6gdNot affected
Red Hat Enterprise Linux 6libwmfNot affected
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 7gdNot affected
Red Hat Enterprise Linux 7libwmfNot affected
Red Hat Enterprise Linux 7phpNot affected
Red Hat Enterprise Linux 8gdNot affected
Red Hat Enterprise Linux 8libwmfNot affected
Red Hat Enterprise Linux 8phpNot affected
Red Hat Software Collectionsrh-php70-phpNot affected
Red Hat Software Collectionsrh-php71-phpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-1000222.

References

Check your stackJSON