製品・ソフトウェアに関する情報
Python の tarfile モジュールにおけるディレクトリトラバーサルの脆弱性
Title Python の tarfile モジュールにおけるディレクトリトラバーサルの脆弱性
Summary

Python の tarfile モジュールの (1) extract および (2) extractall 関数には、ディレクトリトラバーサルの脆弱性が存在します。 本問題は、CVE-2001-1267 に関連する可能性があります。

Possible impacts 攻撃者により、.. (ドットドット) を含む TAR アーカイブのファイル名を介して、任意のファイルを読まれる可能性があります。
Solution

ベンダ情報および参考情報を参照して適切な対策を実施してください。

Publication Date Aug. 27, 2007, midnight
Registration Date Dec. 20, 2012, 6:33 p.m.
Last Update Dec. 20, 2012, 6:33 p.m.
CVSS2.0 : 警告
Score 6.8
Vector AV:N/AC:M/Au:N/C:P/I:P/A:P
Affected System
Python Software Foundation
Python 
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
0 [2012年12月20日]
  掲載
Feb. 17, 2018, 10:37 a.m.

NVD Vulnerability Information
CVE-2007-4559
Summary

Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remote attackers to overwrite arbitrary files via a .. (dot dot) sequence in filenames in a TAR archive, a related issue to CVE-2001-1267.

Summary

Vulnerabilidad de salto de directorio en las funciones (1) extract y (2) extractall en el módulo tarfile en Python permite a atacantes remotos con la intervención del usuario sobrescribir archivos de su elección a través de la secuencia ..(punto punto) en nombres de archivos en archivos TAR, un asunto relacionado es CVE-2001-1267.

Publication Date Aug. 28, 2007, 10:17 a.m.
Registration Date Jan. 29, 2021, 2:19 p.m.
Last Update April 23, 2026, 9:35 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* 3.6.16
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* 3.7.0 3.8.17
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* 3.9.0 3.9.17
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* 3.10.0 3.10.12
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* 3.11.0 3.11.4
Related information, measures and tools
Common Vulnerabilities List