CVE Vulnerabilities

CVE-2016-9936

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
7.5 MODERATE
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

The unserialize implementation in ext/standard/var.c in PHP 7.x before 7.0.14 allows remote attackers to cause a denial of service (use-after-free) or possibly have unspecified other impact via crafted serialized data. NOTE: this vulnerability exists because of an incomplete fix for CVE-2015-6834.

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.13 (including)7.0.13 (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*
Php7.0Ubuntudevel*
Php7.0Ubuntuesm-infra/xenial*
Php7.0Ubuntuupstream*
Php7.0Ubuntuxenial*
Php7.0Ubuntuyakkety*

Potential Mitigations

References