CVE Database
/

CVE-2023-6597

Back to search

CVE-2023-6597

Published: Mar 19, 2024

Modified: Nov 3, 2025

PUBLISHED

CVSS v3.1

7.8

HIGH

Description

An issue was found in the CPython `tempfile.TemporaryDirectory` class affecting versions 3.12.1, 3.11.7, 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.

VendorProductVersions

Python Software Foundation

CPython

affected
0 - < 3.8.19
affected
3.9.0 - < 3.9.19
affected
3.10.0 - < 3.10.14
affected
3.11.0 - < 3.11.8
affected
3.12.0 - < 3.12.1

+1 more versions

CVSS v3.1 Details

CVSS v3.1 Vector

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

Attack Vector

Local

Attack Complexity

High

Privileges Required

None

User Interaction

None

Scope

Changed

Confidentiality

High

Integrity

High

Availability

None

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now