USN-3600-1: PHP vulnerabilities

19 March 2018

php5, php7.0, php7.1 vulnerabilities

A security issue affects these releases of Ubuntu and its derivatives:

  • Ubuntu 17.10
  • Ubuntu 16.04 LTS
  • Ubuntu 14.04 LTS

Summary

Several security issues were fixed in PHP.

Software Description

  • php7.1 - HTML-embedded scripting language interpreter
  • php7.0 - HTML-embedded scripting language interpreter
  • php5 - HTML-embedded scripting language interpreter

Details

It was discovered that PHP incorrectly handled certain stream metadata. A remote attacker could possibly use this issue to set arbitrary metadata. This issue only affected Ubuntu 14.04 LTS. (CVE-2016-10712)

It was discovered that PHP incorrectly handled the PHAR 404 error page. A remote attacker could possibly use this issue to conduct cross-site scripting (XSS) attacks. This issue only affected Ubuntu 16.04 LTS and Ubuntu 17.10. (CVE-2018-5712)

It was discovered that PHP incorrectly handled parsing certain HTTP responses. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2018-7584)

Update instructions

The problem can be corrected by updating your system to the following package versions:

Ubuntu 17.10
libapache2-mod-php7.1 - 7.1.15-0ubuntu0.17.10.1
php7.1-cgi - 7.1.15-0ubuntu0.17.10.1
php7.1-cli - 7.1.15-0ubuntu0.17.10.1
php7.1-fpm - 7.1.15-0ubuntu0.17.10.1
Ubuntu 16.04 LTS
libapache2-mod-php7.0 - 7.0.28-0ubuntu0.16.04.1
php7.0-cgi - 7.0.28-0ubuntu0.16.04.1
php7.0-cli - 7.0.28-0ubuntu0.16.04.1
php7.0-fpm - 7.0.28-0ubuntu0.16.04.1
Ubuntu 14.04 LTS
libapache2-mod-php5 - 5.5.9+dfsg-1ubuntu4.24
php5-cgi - 5.5.9+dfsg-1ubuntu4.24
php5-cli - 5.5.9+dfsg-1ubuntu4.24
php5-fpm - 5.5.9+dfsg-1ubuntu4.24

To update your system, please follow these instructions: https://wiki.ubuntu.com/Security/Upgrades.

In Ubuntu 16.04 LTS and Ubuntu 17.10, this update uses a new upstream release, which includes additional bug fixes.

In general, a standard system update will make all the necessary changes.

References