製品・ソフトウェアに関する情報
Python の PySys_SetArgv API 関数における任意のコードを実行される脆弱性
Title Python の PySys_SetArgv API 関数における任意のコードを実行される脆弱性
Summary

Python の PySys_SetArgv API 関数には、argv[0] 引数にパスの区切り文字が含まれていない場合、sys.path の先頭に空の文字列を付加するため、任意のコードを実行される脆弱性が存在します。

Possible impacts ローカルユーザにより、カレントワーキングディレクトリ内にあるトロイの木馬の Python ファイルを介して、任意のコードを実行される可能性があります。
Solution

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

Publication Date April 14, 2009, midnight
Registration Date Feb. 4, 2011, 1:58 p.m.
Last Update Feb. 4, 2011, 1:58 p.m.
CVSS2.0 : 警告
Score 6.9
Vector AV:L/AC:M/Au:N/C:C/I:C/A:C
Affected System
レッドハット
Red Hat Enterprise Linux 5 (server)
Red Hat Enterprise Linux Desktop 5.0 (client)
RHEL Desktop Workstation 5 (client)
サイバートラスト株式会社
Asianux Server 3 (x86)
Asianux Server 3 (x86-64)
Python Software Foundation
Python 2.6
Python 2.7
Python 3.1
Python 3.2
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
0 [2011年02月04日]
  掲載
Feb. 17, 2018, 10:37 a.m.

NVD Vulnerability Information
CVE-2008-5983
Summary

Untrusted search path vulnerability in the PySys_SetArgv API function in Python 2.6 and earlier, and possibly later versions, prepends an empty string to sys.path when the argv[0] argument does not contain a path separator, which might allow local users to execute arbitrary code via a Trojan horse Python file in the current working directory.

Publication Date Jan. 28, 2009, 11:30 a.m.
Registration Date Jan. 29, 2021, 1:48 p.m.
Last Update Nov. 7, 2023, 11:03 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* 3.1.0 3.1.3
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* 2.6.6
Configuration2 or higher or less more than less than
cpe:2.3:o:fedoraproject:fedora:13:*:*:*:*:*:*:*
Configuration3 or higher or less more than less than
cpe:2.3:o:canonical:ubuntu_linux:11.04:*:*:*:*:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:11.10:*:*:*:*:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:-:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:10.04:*:*:*:-:*:*:*
Related information, measures and tools
Common Vulnerabilities List