ALAS-2024-1936

Related Vulnerabilities: CVE-2023-6597  

An issue was found in the CPython `tempfile.TemporaryDirectory` class affecting versions 3.12.2, 3.11.8, 3.10.13, 3.9.18, and 3.8.18 and prior. The tempfile.TemporaryDirectory class would dereference symlinks during cleanup of permissions-related errors. This means users which can run privileged programs are potentially able to modify permissions of files referenced by symlinks in some circumstances. (CVE-2023-6597)

ALAS-2024-1936


Amazon Linux 1 Security Advisory: ALAS-2024-1936
Advisory Release Date: 2024-05-09 17:43 Pacific
Advisory Updated Date: 2024-05-09 17:43 Pacific
Severity: Important

Issue Overview:

An issue was found in the CPython `tempfile.TemporaryDirectory` class affecting versions 3.12.2, 3.11.8, 3.10.13, 3.9.18, and 3.8.18 and prior.

The tempfile.TemporaryDirectory class would dereference symlinks during cleanup of permissions-related errors. This means users which can run privileged programs are potentially able to modify permissions of files referenced by symlinks in some circumstances. (CVE-2023-6597)


Affected Packages:

python38


Issue Correction:
Run yum update python38 to update your system.

New Packages:
i686:
    python38-libs-3.8.5-1.11.amzn1.i686
    python38-debuginfo-3.8.5-1.11.amzn1.i686
    python38-3.8.5-1.11.amzn1.i686
    python38-tools-3.8.5-1.11.amzn1.i686
    python38-debug-3.8.5-1.11.amzn1.i686
    python38-devel-3.8.5-1.11.amzn1.i686
    python38-test-3.8.5-1.11.amzn1.i686

src:
    python38-3.8.5-1.11.amzn1.src

x86_64:
    python38-debug-3.8.5-1.11.amzn1.x86_64
    python38-tools-3.8.5-1.11.amzn1.x86_64
    python38-test-3.8.5-1.11.amzn1.x86_64
    python38-debuginfo-3.8.5-1.11.amzn1.x86_64
    python38-libs-3.8.5-1.11.amzn1.x86_64
    python38-devel-3.8.5-1.11.amzn1.x86_64
    python38-3.8.5-1.11.amzn1.x86_64