Directory Traversal Affecting python3-devel package, versions <0:3.9.20-1.amzn2023.0.2


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
7.42% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2023-PYTHON3DEVEL-9296613
  • published7 Mar 2025
  • disclosed28 Aug 2007

Introduced: 28 Aug 2007

CVE-2007-4559  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 python3-devel to version 0:3.9.20-1.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2024-790.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-devel package and not the python3-devel package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1