CVE-2023-6597

Public on 2024-03-19
Modified on 2024-03-28
Description
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.
Severity
Important severity
Important
CVSS v3 Base Score
7.8
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core python Not Affected
Amazon Linux 1 python26 Not Affected
Amazon Linux 1 python27 Not Affected
Amazon Linux 2 - Core python3 Pending Fix
Amazon Linux 2023 python3.11 Pending Fix
Amazon Linux 2023 python3.9 Pending Fix
Amazon Linux 1 python34 No Fix Planned
Amazon Linux 1 python35 No Fix Planned
Amazon Linux 1 python36 No Fix Planned
Amazon Linux 1 python38 Pending Fix
Amazon Linux 2 - Python3.8 Extra python38 Pending Fix

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 7.8 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
NVD CVSSv3 7.8 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N