An issue was discovered in PHP 5.x and 7.x, when the configuration uses apache2handler/modphp or php-fpm with OpCache enabled. With 5.x after 5.6.28 or 7.x after 7.0.13, the issue is resolved in a non-default configuration with the opcache.validatepermission=1 setting. The vulnerability details are as follows. In PHP SAPIs where PHP interpreters share a common parent process, Zend OpCache creates a shared memory object owned by the common parent during initialization. Child PHP processes inherit the SHM descriptor, using it to cache and retrieve compiled script bytecode ("opcode" in PHP jargon). Cache keys vary depending on configuration, but filename is a central key component, and compiled opcode can generally be run if a script's filename is known or can be guessed. Many common shared-hosting configurations change EUID in child processes to enforce privilege separation among hosted users (for example using mod_ruid2 for the Apache HTTP Server, or php-fpm user settings). In these scenarios, the default Zend OpCache behavior defeats script file permissions by sharing a single SHM cache among all child PHP processes. PHP scripts often contain sensitive information: Think of CMS configurations where reading or running another user's script usually means gaining privileges to the CMS database.
{ "availability": "No subscription required", "ubuntu_priority": "low", "binaries": [ { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "libapache2-mod-php5" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "libapache2-mod-php5-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "libapache2-mod-php5filter" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "libapache2-mod-php5filter-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "libphp5-embed" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "libphp5-embed-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php-pear" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-cgi" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-cgi-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-cli" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-cli-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-common" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-common-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-curl" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-curl-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-dbg" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-dev" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-dev-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-enchant" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-enchant-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-fpm" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-fpm-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-gd" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-gd-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-gmp" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-gmp-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-intl" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-intl-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-ldap" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-ldap-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-mysql" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-mysql-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-mysqlnd" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-mysqlnd-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-odbc" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-odbc-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-pgsql" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-pgsql-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-pspell" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-pspell-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-readline" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-readline-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-recode" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-recode-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-snmp" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-snmp-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-sqlite" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-sqlite-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-sybase" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-sybase-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-tidy" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-tidy-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-xmlrpc" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-xmlrpc-dbgsym" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-xsl" }, { "binary_version": "5.5.9+dfsg-1ubuntu4.22", "binary_name": "php5-xsl-dbgsym" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "low", "binaries": [ { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "libapache2-mod-php7.0" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "libapache2-mod-php7.0-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "libphp7.0-embed" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "libphp7.0-embed-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-bcmath" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-bcmath-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-bz2" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-bz2-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-cgi" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-cgi-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-cli" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-cli-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-common" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-common-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-curl" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-curl-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-dba" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-dba-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-dev" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-enchant" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-enchant-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-fpm" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-fpm-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-gd" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-gd-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-gmp" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-gmp-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-imap" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-imap-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-interbase" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-interbase-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-intl" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-intl-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-json" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-json-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-ldap" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-ldap-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-mbstring" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-mbstring-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-mcrypt" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-mcrypt-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-mysql" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-mysql-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-odbc" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-odbc-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-opcache" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-opcache-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-pgsql" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-pgsql-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-phpdbg" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-phpdbg-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-pspell" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-pspell-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-readline" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-readline-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-recode" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-recode-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-snmp" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-snmp-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-soap" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-soap-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-sqlite3" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-sqlite3-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-sybase" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-sybase-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-tidy" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-tidy-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-xml" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-xml-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-xmlrpc" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-xmlrpc-dbgsym" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-xsl" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-zip" }, { "binary_version": "7.0.15-0ubuntu0.16.04.2", "binary_name": "php7.0-zip-dbgsym" } ] }