CVE-2019-11038
Uninitialized read in gdImageCreateFromXbm
Check your servers for CVE-2019-11038
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-11038 affects php, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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)
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 4.33%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 91.9% of all scored CVEs. Scores of 27 Nov 2026.
Weakness
- CWE-457 Use of Uninitialized Variable
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of php and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i php
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-11038 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-11038RHEL, Rocky, Alma, Fedora
rpm -q php
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-11038Alpine
apk list --installed | grep -i phpWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2019-11038
trivy image --scanners vuln IMAGE | grep CVE-2019-11038
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the agent.
References
Advisories
- FEDORA-2019-be4f895015 lists.fedoraproject.org · vendor advisory
- FEDORA-2019-8c4b25b5ec lists.fedoraproject.org · vendor advisory
- https://bugs.php.net/bug.php?id=77973 bugs.php.net
- https://github.com/libgd/libgd/issues/501 github.com
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929821 bugs.debian.org
- https://bugzilla.suse.com/show_bug.cgi?id=1140118 bugzilla.suse.com
- https://bugzilla.suse.com/show_bug.cgi?id=1140120 bugzilla.suse.com
- https://bugzilla.redhat.com/show_bug.cgi?id=1724149 bugzilla.redhat.com
- RHSA-2019:2519 access.redhat.com · vendor advisory
- DSA-4529 debian.org · vendor advisory
- RHSA-2019:3299 access.redhat.com · vendor advisory
- openSUSE-SU-2020:0332 lists.opensuse.org · vendor advisory
- FEDORA-2020-e795f92d79 lists.fedoraproject.org · vendor advisory
- USN-4316-2 usn.ubuntu.com · vendor advisory
- USN-4316-1 usn.ubuntu.com · vendor advisory
Other references
- [debian-lts-announce] 20190611 [SECURITY] [DLA 1817-1] libgd2 security update lists.debian.org · mailing list
- https://bugzilla.redhat.com/show_bug.cgi?id=1724432 bugzilla.redhat.com
- 20190923 [SECURITY] [DSA 4529-1] php7.0 security update seclists.org · mailing list
Source: the record CVE-2019-11038 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse