ALAS2-2025-2817


Amazon Linux 2 Security Advisory: ALAS2-2025-2817
Advisory Released Date: 2025-04-07
Advisory Updated Date: 2025-04-07
Severity: Medium

Issue Overview:

A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts (ie "source venv/bin/activate"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected. (CVE-2024-9287)


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 to update your system.

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

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

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

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