CVE-2019-11038
published 2019-06-19CVE-2019-11038: When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka LibGD) 2.2.5, as used in the PHP GD extension in PHP versions 7.1.x below…
PriorityP432medium5.3CVSS 3.1
AVNACLPRNUINSUCLINAN
EPSS
4.33%
90.1th percentile
When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka LibGD) 2.2.5, as used in the PHP GD extension in PHP versions 7.1.x below 7.1.30, 7.2.x below 7.2.19 and 7.3.x below 7.3.6, it is possible to supply data that will cause the function to use the value of uninitialized variable. This may lead to disclosing contents of the stack that has been left there by previous code.
Affected
26 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | libgd2 | < libgd2 2.2.5-5.2 (bookworm) | libgd2 2.2.5-5.2 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| libgd | libgd | — | — |
| opensuse | leap | — | — |
| php | php | >= 7.1.0 < 7.1.30 | 7.1.30 |
| php | php | >= 7.2.0 < 7.2.19 | 7.2.19 |
| php | php | >= 7.3.0 < 7.3.6 | 7.3.6 |
| php_group | php | — | — |
| php_group | php | — | — |
| php_group | php | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
| redhat | software_collections | — | — |
| suse | linux_enterprise_debuginfo | — | — |
| suse | linux_enterprise_desktop | — | — |
| suse | linux_enterprise_server | — | — |
| suse | linux_enterprise_software_development_kit | — | — |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
nvdv3.03.1LOWCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
osv7.5HIGH
vendor_ubuntu7.5HIGH
vendor_debian5.3LOW
vendor_redhat5.3MEDIUM
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.
GHSA
GHSA-8v67-h8jw-j3r2: When using gdImageCreateFromXbm() function of gd extension in versions 7
ghsa_unreviewed·2022-05-24
CVE-2019-11038 [MEDIUM] CWE-457 GHSA-8v67-h8jw-j3r2: When using gdImageCreateFromXbm() function of gd extension in versions 7
When using gdImageCreateFromXbm() function of gd extension in versions 7.1.x below 7.1.30, 7.2.x below 7.2.19 and 7.3.x below 7.3.6, it is possible to supply data that will cause the function to use the value of uninitialized variable. This may lead to disclosing contents of the stack that has been left there by previous code.
OSV
libgd2 vulnerabilities
osv·2020-04-02·CVSS 7.5
CVE-2018-14553 [HIGH] libgd2 vulnerabilities
libgd2 vulnerabilities
USN-4316-1 fixed a vulnerability in GD Graphics Library. This update provides
the corresponding update for Ubuntu 14.04 ESM.
Original advisory details:
It was discovered that GD Graphics Library incorrectly handled cloning an
image. An attacker could possibly use this issue to cause GD Graphics Library
to crash, resulting in a denial of service. (CVE-2018-14553)
It was discovered that GD Graphics Library incorrectly handled loading images
from X bitmap format files. An attacker could possibly use this issue to cause
GD Graphics Library to crash, resulting in a denial of service, or to disclose
contents of the stack that has been left there by previous code. (CVE-2019-11038)
OSV
libgd2 vulnerabilities
osv·2020-04-02·CVSS 7.5
CVE-2018-14553 [HIGH] libgd2 vulnerabilities
libgd2 vulnerabilities
It was discovered that GD Graphics Library incorrectly handled cloning an
image. An attacker could possibly use this issue to cause GD Graphics Library
to crash, resulting in a denial of service. (CVE-2018-14553)
It was discovered that GD Graphics Library incorrectly handled loading images
from X bitmap format files. An attacker could possibly use this issue to cause
GD Graphics Library to crash, resulting in a denial of service, or to disclose
contents of the stack that has been left there by previous code. This issue
only affected Ubuntu 18.04 LTS and Ubuntu 16.04 LTS. (CVE-2019-11038)
OSV
CVE-2019-11038: When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka LibGD) 2
osv·2019-06-19·CVSS 5.3
CVE-2019-11038 [MEDIUM] CVE-2019-11038: When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka LibGD) 2
When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka LibGD) 2.2.5, as used in the PHP GD extension in PHP versions 7.1.x below 7.1.30, 7.2.x below 7.2.19 and 7.3.x below 7.3.6, it is possible to supply data that will cause the function to use the value of uninitialized variable. This may lead to disclosing contents of the stack that has been left there by previous code.
Ubuntu
GD Graphics Library vulnerabilities
vendor_ubuntu·2020-04-02·CVSS 7.5
CVE-2018-14553 [HIGH] GD Graphics Library vulnerabilities
Title: GD Graphics Library vulnerabilities
Summary: Several security issues were fixed in GD Graphics Library.
It was discovered that GD Graphics Library incorrectly handled cloning an
image. An attacker could possibly use this issue to cause GD Graphics Library
to crash, resulting in a denial of service. (CVE-2018-14553)
It was discovered that GD Graphics Library incorrectly handled loading images
from X bitmap format files. An attacker could possibly use this issue to cause
GD Graphics Library to crash, resulting in a denial of service, or to disclose
contents of the stack that has been left there by previous code. This issue
only affected Ubuntu 18.04 LTS and Ubuntu 16.04 LTS. (CVE-2019-11038)
Instructions: In general, a standard system update will make all the necessary changes.
Ubuntu
GD Graphics Library vulnerabilities
vendor_ubuntu·2020-04-02·CVSS 7.5
CVE-2018-14553 [HIGH] GD Graphics Library vulnerabilities
Title: GD Graphics Library vulnerabilities
Summary: Several security issues were fixed in GD Graphics Library.
USN-4316-1 fixed a vulnerability in GD Graphics Library. This update provides
the corresponding update for Ubuntu 14.04 ESM.
Original advisory details:
It was discovered that GD Graphics Library incorrectly handled cloning an
image. An attacker could possibly use this issue to cause GD Graphics Library
to crash, resulting in a denial of service. (CVE-2018-14553)
It was discovered that GD Graphics Library incorrectly handled loading images
from X bitmap format files. An attacker could possibly use this issue to cause
GD Graphics Library to crash, resulting in a denial of service, or to disclose
contents of the stack that has been left there by previous code. (CVE-2019-11038)
Red Hat
gd: Information disclosure in gdImageCreateFromXbm()
vendor_redhat·2019-06-18·CVSS 5.3
CVE-2019-11038 [MEDIUM] CWE-200 gd: Information disclosure in gdImageCreateFromXbm()
gd: Information disclosure in gdImageCreateFromXbm()
When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka LibGD) 2.2.5, as used in the PHP GD extension in PHP versions 7.1.x below 7.1.30, 7.2.x below 7.2.19 and 7.3.x below 7.3.6, it is possible to supply data that will cause the function to use the value of uninitialized variable. This may lead to disclosing contents of the stack that has been left there by previous code.
Statement: In order to successfully exploit this vulnerability, the following prerequisites must be fulfilled:
* An attacker needs to supply a maliciously crafted XBM image designed to exploit the uninitialized variable in the gdImageCreateFromXbm() function.
* The application or service must accept and process XBM images using the vulnerable g
Debian
CVE-2019-11038: libgd2 - When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka L...
vendor_debian·2019·CVSS 5.3
CVE-2019-11038 [MEDIUM] CVE-2019-11038: libgd2 - When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka L...
When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka LibGD) 2.2.5, as used in the PHP GD extension in PHP versions 7.1.x below 7.1.30, 7.2.x below 7.2.19 and 7.3.x below 7.3.6, it is possible to supply data that will cause the function to use the value of uninitialized variable. This may lead to disclosing contents of the stack that has been left there by previous code.
Scope: local
bookworm: resolved (fixed in 2.2.5-5.2)
bullseye: resolved (fixed in 2.2.5-5.2)
forky: resolved (fixed in 2.2.5-5.2)
sid: resolved (fixed in 2.2.5-5.2)
trixie: resolved (fixed in 2.2.5-5.2)
No detection rules found.
No public exploits indexed.
HackerOne
Uninitialized read in gdImageCreateFromXbm
hackerone·2020-10-10·CVSS 5.3
[MEDIUM] Uninitialized read in gdImageCreateFromXbm
Uninitialized read in gdImageCreateFromXbm
This bug is present in gdImageCreateFromXbm method of ext/gd/libgd/gd_xbm.c file.
This method contains below mentioned lines.
```c
...
unsigned int b;
...
sscanf(h, "%x", &b);
for (bit = 1; bit <= max_bit; bit = bit << 1) {
gdImageSetPixel(im, x++, y, (b & bit) ? 1 : 0);
...
```
So when sscanf method is not able to read a hex value, "b" variable will contain uninitialized data.
Bug Report : https://bugs.php.net/bug.php?id=77973
PHP Version : 7.1.29
CVE-ID : [2019-11038](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-11038)
## Impact
Uninitialized data may leak data from stack memory.
Bugzilla
CVE-2019-11038 gd: Information disclosure in gdImageCreateFromXbm() [fedora-all]
bugzilla·2019-06-27·CVSS 5.3
CVE-2019-11038 [MEDIUM] CVE-2019-11038 gd: Information disclosure in gdImageCreateFromXbm() [fedora-all]
CVE-2019-11038 gd: Information disclosure in gdImageCreateFromXbm() [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 supported versi
Bugzilla
CVE-2019-11038 CVE-2019-11039 CVE-2019-11040 php: various flaws [fedora-all]
bugzilla·2019-06-26·CVSS 5.3
CVE-2019-11038 [MEDIUM] CVE-2019-11038 CVE-2019-11039 CVE-2019-11040 php: various flaws [fedora-all]
CVE-2019-11038 CVE-2019-11039 CVE-2019-11040 php: various flaws [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 supported versions
Bugzilla
CVE-2019-11038 gd: Information disclosure in gdImageCreateFromXbm()
bugzilla·2019-06-26·CVSS 5.3
CVE-2019-11038 [MEDIUM] CVE-2019-11038 gd: Information disclosure in gdImageCreateFromXbm()
CVE-2019-11038 gd: Information disclosure in gdImageCreateFromXbm()
When using gdImageCreateFromXbm() function of PHP gd extension in PHP versions 7.1.x below 7.1.30, 7.2.x below 7.2.19 and 7.3.x below 7.3.6, it is possible to supply data that will cause the function to use the value of uninitialized variable. This may lead to disclosing contents of the stack that has been left there by previous code.
Reference:
https://github.com/libgd/libgd/issues/501
https://bugs.php.net/bug.php?id=77973
Discussion:
Created php tracking bugs for this issue:
Affects: fedora-all [bug 1724156]
---
Created gd tracking bugs for this issue:
Affects: fedora-all [bug 1724432]
---
Upstream commit for this issue:
https://github.com/mejo-/libgd/commit/c76ed17aee1f88e1bf9b9fc2c9b29a9a462aa347
---
PHP u
http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00020.htmlhttps://access.redhat.com/errata/RHSA-2019:2519https://access.redhat.com/errata/RHSA-2019:3299https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929821https://bugs.php.net/bug.php?id=77973https://bugzilla.redhat.com/show_bug.cgi?id=1724149https://bugzilla.redhat.com/show_bug.cgi?id=1724432https://bugzilla.suse.com/show_bug.cgi?id=1140118https://bugzilla.suse.com/show_bug.cgi?id=1140120https://github.com/libgd/libgd/issues/501https://lists.debian.org/debian-lts-announce/2019/06/msg00003.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKSSWFR2WPMUOIB5EN5ZM252NNEPYUTG/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WAZBVK6XNYEIN7RDQXESSD63QHXPLKWL/https://seclists.org/bugtraq/2019/Sep/38https://usn.ubuntu.com/4316-1/https://usn.ubuntu.com/4316-2/https://www.debian.org/security/2019/dsa-4529http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00020.htmlhttps://access.redhat.com/errata/RHSA-2019:2519https://access.redhat.com/errata/RHSA-2019:3299https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929821https://bugs.php.net/bug.php?id=77973https://bugzilla.redhat.com/show_bug.cgi?id=1724149https://bugzilla.redhat.com/show_bug.cgi?id=1724432https://bugzilla.suse.com/show_bug.cgi?id=1140118https://bugzilla.suse.com/show_bug.cgi?id=1140120https://github.com/libgd/libgd/issues/501https://lists.debian.org/debian-lts-announce/2019/06/msg00003.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKSSWFR2WPMUOIB5EN5ZM252NNEPYUTG/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WAZBVK6XNYEIN7RDQXESSD63QHXPLKWL/https://seclists.org/bugtraq/2019/Sep/38https://usn.ubuntu.com/4316-1/https://usn.ubuntu.com/4316-2/https://www.debian.org/security/2019/dsa-4529
2019-06-19
Published