製品・ソフトウェアに関する情報
Python におけるユーザ名およびパスワードを取得される脆弱性
Title Python におけるユーザ名およびパスワードを取得される脆弱性
Summary

Python は、~/.pypirc にデータが書き込まれた後、変更するまでのパーミッションが world-readable パーミッション (誰でも読み取り可能な権限) であるため、競合状態が発生することにより、ユーザ名およびパスワードを取得される脆弱性が存在します。

Possible impacts ローカルユーザにより、~/.pypirc ファイルを読まれることで、ユーザ名およびパスワードを取得される可能性があります。
Solution

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

Publication Date Nov. 30, 2011, midnight
Registration Date Aug. 29, 2012, 5:35 p.m.
Last Update Nov. 1, 2013, 6:34 p.m.
CVSS2.0 : 注意
Score 1.9
Vector AV:L/AC:M/Au:N/C:P/I:N/A:N
Affected System
アップル
Apple Mac OS X 10.9 未満
Python Software Foundation
Python 2.6 から 3.2
VMware
VMware ESX 3.5
VMware ESX 4.0
VMware ESX 4.1
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
0 [2012年08月29日]
  掲載
[2012年12月26日]
  影響を受けるシステム:VMware (VMSA-2012-0016) の情報を追加
  ベンダ情報:VMware (VMSA-2012-0016) を追加
[2013年11月01日]
  影響を受けるシステム:アップル (HT6011) の情報を追加
  ベンダ情報:アップル (HT6011) を追加
  ベンダ情報:アップル (APPLE-SA-2013-10-22-3) を追加
  参考情報:JVN (JVNVU#95174988) を追加
Feb. 17, 2018, 10:37 a.m.

NVD Vulnerability Information
CVE-2011-4944
Summary

Python 2.6 through 3.2 creates ~/.pypirc with world-readable permissions before changing them after data has been written, which introduces a race condition that allows local users to obtain a username and password by reading this file.

Publication Date Aug. 28, 2012, 8:55 a.m.
Registration Date Jan. 28, 2021, 4:40 p.m.
Last Update Nov. 21, 2024, 10:33 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.6.6:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.7.1150:*:*:*:*:*:x64:*
cpe:2.3:a:python:python:2.6.1:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.6.3:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.6.2150:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.1.2150:*:*:*:*:*:x64:*
cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.7.1150:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.6.8:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.6.7:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.7.3:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:*
cpe:2.3:a:python:python:2.6.4:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:*
cpe:2.3:a:python:python:2.6.6150:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.6.2:*:*:*:*:*:*:*
cpe:2.3:a:python:python:2.7.2150:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:*
cpe:2.3:a:python:python:2.6.5:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List