Upstream information
Description
An issue was discovered in PHP 5.x and 7.x, when the configuration uses apache2handler/mod_php 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.validate_permission=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.SUSE information
Overall state of this security issue: Resolved
This issue is currently rated as having moderate severity.
National Vulnerability Database | SUSE | |
---|---|---|
Base Score | 6.8 | 4.4 |
Vector | AV:N/AC:M/Au:N/C:P/I:P/A:P | AV:L/AC:M/Au:N/C:P/I:P/A:P |
Access Vector | Network | Local |
Access Complexity | Medium | Medium |
Authentication | None | None |
Confidentiality Impact | Partial | Partial |
Integrity Impact | Partial | Partial |
Availability Impact | Partial | Partial |
- SUSE-SU-2017:0761-1, published Mon Mar 20 17:08:14 MDT 2017
- SUSE-SU-2017:0899-1, published Fri Mar 31 10:13:46 MDT 2017
- openSUSE-SU-2017:0850-1, published Wed, 29 Mar 2017 18:11:27 +0200 (CEST)
- openSUSE-SU-2017:0982-1, published Tue, 11 Apr 2017 18:11:31 +0200 (CEST)
List of released packages
Product(s) | Fixed package version(s) | References |
---|---|---|
SUSE Linux Enterprise Module for Web Scripting 12 |
| Patchnames: SUSE-SLE-Module-Web-Scripting-12-2017-417 SUSE-SLE-Module-Web-Scripting-12-2017-514 |
SUSE Linux Enterprise Software Development Kit 12 SP1 |
| Patchnames: SUSE-SLE-SDK-12-SP1-2017-417 SUSE-SLE-SDK-12-SP1-2017-514 |
SUSE Linux Enterprise Software Development Kit 12 SP2 |
| Patchnames: SUSE-SLE-SDK-12-SP2-2017-417 SUSE-SLE-SDK-12-SP2-2017-514 |
SUSE Linux Enterprise Software Development Kit 12 SP3 |
| |
SUSE Linux Enterprise Software Development Kit 12 SP4 |
| |
SUSE Linux Enterprise Software Development Kit 12 SP5 |
| |
openSUSE Leap 42.1 |
| Patchnames: openSUSE-2017-403 |
openSUSE Leap 42.2 |
| Patchnames: openSUSE-2017-403 openSUSE-2017-458 |
openSUSE Leap 42.3 |
| Patchnames: openSUSE Leap 42.3 GA apache2-mod_php5 |
Status of this issue by product and package
Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification.
Product(s) | Source package | State |
---|---|---|
SUSE Linux Enterprise 12 Module for Web and Scripting | php5 | Released |
SUSE Linux Enterprise 12 Module for Web and Scripting | php7 | Released |
SUSE Linux Enterprise Software Development Kit 12 | php5 | Released |
SUSE Linux Enterprise Software Development Kit 12 | php7 | Released |
SUSE Linux Enterprise Software Development Kit 12 SP1 | php5 | Released |
SUSE Linux Enterprise Software Development Kit 12 SP1 | php7 | Released |