Summary
Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2026-15310: When decompressing crafted zip files using the bzip/LZMA/Zstandard compressions, Python could use an attacker-controlled size to pre-allocate memory, possibly resulting in memory exhaustion. 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 10
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2023 | python-unversioned-command | 0:3.9.25-1.amzn2023.0.12 |
| Amazon Linux · 2023 | python3 | 0:3.9.25-1.amzn2023.0.12 |
| Amazon Linux · 2023 | python3-debug | 0:3.9.25-1.amzn2023.0.12 |
| Amazon Linux · 2023 | python3-devel | 0:3.9.25-1.amzn2023.0.12 |
| Amazon Linux · 2023 | python3-idle | 0:3.9.25-1.amzn2023.0.12 |
| Amazon Linux · 2023 | python3-libs | 0:3.9.25-1.amzn2023.0.12 |
| Amazon Linux · 2023 | python3-test | 0:3.9.25-1.amzn2023.0.12 |
| Amazon Linux · 2023 | python3-tkinter | 0:3.9.25-1.amzn2023.0.12 |
| Amazon Linux · 2023 | python3.9-debuginfo | 0:3.9.25-1.amzn2023.0.12 |
| Amazon Linux · 2023 | python3.9-debugsource | 0:3.9.25-1.amzn2023.0.12 |
Vulnerabilities 2
-
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…
-
Low 2.1
zipfile: bzip2/LZMA/Zstandard members decompress without a max_length bound, defeating chunked-read memory limits
When decompressing crafted zip files using the bzip/LZMA/Zstandard compressions, Python could use an attacker-controlled size to pre-allocate memory, possibly resulting in memory exhaustion.