CVE-2019-11038: Uninitialized read in gdImageCreateFromXbm

Published May 28, 2019
·
Updated

Fixed bug (Uninitialized read in gdImageCreateFromXbm) (CVE-2019-11038).

Other sources

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

Red Hat

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 Software

33 affected componentsFixes available
redhat/rh-php71-php<0:7.1.30-1.el7
0:7.1.30-1.el7
redhat/rh-php72-php<0:7.2.24-1.el7
0:7.2.24-1.el7
debian/libgd2<=2.2.5-5.1, <=2.2.4-1, <=2.2.4-2+deb9u4
2.2.5-5.22.2.4-2+deb9u5
redhat/php<7.1.30
7.1.30
redhat/php<7.2.19
7.2.19
redhat/php<7.3.6
7.3.6
PHP PHP<7.1.30
7.1.30
Libgd Libgd=2.2.5
PHP PHP>=7.1.0<7.1.30
PHP PHP>=7.2.0<7.2.19
PHP PHP>=7.3.0<7.3.6
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.10
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Fedoraproject Fedora=29
Fedoraproject Fedora=30
Fedoraproject Fedora=32
SUSE Linux Enterprise Debuginfo=11-sp4
openSUSE Leap=15.1
SUSE Linux Enterprise Desktop=12-sp4
SUSE Linux Enterprise Server=12-sp4
SUSE Linux Enterprise Server=12-sp5
SUSE Linux Enterprise Software Development Kit=12-sp4
SUSE Linux Enterprise Software Development Kit=12-sp5
SUSE Linux Enterprise Workstation Extension=12-sp4
SUSE Linux Enterprise Workstation Extension=12-sp5
redhat Software Collections=1.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
debian/libgd2
2.3.0-22.3.0-2+deb11u12.3.3-92.3.3-13

Event History

May 30, 2019
CVE Published
via PHP·12:00 AM
Jun 18, 2019
CVE Published
via MITRE·11:28 PM
Data Sourced
via MITRE·11:28 PM
DescriptionSeverityWeakness
Jun 19, 2019
Data Sourced
via NVD·12:15 AM
DescriptionSeverityWeaknessAffected Software
Jan 30, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Feb 20, 2026
Data Sourced
via Ubuntu·05:05 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·05:05 PM
DescriptionAffected Software
Data Sourced
via Launchpad·05:07 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

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-2019-11038?

CVE-2019-11038 is a vulnerability in the GD Graphics Library (LibGD) 2.2.5 used 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.

2

How severe is CVE-2019-11038?

CVE-2019-11038 has a severity rating of 5.3, which is considered high.

3

What is the affected software for CVE-2019-11038?

The affected software for CVE-2019-11038 includes PHP versions 7.1.x below 7.1.30, 7.2.x below 7.2.19, and 7.3.x below 7.3.6, as well as LibGD 2.2.5.

4

How do I fix CVE-2019-11038?

To fix CVE-2019-11038, update PHP to version 7.1.30, 7.2.19, or 7.3.6, or update LibGD to a version that includes the fix.

5

Where can I find more information about CVE-2019-11038?

You can find more information about CVE-2019-11038 at the following references: [CVE-2019-11038](https://www.php.net/ChangeLog-7.php#7.1.30), [GD Lib Issue #501](https://github.com/libgd/libgd/issues/501), [PHP Bug #77973](https://bugs.php.net/bug.php?id=77973).

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