Distro advisory · AmazonLinux 2023
Important priority package update for python3.11
AmazonLinux 2023
What it fixes
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.
Manual fix · AmazonLinux 2023
sudo yum updateinfo info ALAS2023-2026-3558sudo yum upgrade --advisory=ALAS2023-2026-3558rpm -q python3.11Sources