Skip to content

CVE-2007-4559 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)....

MediumCVSS 6.8 EPSS 27.1%
Published
Updated
Exploit status
No public exploit known

Description

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.

Affected products

ProductAffected versionsFixed in
ubuntu/python2.7(Ubuntu:22.04) All versions No fix listed
ubuntu/python3.10(Ubuntu:22.04) < 3.10.12-1~22.04.2 3.10.12-1~22.04.2
ubuntu/python3.11(Ubuntu:22.04) All versions No fix listed
python < 3.6.16 3.6.16
python >= 3.7.0, < 3.8.17 3.8.17
python >= 3.9.0, < 3.9.17 3.9.17
python >= 3.10.0, < 3.10.12 3.10.12
python >= 3.11.0, < 3.11.4 3.11.4
Microsoft cbl mariner < 3.9.19-1 3.9.19-1
Microsoft cbl mariner < 2.7.18-5 2.7.18-5

References