Buffer over-read in PHP - CVE-2017-11147

 

Buffer over-read in PHP - CVE-2017-11147

Published: December 22, 2017


Vulnerability identifier: #VU9717
CSH Severity: Low
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-11147
CWE-ID: CWE-126
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause DoS condition or obtain potentially sensitive information on the target system.

The weakness exists due to a flaw in the PHAR archive handler. A remote attacker can supply malicious archive files, trigger buffer over-read in the phar_parse_pharfile function in ext/phar/phar.c and cause the PHP interpreter to crash or potentially disclose information.

Affected software

PHP
Red Hat Enterprise Linux for x86_64
Debian Linux
Red Hat Enterprise Linux for Power
Ubuntu
libapache2-mod-php5 (Ubuntu package)
php5 (Ubuntu package)
php5-cli (Ubuntu package)
php5-fpm (Ubuntu package)
php5-cgi (Ubuntu package)
php5 (Debian package)
libapache2-mod-php7.0 (Ubuntu package)
php7.0-cgi (Ubuntu package)
php7.0-fpm (Ubuntu package)
php7.0-cli (Ubuntu package)

How to mitigate CVE-2017-11147

Update to version 5.6.30 or 7.0.15.

libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.28, 5.5.9+dfsg-1ubuntu4.22
php5 (Ubuntu package) - update to 5.3.10-1ubuntu3.28
php5-cli (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.28, 5.5.9+dfsg-1ubuntu4.22
php5-fpm (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.28, 5.5.9+dfsg-1ubuntu4.22
php5-cgi (Ubuntu package) - addressed in versions 5.3.10-1ubuntu3.28, 5.5.9+dfsg-1ubuntu4.22
php5 (Debian package) - update to 5.4.45-0+deb7u9
libapache2-mod-php7.0 (Ubuntu package) - addressed in versions 7.0.22-0ubuntu0.16.04.1, 7.0.22-0ubuntu0.17.04.1
php7.0-cgi (Ubuntu package) - addressed in versions 7.0.22-0ubuntu0.16.04.1, 7.0.22-0ubuntu0.17.04.1
php7.0-fpm (Ubuntu package) - addressed in versions 7.0.22-0ubuntu0.16.04.1, 7.0.22-0ubuntu0.17.04.1
php7.0-cli (Ubuntu package) - addressed in versions 7.0.22-0ubuntu0.16.04.1, 7.0.22-0ubuntu0.17.04.1

External References

Related Security Bulletins