PT-2020-5322 · Php+7 · Php+7
Published
2020-02-17
·
Updated
2025-08-11
·
CVE-2020-7062
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
PHP versions 7.2.x through 7.2.27
PHP versions 7.3.x through 7.3.14
PHP versions 7.4.x through 7.4.2
Description
The issue is related to a null pointer dereference when using file upload functionality in PHP. If upload progress tracking is enabled but session.upload progress.cleanup is set to 0, and the file upload fails, the upload procedure attempts to clean up non-existent data, leading to a crash. This could allow a remote attacker to cause a denial of service.
Recommendations
For PHP versions 7.2.x through 7.2.27, update to version 7.2.28 or later to resolve the issue.
For PHP versions 7.3.x through 7.3.14, update to version 7.3.15 or later to resolve the issue.
For PHP versions 7.4.x through 7.4.2, update to version 7.4.3 or later to resolve the issue.
As a temporary workaround, consider disabling upload progress tracking or setting session.upload progress.cleanup to a non-zero value until a patch is available.
Exploit
Fix
NULL Pointer Dereference
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Centos
Php
Red Hat
Rocky Linux
Suse
Ubuntu