CVE-2020-7062: Null Pointer Dereference in PHP Session Upload Progress

Published Feb 4, 2020
·
Updated

Fixed bug (Null Pointer Dereference in PHP Session Upload Progress). (CVE-2020-7062)

Other sources

In PHP versions 7.2.x below 7.2.28, 7.3.x below 7.3.15 and 7.4.x below 7.4.3, when using file upload functionality, if upload progress tracking is enabled, but session.uploadprogress.cleanup is set to 0 (disabled), and the file upload fails, the upload procedure would try to clean up data that does not exist and encounter null pointer dereference, which would likely lead to a crash.

Affected Software

15 affected componentsFixes available
redhat/rh-php73-php<0:7.3.20-1.el7
0:7.3.20-1.el7
PHP PHP<7.2.28
7.2.28
PHP PHP>=7.2.0<=7.2.27
PHP PHP>=7.3.0<=7.3.14
PHP PHP>=7.4.0<=7.4.2
openSUSE Leap=15.1
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.10
debian/php7.4
7.4.33-1+deb11u57.4.33-1+deb11u11

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 PHP to a version that resolves this vulnerability.

    Fixed in 7.2.28
  3. Upgrade

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

    Fixed in 7.4.33-1+deb11u5Fixed in 7.4.33-1+deb11u11
  4. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.3.15
  5. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.4.3
  6. Configuration

    If upload progress tracking is enabled and you set session.upload_progress.cleanup to 0 (disabled), you may trigger a crash when an upload fails; set session.upload_progress.cleanup to a non-zero value (enabled) or apply the PHP fixes.

    PHP session.upload_progress.cleanup = 1

Event History

Feb 4, 2020
CVE Published
12:00 AM
Feb 27, 2020
CVE Published
via MITRE·08:25 PM
Data Sourced
via MITRE·08:25 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
Feb 28, 2020
Data Sourced
via Red Hat·06:19 PM
DescriptionSeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:52 PM
Description
Feb 24, 2026
Data Sourced
via Ubuntu·12:24 AM
RemedyDescriptionSeverityAffected Software
Jul 7, 2026
Data Sourced
via Debian·03:58 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2020-7062?

CVE-2020-7062 is a vulnerability in PHP versions 7.2.x below 7.2.28, 7.3.x below 7.3.15 and 7.4.x below 7.4.3 that can result in a null pointer dereference in PHP session upload progress.

2

How severe is CVE-2020-7062?

CVE-2020-7062 has a severity rating of 7.5 (high).

3

How can I fix CVE-2020-7062?

To fix CVE-2020-7062, you should update to PHP versions 7.2.28, 7.3.15, or 7.4.3 depending on your current version.

4

Where can I find more information about CVE-2020-7062?

You can find more information about CVE-2020-7062 in the PHP ChangeLog and the bug reports linked in the references.

5

What is the Common Weakness Enumeration (CWE) ID for CVE-2020-7062?

The Common Weakness Enumeration (CWE) ID for CVE-2020-7062 is 476.

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