Use-after-free error in PHP - CVE-2016-5773

 

Use-after-free error in PHP - CVE-2016-5773

Published: September 20, 2016 / Updated: June 17, 2021


Vulnerability identifier: #VU3613
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-5773
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary PHP code on the target system.

The vulnerability exists due to use-after-free in GC algorithm and unserialize. A remote attacker can create a specially crafted zval object and exploit the PHP process by taking over the EIP/RIP.

Successful exploitation of this vulnerability results in complete control over the vulnerable web application and execute arbitrary PHP code on the target system.

Affected software

PHP
SUSE Linux
Fedora
php-pecl-zip

How to mitigate CVE-2016-5773

Update to version 5.6.23.

php-pecl-zip - addressed in versions 1.12.5-2.fc22, 1.13.3-1.fc23, 1.13.3-1.fc24

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins