CVE Vulnerabilities

CVE-2016-7479

Use After Free

Published: Jan 12, 2017 | Modified: Apr 20, 2025
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
8.1 MODERATE
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
PhpPhp7.0.0 (including)7.0.0 (including)
PhpPhp7.0.1 (including)7.0.1 (including)
PhpPhp7.0.2 (including)7.0.2 (including)
PhpPhp7.0.3 (including)7.0.3 (including)
PhpPhp7.0.4 (including)7.0.4 (including)
PhpPhp7.0.5 (including)7.0.5 (including)
PhpPhp7.0.6 (including)7.0.6 (including)
PhpPhp7.0.7 (including)7.0.7 (including)
PhpPhp7.0.8 (including)7.0.8 (including)
PhpPhp7.0.9 (including)7.0.9 (including)
PhpPhp7.0.10 (including)7.0.10 (including)
PhpPhp7.0.11 (including)7.0.11 (including)
PhpPhp7.0.12 (including)7.0.12 (including)
PhpPhp7.0.14 (including)7.0.14 (including)
PhpPhp7.1.0 (including)7.1.0 (including)
Red Hat Software Collections for Red Hat Enterprise Linux 6RedHatrh-php70-php-0:7.0.27-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSRedHatrh-php70-php-0:7.0.27-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSRedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSRedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSRedHatrh-php70-php-0:7.0.27-1.el7*
Php5Ubuntuesm-infra-legacy/trusty*
Php5Ubuntuprecise*
Php5Ubuntutrusty*
Php5Ubuntutrusty/esm*
Php7.0Ubuntudevel*
Php7.0Ubuntuesm-infra/xenial*
Php7.0Ubuntuupstream*
Php7.0Ubuntuxenial*
Php7.0Ubuntuyakkety*

Potential Mitigations

References