Amazon Linux 2 Security Advisory: ALAS-2025-2816
Advisory Release Date: 2025-03-26 19:24 Pacific
Advisory Updated Date: 2025-04-01 16:23 Pacific
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. (CVE-2007-4559)
An issue was discovered in Python before 3.8.18, 3.9.x before 3.9.18, 3.10.x before 3.10.13, and 3.11.x before 3.11.5. It primarily affects servers (such as HTTP servers) that use TLS client authentication. If a TLS server-side socket is created, receives data into the socket buffer, and then is closed quickly, there is a brief window where the SSLSocket instance will detect the socket as "not connected" and won't initiate a handshake, but buffered data will still be readable from the socket buffer. This data will not be authenticated if the server-side TLS peer is expecting client certificate authentication, and is indistinguishable from valid TLS stream data. Data is limited in size to the amount that will fit in the buffer. (The TLS connection cannot directly be used for data exfiltration because the vulnerable code path requires that the connection be closed on initialization of the SSLSocket.) (CVE-2023-40217)
Affected Packages:
python
Note:
This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update python to update your system.
aarch64:
python-2.7.18-1.amzn2.0.12.aarch64
python-libs-2.7.18-1.amzn2.0.12.aarch64
python-devel-2.7.18-1.amzn2.0.12.aarch64
python-tools-2.7.18-1.amzn2.0.12.aarch64
tkinter-2.7.18-1.amzn2.0.12.aarch64
python-test-2.7.18-1.amzn2.0.12.aarch64
python-debug-2.7.18-1.amzn2.0.12.aarch64
python-debuginfo-2.7.18-1.amzn2.0.12.aarch64
i686:
python-2.7.18-1.amzn2.0.12.i686
python-libs-2.7.18-1.amzn2.0.12.i686
python-devel-2.7.18-1.amzn2.0.12.i686
python-tools-2.7.18-1.amzn2.0.12.i686
tkinter-2.7.18-1.amzn2.0.12.i686
python-test-2.7.18-1.amzn2.0.12.i686
python-debug-2.7.18-1.amzn2.0.12.i686
python-debuginfo-2.7.18-1.amzn2.0.12.i686
src:
python-2.7.18-1.amzn2.0.12.src
x86_64:
python-2.7.18-1.amzn2.0.12.x86_64
python-libs-2.7.18-1.amzn2.0.12.x86_64
python-devel-2.7.18-1.amzn2.0.12.x86_64
python-tools-2.7.18-1.amzn2.0.12.x86_64
tkinter-2.7.18-1.amzn2.0.12.x86_64
python-test-2.7.18-1.amzn2.0.12.x86_64
python-debug-2.7.18-1.amzn2.0.12.x86_64
python-debuginfo-2.7.18-1.amzn2.0.12.x86_64