CVE-2015-8994
概要

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.

公表日 2017年3月2日15:59
登録日 2021年1月26日14:59
最終更新日 2024年11月21日11:39
CVSS3.1 : HIGH
スコア 7.5
ベクター 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
スコア 6.8
ベクター AV:N/AC:M/Au:N/C:P/I:P/A:P
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃前の認証要否(Au) 不要
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
全ての特権を取得 いいえ
ユーザー権限を取得 いいえ
その他の権限を取得 いいえ
ユーザー操作が必要 いいえ
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* 5.0.0 5.6.29
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* 7.0.0 7.0.14
関連情報、対策とツール
共通脆弱性一覧

JVN脆弱性情報
PHP におけるスクリプトファイルのアクセス権を無効にされる脆弱性
タイトル PHP におけるスクリプトファイルのアクセス権を無効にされる脆弱性
概要

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

想定される影響 スクリプトファイルのアクセス権を無効にされる可能性があります。
対策

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

公表日 2015年2月20日0:00
登録日 2017年4月7日18:07
最終更新日 2017年4月7日18:07
影響を受けるシステム
The PHP Group
PHP 5.6.28 未満の 5.x
PHP 7.0.13 未満の 7.x
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
0 [2017年04月07日]
  掲載
2018年2月17日10:37