CVE-2018-1000222
published 2018-08-20CVE-2018-1000222: Libgd version 2.2.5 contains a Double Free Vulnerability vulnerability in gdImageBmpPtr Function that can result in Remote Code Execution . This attack appear…
PriorityP349high8.8CVSS 3.0
AVNACLPRNUIRSUCHIHAH
EPSS
4.20%
89.7th percentile
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.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | libgd2 | < libgd2 2.2.5-4.1 (bookworm) | libgd2 2.2.5-4.1 (bookworm) |
| libgd | libgd | — | — |
CVSS provenance
nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8LOW
vendor_redhat8.8HIGH
vendor_ubuntu8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
GD vulnerabilities
vendor_ubuntu·2018-08-27·CVSS 8.8
CVE-2018-1000222 [HIGH] GD vulnerabilities
Title: GD vulnerabilities
Summary: Several security issues were fixed in GD.
It was discovered that GD incorrectly handled certain images.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2018-1000222)
It was discovered that GD incorrectly handled certain GIF files.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2018-5711)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG
vendor_redhat·2018-07-15·CVSS 8.8
CVE-2018-1000222 [HIGH] CWE-416 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG
gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG
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.
Package: gd (Red Hat Enterprise Linux 5) - Not affected
Package: libwmf (Red Hat Enterprise Linux 5) - Not affected
Package: php (Red Hat Enterprise Linux 5) - Not affected
Package: php53 (Red Hat Enterprise Linux 5) - Not affected
Package: gd (Red Hat Enterprise Linux 6) - Not affected
Package: libwmf (Red Hat Enterprise Linux 6) - Not affected
Package: php (Red Hat Enterprise Linux
Debian
CVE-2018-1000222: libgd2 - Libgd version 2.2.5 contains a Double Free Vulnerability vulnerability in gdImag...
vendor_debian·2018·CVSS 8.8
CVE-2018-1000222 [HIGH] CVE-2018-1000222: libgd2 - Libgd version 2.2.5 contains a Double Free Vulnerability vulnerability in gdImag...
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.
Scope: local
bookworm: resolved (fixed in 2.2.5-4.1)
bullseye: resolved (fixed in 2.2.5-4.1)
forky: resolved (fixed in 2.2.5-4.1)
sid: resolved (fixed in 2.2.5-4.1)
trixie: resolved (fixed in 2.2.5-4.1)
GHSA
GHSA-jcj9-h5mg-pr5c: Libgd version 2
ghsa_unreviewed·2022-05-13
CVE-2018-1000222 [HIGH] CWE-415 GHSA-jcj9-h5mg-pr5c: Libgd version 2
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.
OSV
libgd2 vulnerabilities
osv·2018-08-27·CVSS 8.8
CVE-2018-1000222 [HIGH] libgd2 vulnerabilities
libgd2 vulnerabilities
It was discovered that GD incorrectly handled certain images.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2018-1000222)
It was discovered that GD incorrectly handled certain GIF files.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2018-5711)
OSV
CVE-2018-1000222: Libgd version 2
osv·2018-08-20·CVSS 8.8
CVE-2018-1000222 [HIGH] CVE-2018-1000222: Libgd version 2
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-1000222 libwmf: gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
bugzilla·2018-08-24·CVSS 8.8
CVE-2018-1000222 [HIGH] CVE-2018-1000222 libwmf: gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
CVE-2018-1000222 libwmf: gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects m
Bugzilla
CVE-2018-1000222 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
bugzilla·2018-08-24·CVSS 8.8
CVE-2018-1000222 [HIGH] CVE-2018-1000222 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
CVE-2018-1000222 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple
Bugzilla
CVE-2018-1000222 libwmf: gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
bugzilla·2018-08-24·CVSS 8.8
CVE-2018-1000222 [HIGH] CVE-2018-1000222 libwmf: gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
CVE-2018-1000222 libwmf: gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects m
Bugzilla
CVE-2018-1000222 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG
bugzilla·2018-08-24·CVSS 8.8
CVE-2018-1000222 [HIGH] CVE-2018-1000222 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG
CVE-2018-1000222 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG
libgd through version 2.2.5 is vulnerable to a double free in the src/gd_bump.c:gdImageBmpPtr() function when parsing a crafted JPEG. An attacker could exploit this to cause a crash or potentially execute arbitrary code.
Upstream Issue:
https://github.com/libgd/libgd/issues/447
Upstream Patch:
https://github.com/libgd/libgd/commit/ac16bdf2d41724b5a65255d4c28fb0ec46bc42f5
Discussion:
Created gd tracking bugs for this issue:
Affects: fedora-all [bug 1621961]
Created libwmf tracking bugs for this issue:
Affects: fedora-all [bug 1621962]
Created php tracking bugs for this issue:
Affects: fedora-all [bug 1621966]
---
RHEL7 is using gd-2.0.35, which is a release before BMP support was merged in.
Bugzilla
CVE-2018-1000222 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
bugzilla·2018-08-24·CVSS 8.8
CVE-2018-1000222 [HIGH] CVE-2018-1000222 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
CVE-2018-1000222 gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple
Bugzilla
CVE-2018-1000222 php: gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
bugzilla·2018-08-24·CVSS 8.8
CVE-2018-1000222 [HIGH] CVE-2018-1000222 php: gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
CVE-2018-1000222 php: gd: Double free in src/gd_bump.c:gdImageBmpPtr() via crafted JPEG [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects mult
https://github.com/libgd/libgd/issues/447https://lists.debian.org/debian-lts-announce/2019/01/msg00028.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/https://security.gentoo.org/glsa/201903-18https://usn.ubuntu.com/3755-1/https://github.com/libgd/libgd/issues/447https://lists.debian.org/debian-lts-announce/2019/01/msg00028.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/https://security.gentoo.org/glsa/201903-18https://usn.ubuntu.com/3755-1/
2018-08-20
Published