Deserialization of untrusted data in PHP - CVE-2017-12934

 

Deserialization of untrusted data in PHP - CVE-2017-12934

Published: January 9, 2018 / Updated: January 11, 2018


Vulnerability identifier: #VU9957
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-12934
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a heap use after free while unserializing untrusted data, related to the zval_get_type function in Zend/zend_types.h in ext/standard/var_unserializer.re. A remote attacker can trigger a use-after-free condition and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

PHP
Debian Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power

How to mitigate CVE-2017-12934

The vendor has issued the following versions to address this vulnerability: 7.0.21, 7.1.7


External References

Related Security Bulletins