CVE Vulnerabilities

CVE-2016-9138

Use After Free

Published: Jan 04, 2017 | Modified: Apr 12, 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
5.1 MODERATE
AV:N/AC:H/Au:N/C:P/I:P/A:P
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
LOW
root.io logo minimus.io logo echo.ai logo

PHP through 5.6.27 and 7.x through 7.0.12 mishandles property modification during __wakeup processing, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via crafted serialized data, as demonstrated by Exception::__toString with DateInterval::__wakeup.

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
PhpPhp*5.6.27 (including)
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)
Php5Ubuntuprecise*
Php5Ubuntutrusty*
Php5Ubuntutrusty/esm*
Php7.0Ubuntuxenial*
Php7.0Ubuntuyakkety*
Php7.0Ubuntuzesty*
Php7.2Ubuntubionic*
Php7.2Ubuntucosmic*
Php7.2Ubuntudisco*
Php7.4Ubuntufocal*
Php8.0Ubuntuimpish*
Php8.1Ubuntukinetic*
Php8.1Ubuntulunar*

Potential Mitigations

References