NULL pointer dereference in PHP - CVE-2020-7062

 

NULL pointer dereference in PHP - CVE-2020-7062

Published: February 25, 2020


Vulnerability identifier: #VU25594
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-7062
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error in session.c when handling file uploads. A remote attacker can send a specially crafted HTTP POST request to the affected application and perform a denial of service (DoS) attack.


Affected software

PHP
Amazon Linux AMI
Debian Linux
Gentoo Linux
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Oracle Solaris
Opensuse
openEuler
Fedora
Red Hat Software Collections
Tenable.sc
php7.0 (Debian package)
php7 (Alpine package)
php-cli
php-intl
php-recode
php-pdo
php-pgsql
php-help
php-gmp
php-embedded
php-bcmath
php-mysqlnd
php-ldap
php-snmp
php-debuginfo
php-gd
php-tidy
php-json
php-odbc
php-fpm
php-debugsource
php-devel
php-xmlrpc
php-process
php-dbg
php-enchant
php-xml
php-common
php-dba
php
php-mbstring
php-soap
php-opcache
php7.3 (Debian package)
rh-php73-php (Red Hat package)

How to mitigate CVE-2020-7062

Install updates from vendor's website.

PHP - addressed in versions 7.2.28, 7.3.15, 7.4.3
Tenable.sc - update to 5.19.0
php7.0 (Debian package) - update to 7.0.33-0+deb9u8
php7 (Alpine package) - update to 7.2.31-r0
php-cli - update to 7.2.10-10
php-intl - update to 7.2.10-10
php-recode - update to 7.2.10-10
php-pdo - update to 7.2.10-10
php-pgsql - update to 7.2.10-10
php-help - update to 7.2.10-10
php-gmp - update to 7.2.10-10
php-embedded - update to 7.2.10-10
php-bcmath - update to 7.2.10-10
php-mysqlnd - update to 7.2.10-10
php-ldap - update to 7.2.10-10
php-snmp - update to 7.2.10-10
php-debuginfo - update to 7.2.10-10
php-gd - update to 7.2.10-10
php-tidy - update to 7.2.10-10
php-json - update to 7.2.10-10
php-odbc - update to 7.2.10-10
php-fpm - update to 7.2.10-10
php-debugsource - update to 7.2.10-10
php-devel - update to 7.2.10-10
php-xmlrpc - update to 7.2.10-10
php-process - update to 7.2.10-10
php-dbg - update to 7.2.10-10
php-enchant - update to 7.2.10-10
php-xml - update to 7.2.10-10
php-common - update to 7.2.10-10
php-dba - update to 7.2.10-10
php - update to 7.2.10-10
php-mbstring - update to 7.2.10-10
php-soap - update to 7.2.10-10
php-opcache - update to 7.2.10-10
php - addressed in versions 7.3.15-1.fc30, 7.3.15-1.fc31
php7.3 (Debian package) - update to 7.3.19-1~deb10u1
rh-php73-php (Red Hat package) - update to 7.3.20-1.el7

External References

Related Security Bulletins