CVE-2016-7479

NameCVE-2016-7479
DescriptionIn all versions of PHP 7, during the unserialization process, resizing the 'properties' hash table of a serialized object may lead to use-after-free. A remote attacker may exploit this bug to gain arbitrary code execution.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-875-1
NVD severityhigh (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php5 (PTS)wheezy5.4.45-0+deb7u2vulnerable
wheezy (security)5.4.45-0+deb7u9fixed
jessie (security), jessie5.6.30+dfsg-0+deb8u1vulnerable
php7.0 (PTS)stretch7.0.19-1fixed
buster, sid7.0.20-2fixed
php7.1 (PTS)buster, sid7.1.6-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php5source(unstable)(unfixed)high
php5sourcewheezy5.4.45-0+deb7u8highDLA-875-1
php7.0source(unstable)7.0.15-1high
php7.1source(unstable)7.1.1-1high

Notes

PHP Bug: https://bugs.php.net/bug.php?id=72610
PHP Bug: https://bugs.php.net/bug.php?id=73092
Fixed in 7.0.15
PHP 5.x/7.x: http://git.php.net/?p=php-src.git;a=commit;h=0426b916df396a23e5c34514e4f2f0627efdcdf0
PHP 7.x: http://git.php.net/?p=php-src.git;a=commit;h=b47c49d7a00bc34d7e0f3d72732f66e904da6fa7
The change is in 5.6+, even though the property table issue only affects
PHP 7, because this also prevents a wide range of other __wakeup() based
attacks.

Search for package or bug name: Reporting problems