CVE-2019-11048: Temporary files are not cleaned after OOM when parsing HTTP request data

Published May 11, 2020
·
Updated

A flaw was found in PHP under a non-default configuration, where it was vulnerable to integer wraparounds during the reception of a multipart POST request. This flaw allows a remote attacker to repeatedly crash PHP and fill the filesystem with temporary PHP files, resulting in a denial of service.

Other sources

Fixed bug (Long variables in multipart/form-data cause OOM and temp files are not cleaned). (CVE-2019-11048)

— PHP

In PHP versions 7.2.x below 7.2.31, 7.3.x below 7.3.18 and 7.4.x below 7.4.6, when HTTP file uploads are allowed, supplying overly long filenames or field names could lead PHP engine to try to allocate oversized memory storage, hit the memory limit and stop processing the request, without cleaning up temporary files created by upload request. This potentially could lead to accumulation of uncleaned temporary files exhausting the disk space on the target server.

There are 2 integers wraparound flaws in php-src/main/rfc1867.c that allow a malicious user to crash PHP during a multipart/form-data file upload. A large multipart/form-data variable, or filename, may cause an integer overflow that leads to a subsequent crash. Temporary files are not cleaned up, and could ultimately fill up the file system containing PHP temporary data.

Upstream Issues:

https://bugs.php.net/bug.php?id=78876 https://bugs.php.net/bug.php?id=78875

— Red Hat

Affected Software

19 affected componentsFixes available
redhat/rh-php73-php<0:7.3.20-1.el7
0:7.3.20-1.el7
redhat/php<7.3.18
7.3.18
redhat/php<7.2.31
7.2.31
redhat/php<7.4.6
7.4.6
PHP PHP>=7.2.0<7.2.31
PHP PHP>=7.3.0<7.3.18
PHP PHP>=7.4.0<7.4.6
PHP PHP<7.2.31
7.2.31
alpine/php7<7.3.18-r0
7.3.18-r0
alpine/php7<7.3.18-r0
7.3.18-r0
alpine/php7<7.3.18-r0
7.3.18-r0
alpine/php7<7.3.18-r0
7.3.18-r0
alpine/php7<7.3.18-r0
7.3.18-r0
alpine/php7<7.2.31-r0
7.2.31-r0
debian/php7.4<7.4.9-1
7.4.9-1
debian/php5
5.6.40+dfsg-0+deb8u12
debian/php7.0
7.0.33-0+deb9u8
debian/php7.3
7.3.19-1~deb10u1
debian/php7.4
7.4.9-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/rh-php73-php to a version that resolves this vulnerability.

    Fixed in 0:7.3.20-1.el7
  2. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.3.18
  3. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.2.31
  4. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.4.6
  5. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.2.31
  6. Upgrade

    Upgrade alpine/php7 to a version that resolves this vulnerability.

    Fixed in 7.3.18-r0
  7. Upgrade

    Upgrade alpine/php7 to a version that resolves this vulnerability.

    Fixed in 7.2.31-r0
  8. Upgrade

    Upgrade debian/php7.4 to a version that resolves this vulnerability.

    Fixed in 7.4.9-1
  9. Upgrade

    Upgrade debian/php5 to a version that resolves this vulnerability.

    Fixed in 5.6.40+dfsg-0+deb8u12
  10. Upgrade

    Upgrade debian/php7.0 to a version that resolves this vulnerability.

    Fixed in 7.0.33-0+deb9u8
  11. Upgrade

    Upgrade debian/php7.3 to a version that resolves this vulnerability.

    Fixed in 7.3.19-1~deb10u1
  12. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.3.18
  13. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.4.6
  14. Configuration

    Set post_max_size to a value less than 2GB, or leave it at the default value.

    PHP post_max_size = less than 2GB or default

Event History

May 11, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
May 14, 2020
Data Sourced
12:00 AM
DescriptionAffected Software
Data Sourced
12:00 AM
RemedySeverityWeakness
Updated
12:00 AM
Description
Updated
12:00 AM
DescriptionAffected Software
May 20, 2020
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·07:15 AM
Data Sourced
via NVD·08:15 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·08:15 AM
DescriptionSeverityAffected Software
Oct 6, 2023
Data Sourced
via Red Hat·08:08 PM
DescriptionSeverityAffected Software
Nov 21, 2024
Updated
via NVD·04:20 AM
Affected Software
Nov 24, 2026
Withdrawn
via OSV·04:28 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2019-11048?

CVE-2019-11048 is a vulnerability in PHP versions 7.2.x below 7.2.31, 7.3.x below 7.3.18, and 7.4.x below 7.4.6 that could allow memory allocation errors when handling overly long filenames or field names in HTTP file uploads.

2

How does CVE-2019-11048 affect PHP?

CVE-2019-11048 affects PHP versions 7.2.x below 7.2.31, 7.3.x below 7.3.18, and 7.4.x below 7.4.6 when HTTP file uploads are allowed.

3

What is the severity of CVE-2019-11048?

The severity rating of CVE-2019-11048 is high with a CVSS severity score of 7.5.

4

How can I fix CVE-2019-11048?

To fix CVE-2019-11048, you should update your PHP installation to version 7.2.31, 7.3.18, or 7.4.6 depending on the affected version range.

5

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

You can find more information about CVE-2019-11048 on the official PHP bug tracker and Red Hat Bugzilla.

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