ALAS2-2026-4194


Amazon Linux 2 (EOS) Security Advisory: ALAS2-2026-4194
Advisory Released Date: 2026-12-04
Advisory Updated Date: 2026-12-04
Severity: Important

Issue Overview:

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. (CVE-2026-115791)


Affected Packages:

python3


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 python3 or yum update --advisory ALAS2-2026-4194 to update your system.

New Packages:
aarch64:
    python3-3.7.16-1.amzn2.0.31.aarch64
    python3-libs-3.7.16-1.amzn2.0.31.aarch64
    python3-devel-3.7.16-1.amzn2.0.31.aarch64
    python3-tools-3.7.16-1.amzn2.0.31.aarch64
    python3-tkinter-3.7.16-1.amzn2.0.31.aarch64
    python3-test-3.7.16-1.amzn2.0.31.aarch64
    python3-debug-3.7.16-1.amzn2.0.31.aarch64
    python3-debuginfo-3.7.16-1.amzn2.0.31.aarch64

i686:
    python3-3.7.16-1.amzn2.0.31.i686
    python3-libs-3.7.16-1.amzn2.0.31.i686
    python3-devel-3.7.16-1.amzn2.0.31.i686
    python3-tools-3.7.16-1.amzn2.0.31.i686
    python3-tkinter-3.7.16-1.amzn2.0.31.i686
    python3-test-3.7.16-1.amzn2.0.31.i686
    python3-debug-3.7.16-1.amzn2.0.31.i686
    python3-debuginfo-3.7.16-1.amzn2.0.31.i686

src:
    python3-3.7.16-1.amzn2.0.31.src

x86_64:
    python3-3.7.16-1.amzn2.0.31.x86_64
    python3-libs-3.7.16-1.amzn2.0.31.x86_64
    python3-devel-3.7.16-1.amzn2.0.31.x86_64
    python3-tools-3.7.16-1.amzn2.0.31.x86_64
    python3-tkinter-3.7.16-1.amzn2.0.31.x86_64
    python3-test-3.7.16-1.amzn2.0.31.x86_64
    python3-debug-3.7.16-1.amzn2.0.31.x86_64
    python3-debuginfo-3.7.16-1.amzn2.0.31.x86_64