Name | CVE-2016-7479 |
Description | In 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-875-1, DSA-3783-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
php5 (PTS) | jessie, jessie (lts) | 5.6.40+dfsg-0+deb8u21 | fixed |
php7.0 (PTS) | stretch (security) | 7.0.33-0+deb9u12 | fixed |
| stretch (lts), stretch | 7.0.33-0+deb9u19 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
php5 | source | wheezy | 5.4.45-0+deb7u8 | | DLA-875-1 | |
php5 | source | jessie | 5.6.30+dfsg-0+deb8u1 | | DSA-3783-1 | |
php5 | source | (unstable) | (unfixed) | | | |
php7.0 | source | (unstable) | 7.0.15-1 | | | |
php7.1 | source | (unstable) | 7.1.1-1 | | | |
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: https://git.php.net/?p=php-src.git;a=commit;h=0426b916df396a23e5c34514e4f2f0627efdcdf0
PHP 7.x: https://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.