# CVE-2019-11038: Uninitialized read in gdImageCreateFromXbm

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.1
- **CVSS:** 3.1 (v3.0, CNA) `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 4.33% (percentile 92, 2026-11-26)
- **CWE:** CWE-457
- **Published:** 2019-06-18T23:28:28.236Z
- **Modified:** 2026-06-17T02:12:10.793Z

## Who should check

- Anyone running PHP Group PHP 7.1.x \< 7.1.30; 7.2.x \< 7.2.19; 7.3.x \< 7.3.6

## 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.

## Affected and fixed versions

- PHP Group PHP: 7.1.x \< 7.1.30; 7.2.x \< 7.2.19; 7.3.x \< 7.3.6 (cvelist)

## Mitigation

- Upgrade PHP to 7.3.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2019-11038. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2019-11038.md
Affected: PHP Group PHP 7.1.x < 7.1.30; 7.2.x < 7.2.19; 7.3.x < 7.3.6
Fixed in: PHP Group PHP 7.1.30, PHP Group PHP 7.2.19, PHP Group PHP 7.3.6

Steps:
1. Search this machine and project for PHP Group PHP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2019-11038 being exploited?

There is no confirmed exploitation: CVE-2019-11038 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 4.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2019-11038?

Low: CVSS 3.1 (v3.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2019-11038?

PHP Group PHP 7.1.x \< 7.1.30; 7.2.x \< 7.2.19; 7.3.x \< 7.3.6.

### Is there a fix for CVE-2019-11038?

Yes. Fixed in PHP Group PHP 7.1.30, PHP Group PHP 7.2.19, PHP Group PHP 7.3.6. Upgrade PHP to 7.3.6 or later.

### How do I check if I'm affected by CVE-2019-11038?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKSSWFR2WPMUOIB5EN5ZM252NNEPYUTG/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WAZBVK6XNYEIN7RDQXESSD63QHXPLKWL/>
- vendor: <https://bugs.php.net/bug.php?id=77973>
- vendor: <https://access.redhat.com/errata/RHSA-2019:2519>
- vendor: <https://www.debian.org/security/2019/dsa-4529>
- vendor: <https://access.redhat.com/errata/RHSA-2019:3299>
- vendor: <http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00020.html>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/>
- vendor: <https://usn.ubuntu.com/4316-2/>
- vendor: <https://usn.ubuntu.com/4316-1/>
- exploit: <https://github.com/libgd/libgd/issues/501>
- exploit: <https://bugzilla.suse.com/show_bug.cgi?id=1140118>
- exploit: <https://bugzilla.suse.com/show_bug.cgi?id=1140120>
- exploit: <https://bugzilla.redhat.com/show_bug.cgi?id=1724149>
- exploit: <https://bugzilla.redhat.com/show_bug.cgi?id=1724432>
- other: <https://lists.debian.org/debian-lts-announce/2019/06/msg00003.html>
- other: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929821>
- other: <https://seclists.org/bugtraq/2019/Sep/38>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2019-11038>

HTML: <https://flawdb.com/CVE-2019-11038> · JSON: <https://flawdb.com/api/v1/entries/CVE-2019-11038>
