ALAS-2025-871


Amazon Linux 2023 Security Advisory: ALAS-2025-871
Advisory Release Date: 2025-02-26 23:14 Pacific
Advisory Updated Date: 2025-02-26 23:14 Pacific
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)

The Python standard library functions `urllib.parse.urlsplit` and `urlparse` accepted domain names that included square brackets which isn't valid according to RFC 3986. Square brackets are only meant to be used as delimiters for specifying IPv6 and IPvFuture hosts in URLs. This could result in differential parsing across the Python URL parser and other specification-compliant URL parsers. (CVE-2025-0938)


Affected Packages:

python3.11


Issue Correction:
Run dnf update python3.11 --releasever 2023.6.20250303 to update your system.

New Packages:
aarch64:
    python3.11-tkinter-3.11.11-5.amzn2023.0.1.aarch64
    python3.11-devel-3.11.11-5.amzn2023.0.1.aarch64
    python3.11-3.11.11-5.amzn2023.0.1.aarch64
    python3.11-idle-3.11.11-5.amzn2023.0.1.aarch64
    python3.11-debugsource-3.11.11-5.amzn2023.0.1.aarch64
    python3.11-debug-3.11.11-5.amzn2023.0.1.aarch64
    python3.11-debuginfo-3.11.11-5.amzn2023.0.1.aarch64
    python3.11-libs-3.11.11-5.amzn2023.0.1.aarch64
    python3.11-test-3.11.11-5.amzn2023.0.1.aarch64

src:
    python3.11-3.11.11-5.amzn2023.0.1.src

x86_64:
    python3.11-3.11.11-5.amzn2023.0.1.x86_64
    python3.11-devel-3.11.11-5.amzn2023.0.1.x86_64
    python3.11-idle-3.11.11-5.amzn2023.0.1.x86_64
    python3.11-tkinter-3.11.11-5.amzn2023.0.1.x86_64
    python3.11-debugsource-3.11.11-5.amzn2023.0.1.x86_64
    python3.11-debug-3.11.11-5.amzn2023.0.1.x86_64
    python3.11-debuginfo-3.11.11-5.amzn2023.0.1.x86_64
    python3.11-libs-3.11.11-5.amzn2023.0.1.x86_64
    python3.11-test-3.11.11-5.amzn2023.0.1.x86_64