Home / CVE DB / CVE-2023-6597
Standard
Vulnerability Identifier

CVE-2023-6597

2024-03-19
Severity Assessment
7.8
HIGH
CVSS v3.x Score
Clinical Analysis (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.

Vector Sequencing

Attack Parameters

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Impact Consequences

Technical Impact

Changed
Scope
High
Confidentiality
High
Integrity
None
Availability
AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
Timeline

Time Line

PUBLICATION
19 Mar 2024
MODIFICATION
03 Nov 2025
FIRST PATCH
11 Oct 2025
Impact Statistics

Key Metrics

CVSS Score
7.8
HIGH
Patches
3
Available
Remediation Protocol

Recommended Solution

No automatic solution found. Check vendor references.
Recommended Actions for Administrators

Immediate Action Plan

1. Inventory

Identify all affected systems in your infrastructure.

2. Assessment

Assess exposure and criticality for your organization.

3. Mitigation

Apply patches or available workarounds.

4. Verification

Test and confirm effectiveness of applied measures.