CVE-2018-1000222: Double Free

Published Aug 20, 2018
·
Updated

Last updated 25 August 2025

Other sources

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.

Launchpad

Affected Software

6 affected componentsFixes available
Libgd Libgd=2.2.5
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Debian Debian Linux=8.0
debian/libgd2
2.3.0-22.3.0-2+deb11u12.3.3-92.3.3-13

Event History

Aug 20, 2018
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
via NVD·08:29 PM
DescriptionSeverityWeaknessAffected Software
Feb 20, 2026
Data Sourced
via Ubuntu·03:22 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·03:22 PM
Description
Data Sourced
via Debian·03:22 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-1000222?

CVE-2018-1000222 is a vulnerability in Libgd version 2.2.5 that allows for remote code execution through a double free vulnerability in the gdImageBmpPtr function.

2

How severe is CVE-2018-1000222?

CVE-2018-1000222 has a severity rating of 8.8, which is considered high.

3

How can I fix CVE-2018-1000222?

To fix CVE-2018-1000222, you should update to a version of Libgd that has fixed the vulnerability. For example, updating to version 2.1.0-3ubuntu0.10 on Ubuntu Trusty.

4

Where can I find more information about CVE-2018-1000222?

You can find more information about CVE-2018-1000222 on the MITRE CVE database (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000222) and the Libgd GitHub repository (https://github.com/libgd/libgd/issues/447, https://github.com/libgd/libgd/commit/ac16bdf2d41724b5a65255d4c28fb0ec46bc42f5).

5

What is the Common Weakness Enumeration (CWE) of CVE-2018-1000222?

The CWE of CVE-2018-1000222 is CWE-415, which is a type of double free vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203