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

 

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

Published: May 3, 2018 / Updated: May 18, 2020


Vulnerability identifier: #VU12900
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-7479
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 code on the target system.

The weakness exists due to resizing the 'properties' hash table of a serialized object during the unserialization process. A remote attacker can trigger use-after-free error and execute arbitrary code.

Successful exploitation of the vulnerability may result in system compromise.


Affected software

PHP
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power
php5 (Ubuntu package)

How to mitigate CVE-2016-7479

Install update from vendor's website.

php5 (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.26, 5.5.9+dfsg-1ubuntu4.21

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins