NVD Vulnerability Detail
Search Exploit, PoC
CVE-2014-2667
Summary

Race condition in the _get_masked_mode function in Lib/os.py in Python 3.2 through 3.5, when exist_ok is set to true and multiple threads are used, might allow local users to bypass intended file permissions by leveraging a separate application vulnerability before the umask has been set to the expected value.

Publication Date Nov. 16, 2014, 10:59 a.m.
Registration Date Jan. 26, 2021, 3:09 p.m.
Last Update Nov. 21, 2024, 11:06 a.m.
CVSS2.0 : LOW
Score 3.3
Vector AV:L/AC:M/Au:N/C:P/I:P/A:N
攻撃元区分(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:python:python:3.3.2:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.3.6:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.4.0:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.3.5:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.2.6:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.4.2:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.4.1:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Python の Lib/os.py の _get_masked_mode 関数におけるファイルパーミッションを回避される脆弱性
Title Python の Lib/os.py の _get_masked_mode 関数におけるファイルパーミッションを回避される脆弱性
Summary

Python の Lib/os.py の _get_masked_mode 関数には、exist_ok が true に設定され、複数のスレッドが利用されている場合、競合状態により、ファイルパーミッションを回避される脆弱性が存在します。

Possible impacts ローカルユーザにより、umask が予想値に設定される前に別のアプリケーションの脆弱性を利用されることで、ファイルパーミッションを回避される可能性があります。
Solution

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

Publication Date March 28, 2014, midnight
Registration Date Nov. 18, 2014, 4:15 p.m.
Last Update Nov. 18, 2014, 4:15 p.m.
Affected System
Python Software Foundation
Python 3.2 から 3.5
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
0 [2014年11月18日]
  掲載
Feb. 17, 2018, 10:37 a.m.