CVE-2020-7062
Null Pointer Dereference in PHP Session Upload Progress
Reported by php · Published February 27, 2020
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.upload_progress.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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php7 | Alpine | 7.3.15-r0, 7.2.31-r0 |
| libphp | Bitnami | 7.4.3, 7.3.15, 7.2.28 |
| php | php | 7.4.2, 7.3.14, 7.2.27 |
| php7.0 | Ubuntu:16.04:LTS | 7.0.33-0ubuntu0.16.04.14 |
| php7.2 | Ubuntu:18.04:LTS | 7.2.24-0ubuntu0.18.04.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 7.3.x, 7.4.x, 7.2.x |
| alpine | php7 | 0, 0 |
| PHP Group | PHP | 7.3.x, 7.4.x, 7.2.x |
Timeline
- Feb 21, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jun 28, 2021 PoC Published (5 in total, the first dated here)
- May 24, 2022 CVE Updated
- Mar 7, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 7, 2026 Security Advisory (7 in total, the first dated here)
- Aug 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-7062
vulnetix vdb fixes CVE-2020-7062
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-7062/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- openSUSE-SU-2020:0341 vendor-advisoryx_refsource_SUSE
- GLSA-202003-57 vendor-advisoryx_refsource_GENTOO
- [debian-lts-announce] 20200326 [SECURITY] [DLA 2160-1] php5 security update mailing-listx_refsource_MLIST
- USN-4330-1 vendor-advisoryx_refsource_UBUNTU
- DSA-4717 vendor-advisoryx_refsource_DEBIAN
- DSA-4719 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM