Use-after-free error in PHP - CVE-2016-7479
Published: May 3, 2018 / Updated: May 18, 2020
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
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power
Ubuntu
php5 (Ubuntu package)
php7.0-fpm (Ubuntu package)
libapache2-mod-php7.0 (Ubuntu package)
php7.0-cli (Ubuntu package)
php7.0-cgi (Ubuntu package)
How to mitigate CVE-2016-7479
php7.0-fpm (Ubuntu package) - addressed in versions 7.0.15-0ubuntu0.16.04.2, 7.0.15-0ubuntu0.16.10.2
libapache2-mod-php7.0 (Ubuntu package) - addressed in versions 7.0.15-0ubuntu0.16.04.2, 7.0.15-0ubuntu0.16.10.2
php7.0-cli (Ubuntu package) - addressed in versions 7.0.15-0ubuntu0.16.04.2, 7.0.15-0ubuntu0.16.10.2
php7.0-cgi (Ubuntu package) - addressed in versions 7.0.15-0ubuntu0.16.04.2, 7.0.15-0ubuntu0.16.10.2