Stack-based buffer overflow in PHP - CVE-2017-11628

 

Stack-based buffer overflow in PHP - CVE-2017-11628

Published: July 6, 2017 / Updated: September 26, 2017


Vulnerability identifier: #VU7356
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-11628
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause DoS condition or potentially execute arbitrary code.

The weakness exists due to stack buffer overflow in PHP INI parsing API 2 when handling malicious input. A remote attacker can send specially crafted data, trigger stack buffer overflow in zend_ini_do_op() that may lead to out-of-bounds write, cause the application to crash or execute arbitrary code with web server privileges.

Successful exploitation of the vulnerability may result in system compromise.

Affected software

PHP
Debian Linux
Gentoo Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power
php5 (Ubuntu package)
php (Debian package)

How to mitigate CVE-2017-11628

Update to version 7.0.21.

php5 (Ubuntu package) - update to 5.3.10-1ubuntu3.28
php (Debian package) - update to 5.6.33+dfsg-0+deb8u1

External References

Related Security Bulletins