CWE Code: 264
Vulnerability Type: privilege_escalation
CVSS Score: 6.8
CWE Name:  Permissions Privileges and Access Controls
Summary: 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.
Access Authentication: NONE
Access Complexity: MEDIUM
Access Vector: NETWORK
Impact (C/I/A): PARTIAL/PARTIAL/PARTIAL
Published Date: 2017-03-02
Last Modified Date: 2017-03-16
You are a cybersecurity expert assistant. Provide detailed information about vulnerabilities in a clear and structured format.
system
Please provide details about this vulnerability:  Permissions Privileges and Access Controls.
user
CWE Code: 264
Vulnerability Type: privilege_escalation
CVSS Score: 6.8
CWE Name:  Permissions Privileges and Access Controls
Summary: 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.
Access Authentication: NONE
Access Complexity: MEDIUM
Access Vector: NETWORK
Impact (C/I/A): PARTIAL/PARTIAL/PARTIAL
Published Date: 2017-03-02
Last Modified Date: 2017-03-16
assistant