CVE-2023-6597

State
Published
Severity
7.8 High
Published
Mar 19, 2024
Updated
Nov 3, 2025
Reserved
Dec 7, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:NPSF

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.8.19Affected
  • 3.9.0 to before 3.9.19Affected
  • 3.10.0 to before 3.10.14Affected
  • 3.11.0 to before 3.11.8Affected
  • 3.12.0 to before 3.12.1Affected
  • 3.13.0a1 to before 3.13.0a3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.