National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2015-8994 Detail

Current 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.

Source:  MITRE
View Analysis Description

Impact

CVSS v3.0 Severity and Metrics:

Base Score: 7.5 HIGH
Vector: AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (V3 legend)
Impact Score: 5.9
Exploitability Score: 1.6


Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): Low
User Interaction (UI): None
Scope (S): Unchanged
Confidentiality (C): High
Integrity (I): High
Availability (A): High

CVSS v2.0 Severity and Metrics:

Base Score: 6.8 MEDIUM
Vector: (AV:N/AC:M/Au:N/C:P/I:P/A:P) (V2 legend)
Impact Subscore: 6.4
Exploitability Subscore: 8.6


Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (AU): None
Confidentiality (C): Partial
Integrity (I): Partial
Availability (A): Partial
Additional Information:
Allows unauthorized disclosure of information
Allows unauthorized modification
Allows disruption of service

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://marc.info/?l=php-internals&m=147876797317925&w=2 Mailing List
http://marc.info/?l=php-internals&m=147921016724565&w=2 Mailing List
http://openwall.com/lists/oss-security/2017/02/28/1 Mailing List
http://seclists.org/oss-sec/2016/q4/343 Mailing List
http://seclists.org/oss-sec/2017/q1/520 Mailing List
https://bugs.php.net/bug.php?id=69090 Exploit Issue Tracking
https://ma.ttias.be/a-better-way-to-run-php-fpm/ Exploit Technical Description Third Party Advisory

Technical Details

Vulnerability Type (View All)

  • Permissions, Privileges, and Access Control (CWE-264)

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:php:php:5.0.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta4:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:rc3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.9:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.10:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.11:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.12:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.13:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.14:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.15:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.16:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.17:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.9:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.10:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.11:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.12:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.13:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.14:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.15:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.16:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.17:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.18:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.19:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.20:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.21:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.22:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.23:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.24:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.25:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.26:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.27:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.3.28:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.9:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.10:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.11:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.12:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.12:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.12:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.13:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.13:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.14:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.14:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.15:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.16:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.17:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.18:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.19:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.20:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.21:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.22:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.23:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.24:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.25:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.26:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.27:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.28:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.4.29:*:*:*:*:*:*:*
     Show Matching CPE(s)

Showing 100 of 211 CPEs, view all CPEs here.

Change History

1 change record found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2015-8994
NVD Published Date:
03/02/2017
NVD Last Modified:
03/16/2017