cve.bz

CVE-2019-11038 Use of Uninitialized Resource

5.3 mediumExploit referenceEPSS 4.3%

Medium (5.3). EPSS 4.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
4.3% (unchanged from 4.3% a week ago; 4.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-908 Use of Uninitialized Resource
CWE-457 Use of Uninitialized Variable
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-11038 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-11038?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-11038?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-11038 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libgd:libgd2.2.5
php:phpfrom 7.1.0 before 7.1.30
php:phpfrom 7.2.0 before 7.2.19
php:phpfrom 7.3.0 before 7.3.6
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.10
debian:debian_linux8.0
debian:debian_linux9.0
fedoraproject:fedora29
fedoraproject:fedora30
fedoraproject:fedora32
suse:linux_enterprise_debuginfo11:sp4
opensuse:leap15.1
suse:linux_enterprise_desktop12:sp4
suse:linux_enterprise_server12:sp4
suse:linux_enterprise_server12:sp5
suse:linux_enterprise_software_development_kit12:sp4
suse:linux_enterprise_software_development_kit12:sp5
suse:linux_enterprise_workstation_extension12:sp4
suse:linux_enterprise_workstation_extension12:sp5
redhat:software_collections1.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libgd22.1.0-5+deb8u13DLA-1817-1
Debian9php7.07.0.33-0+deb9u5DSA-4529-1
Debian12, 13, 14libgd22.2.5-5.2DEBIAN-CVE-2019-11038
Ubuntu16.04:LTSlibgd22.1.1-4ubuntu0.16.04.12UBUNTU-CVE-2019-11038 USN-4316-1
Ubuntu18.04:LTSlibgd22.2.5-4ubuntu0.4UBUNTU-CVE-2019-11038 USN-4316-1
UbuntuPro:14.04:LTSlibgd22.1.0-3ubuntu0.11+esm1UBUNTU-CVE-2019-11038 USN-4316-2
Red Hatrhel_software_collections:3::el7rh-php71-php, rh-php71-php-gd, rh-php71-php-cli and 27 more0:7.1.30-1.el7RHSA-2019:2519
Red Hatrhel_software_collections:3::el7rh-php72-php, rh-php72-php-gd, rh-php72-php-cli and 27 more0:7.2.24-1.el7RHSA-2019:3299
SUSELinux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP4, Linux Enterprise Server 12 SP5 and 6 moregd2.1.0-24.17.1SUSE-SU-2020:0623-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Desktop Applications 15 SP1gd2.2.5-4.14.1SUSE-SU-2020:0594-1
SUSELinux Enterprise Module for Package Hub 15 SP1gd2.2.5-4.14.1SUSE-SU-2020:0594-2
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP4php77.0.7-50.85.1SUSE-SU-2019:2243-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSphp535.3.17-112.71.1SUSE-SU-2019:14158-1
openSUSELeap 15.1gd2.2.5-lp151.6.6.1openSUSE-SU-2020:0332-1
openSUSETumbleweedgd2.3.3-1.1openSUSE-SU-2024:10777-1
Alpinev3.7php77.1.30-r0ALPINE-CVE-2019-11038
Alpinev3.8, v3.9, v3.10 and 1 moregd2.2.5-r3ALPINE-CVE-2019-11038
Alpinev3.12, v3.13, v3.14 and 10 moregd2.3.0-r0ALPINE-CVE-2019-11038

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's 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 gdImageCreateFromXbm() function.

* User interaction is required to process the malicious XBM file.

It's important to note that successful exploitation requires that the application processes untrusted XBM image data using the vulnerable function. As this is not common practice, RH ProdSec has set the Impact of this vulnerability to "Low"

ProductPackageStateAdvisory
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php71-php-0:7.1.30-1.el7Fixed 2019-08-19RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php72-php-0:7.2.24-1.el7Fixed 2019-11-01RHSA-2019:3299
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-php71-php-0:7.1.30-1.el7Fixed 2019-08-19RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-php71-php-0:7.1.30-1.el7Fixed 2019-08-19RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-php72-php-0:7.2.24-1.el7Fixed 2019-11-01RHSA-2019:3299
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-php71-php-0:7.1.30-1.el7Fixed 2019-08-19RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-php72-php-0:7.2.24-1.el7Fixed 2019-11-01RHSA-2019:3299
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-php72-php-0:7.2.24-1.el7Fixed 2019-11-01RHSA-2019:3299
Red Hat Enterprise Linux 5gdOut of support scope
Red Hat Enterprise Linux 5phpOut of support scope
Red Hat Enterprise Linux 5php53Out of support scope
Red Hat Enterprise Linux 6gdOut of support scope
Red Hat Enterprise Linux 6phpOut of support scope
Red Hat Enterprise Linux 7gdFix deferred
Red Hat Enterprise Linux 7phpFix deferred
Red Hat Enterprise Linux 8gdFix deferred
Red Hat Enterprise Linux 8php:7.2/phpNot affected
Red Hat Software Collectionsrh-php70-phpFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-11038.

References

Check your stackJSON