NVD Vulnerability Detail
Search Exploit, PoC
CVE-2015-8994
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.

Publication Date March 2, 2017, 3:59 p.m.
Registration Date Jan. 26, 2021, 2:59 p.m.
Last Update Nov. 21, 2024, 11:39 a.m.
CVSS3.1 : HIGH
スコア 7.5
Vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR)
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
CVSS2.0 : MEDIUM
Score 6.8
Vector AV:N/AC:M/Au:N/C:P/I:P/A:P
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃前の認証要否(Au) 不要
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
Get all privileges. いいえ
Get user privileges いいえ
Get other privileges いいえ
User operation required いいえ
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* 5.0.0 5.6.29
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* 7.0.0 7.0.14
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
PHP におけるスクリプトファイルのアクセス権を無効にされる脆弱性
Title PHP におけるスクリプトファイルのアクセス権を無効にされる脆弱性
Summary

PHP には、OpCache を有効にして apache2handler/mod_php または php-fpm を使用する場合、スクリプトファイルのアクセス権を無効にされる脆弱性が存在します。

Possible impacts スクリプトファイルのアクセス権を無効にされる可能性があります。
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date Feb. 20, 2015, midnight
Registration Date April 7, 2017, 6:07 p.m.
Last Update April 7, 2017, 6:07 p.m.
Affected System
The PHP Group
PHP 5.6.28 未満の 5.x
PHP 7.0.13 未満の 7.x
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
0 [2017年04月07日]
  掲載
Feb. 17, 2018, 10:37 a.m.