Summary
Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2026-115791: When tarfile or zipfile command line interface (CLI) is used to decompress an archive, a Python script shadowing the stdlib can be created. Then if an error occurs during decompressing the next file, the newly created Python script is executed. This is especially true if the created Python is called traceback.py. The problem is that Python adds the current directory to sys.path when python -m MODULE is run, and the archive is also decompressed in the current directory. The fix removes sys.path[0] in gzip, tarfile and zipfile command line interface to prevent shadowing standard library modules from extracted files.
Fixed packages 16
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2023 | python3.14 | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-debug | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-debuginfo | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-debugsource | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-devel | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-freethreading | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-freethreading-debug | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-freethreading-devel | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-freethreading-idle | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-freethreading-libs | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-freethreading-test | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-freethreading-tkinter | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-idle | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-libs | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-test | 0:3.14.10-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.14-tkinter | 0:3.14.10-1.amzn2023.0.2 |
Vulnerabilities 1
-
Medium 5.3
Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction
When tarfile or zipfile command line interface (CLI) is used to decompress an archive, a Python script shadowing the stdlib can be created. Then if an error occurs during decompressing the next file, the newly created Python script is executed. This is especi…
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2026-115791.html