CVE-2019-11038 json
Uninitialized read in gdImageCreateFromXbm
published 7y ago modified 4mo ago also EUVD-2019-2746
- cvss
- 3.1
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.3%
- EPSS 4.3% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- php php 7.1.30, 7.2.19, 7.3.6
- libgd2 Debian 14, Debian 13, Debian 12 2.2.5-5.2
debian advisories DEBIAN-CVE-2019-11038
- libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.12
- libgd2 Ubuntu 18.04 LTS 2.2.5-4ubuntu0.4
- libgd2 Ubuntu Pro 14.04 LTS 2.1.0-3ubuntu0.11+esm1
ubuntu advisories UBUNTU-CVE-2019-11038
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
- rh-php72-php RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
- rh-php72-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
- rh-php72-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
- rh-php72-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
- rh-php72-php-dbg RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
- rh-php72-php-fpm RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
- rh-php72-php-gmp RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
- rh-php72-php-pdo RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
red hat advisories RHSA-2019:3299RHSA-2019:2519
- gd SLE Module for Package Hub 15 SP1, SLE Module for Desktop Applications 15 SP1, SLE Module for Basesystem 15 SP1 2.2.5-4.14.1
- gd SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +6 more 2.1.0-24.17.1
- php53 SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 5.3.17-112.71.1
- php7 SLE Software Development Kit 12 SP4, SLE Module for Web and Scripting 12 7.0.7-50.85.1
suse advisories SUSE-SU-2020:0594-2SUSE-SU-2020:0623-1SUSE-SU-2020:0594-1SUSE-SU-2019:14158-1SUSE-SU-2019:2243-1
- gd openSUSE Tumbleweed 2.3.3-1.1
- gd openSUSE Leap 15.1 2.2.5-lp151.6.6.1
opensuse advisories openSUSE-SU-2024:10777-1openSUSE-SU-2020:0332-1
- gd Alpine 3.11, Alpine 3.10, Alpine 3.9 +1 more 2.2.5-r3
- gd Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 2.3.0-r0
- php7 Alpine 3.7 7.1.30-r0
alpine advisories ALPINE-CVE-2019-11038
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2019-11038 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-11038 updated cvss 3.3
gd: Information disclosure in gdImageCreateFromXbm()
-
Red Hat Enterprise Linux 5 gd, php, php53 Red Hat Enterprise Linux 6 gd, php, php-gd, php-cli, php-dba, php-fpm, +22 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 gd, php, php-gd, php-cli, php-dba, php-fpm, +20 more Red Hat Enterprise Linux 8 gd Red Hat Software Collections rh-php70-php, rh-php70-php-gd, rh-php70-php-cli, rh-php70-php-dba, rh-php70-php-dbg, rh-php70-php-fpm, +24 moreaffected: no fix available “Fix deferred”
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 morefixed: vendor fix RHSA-2019:2519
-
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-php72-php 7.2.24-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php72-php-cli 7.2.24-1.el7, rh-php72-php-dba 7.2.24-1.el7, rh-php72-php-dbg 7.2.24-1.el7, rh-php72-php-fpm 7.2.24-1.el7, +22 morefixed: vendor fix RHSA-2019:3299
-
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 morefixed: vendor fix RHSA-2019:2519
-
Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 morenot 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.33% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/libgd/libgd/issues/501 referenced PoC, tagged "exploit" by a source, unverified
- bugzilla.suse.com https://bugzilla.suse.com/show_bug.cgi?id=1140118 referenced PoC, tagged "exploit" by a source, unverified
- bugzilla.suse.com https://bugzilla.suse.com/show_bug.cgi?id=1140120 referenced PoC, tagged "exploit" by a source, unverified
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1724149 referenced PoC, tagged "exploit" by a source, unverified
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1724432 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 3.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected products
- PHP Group PHP
Classification
- Weakness
- Technology feeds
References
-
github.com
/libgd/libgd/issues/501
exploit, third-party-advisory
-
bugzilla.suse.com
/show_bug.cgi?id=1140118
exploit, issue-tracking, third-party-advisory
-
bugzilla.suse.com
/show_bug.cgi?id=1140120
exploit, issue-tracking, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1724149
exploit, issue-tracking, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1724432
exploit, issue-tracking, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/PKSSWFR2WPMUOIB5EN5ZM252NNEPYUTG/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/WAZBVK6XNYEIN7RDQXESSD63QHXPLKWL/
vendor-advisory
-
access.redhat.com
/errata/RHSA-2019:2519
vendor-advisory, third-party-advisory
-
debian.org
/security/2019/dsa-4529
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:3299
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2020-03/msg00020.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
vendor-advisory
-
usn.ubuntu.com
/4316-2/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/4316-1/
vendor-advisory, third-party-advisory
-
bugs.php.net
/bug.php?id=77973
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2019/06/msg00003.html
mailing-list, third-party-advisory
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=929821
mailing-list, third-party-advisory
-
seclists.org
/bugtraq/2019/Sep/38
mailing-list, third-party-advisory
Sources
- CVE List CVE-2019-11038
- NVD CVE-2019-11038
Fencer Intel 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.