Skip to content
Noroxi
CVE-2023-6597· NVD / CVE Program· CNA PSF

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 pri

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.

HighCVSS 7.8 · v3.1—No exploit Fix available
Published
Mar 19, 2024
Updated
Jun 17, 2026
EPSS
0.3% · 22th percentile
CWE
—
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

31

Monitor

Low priority for now.

CVSS
31 / 40 · 7.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · PSF
7.8
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

VendorProduct
python software foundationcpython

Versions reported by the vendor

Affected version ranges reported by the assigning authority (PSF). Independent of NVD's CPE analysis and usually ahead of it.

  • Python Software Foundation CPython

    • before 3.8.19affected · python
    • 3.9.0 and later · before 3.9.19affected · python
    • 3.10.0 and later · before 3.10.14affected · python
    • 3.11.0 and later · before 3.11.8affected · python
    • 3.12.0 and later · before 3.12.1affected · python
    • 3.13.0a1 and later · before 3.13.0a3affected · python

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8platform-pythonbefore 3.6.8-62.el8_10.alma.13.6.8-62.el8_10.alma.1
AlmaLinux:8platform-python-debugbefore 3.6.8-62.el8_10.alma.13.6.8-62.el8_10.alma.1
AlmaLinux:8platform-python-develbefore 3.6.8-62.el8_10.alma.13.6.8-62.el8_10.alma.1
AlmaLinux:8python3-idlebefore 3.6.8-62.el8_10.alma.13.6.8-62.el8_10.alma.1
AlmaLinux:8python3-libsbefore 3.6.8-62.el8_10.alma.13.6.8-62.el8_10.alma.1
AlmaLinux:8python3-testbefore 3.6.8-62.el8_10.alma.13.6.8-62.el8_10.alma.1
AlmaLinux:8python3-tkinterbefore 3.6.8-62.el8_10.alma.13.6.8-62.el8_10.alma.1
AlmaLinux:8python3.11before 3.11.9-1.el8_103.11.9-1.el8_10
AlmaLinux:8python3.11-debugbefore 3.11.9-1.el8_103.11.9-1.el8_10
AlmaLinux:8python3.11-develbefore 3.11.9-1.el8_103.11.9-1.el8_10
AlmaLinux:8python3.11-idlebefore 3.11.9-1.el8_103.11.9-1.el8_10
AlmaLinux:8python3.11-libsbefore 3.11.9-1.el8_103.11.9-1.el8_10
AlmaLinux:8python3.11-rpm-macrosbefore 3.11.9-1.el8_103.11.9-1.el8_10
AlmaLinux:8python3.11-testbefore 3.11.9-1.el8_103.11.9-1.el8_10
AlmaLinux:8python3.11-tkinterbefore 3.11.9-1.el8_103.11.9-1.el8_10
AlmaLinux:8python39before 3.9.19-1.module_el8.10.0+3849+a48d89aa3.9.19-1.module_el8.10.0+3849+a48d89aa
AlmaLinux:8python39-attrsbefore 20.3.0-2.module_el8.6.0+2780+a40f65e120.3.0-2.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-cffibefore 1.14.3-2.module_el8.6.0+3248+c431e88c1.14.3-2.module_el8.6.0+3248+c431e88c
AlmaLinux:8python39-cffibefore 1.14.3-2.module_el8.6.0+2780+a40f65e11.14.3-2.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-chardetbefore 3.0.4-19.module_el8.6.0+2780+a40f65e13.0.4-19.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-cryptographybefore 3.3.1-3.module_el8.10.0+3765+2f9a457d3.3.1-3.module_el8.10.0+3765+2f9a457d
AlmaLinux:8python39-Cythonbefore 0.29.21-5.module_el8.6.0+3248+c431e88c0.29.21-5.module_el8.6.0+3248+c431e88c
AlmaLinux:8python39-Cythonbefore 0.29.21-5.module_el8.6.0+2780+a40f65e10.29.21-5.module_el8.6.0+2780+a40f65e1
AlmaLinux:8python39-debugbefore 3.9.19-1.module_el8.10.0+3849+a48d89aa3.9.19-1.module_el8.10.0+3849+a48d89aa

+96

Other highest-scoring records for the same primary product.

  • CVE-2025-4517Arbitrary writes via tarfile realpath overflow
    37Monitor
  • CVE-2026-19445Use-after-free of a server-side SSLContext when sni_callback switches contexts
    36Monitor
  • CVE-2026-6100Use-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressure
    36Monitor
  • CVE-2026-3298Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes
    35Monitor
  • CVE-2024-12254Unbounded memory buffering in SelectorSocketTransport.writelines()
    35Monitor
  • CVE-2024-8088Infinite loop when iterating over zip archive entry names from zipfile.Path
    34Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Python Software Foundation CPython3.10.14Vendor (CNA)
Python Software Foundation CPython3.11.8Vendor (CNA)
Python Software Foundation CPython3.12.1Vendor (CNA)
Python Software Foundation CPython3.13.0a3Vendor (CNA)
Python Software Foundation CPython3.8.19Vendor (CNA)
Python Software Foundation CPython3.9.19Vendor (CNA)
almalinux:platform-python3.6.8-62.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:platform-python-debug3.6.8-62.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:platform-python-devel3.6.8-62.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-idle3.6.8-62.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-libs3.6.8-62.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-test3.6.8-62.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python3-tkinter3.6.8-62.el8_10.alma.1 · AlmaLinux:8Package registry (OSV)
almalinux:python393.9.19-1.module_el8.10.0+3849+a48d89aa · AlmaLinux:8Package registry (OSV)
almalinux:python39-attrs20.3.0-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-cffi1.14.3-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-Cython0.29.21-5.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
almalinux:python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8Package registry (OSV)
alpine:python33.10.14-r0 · Alpine:v3.16Package registry (OSV)
debian:pypy37.3.11+dfsg-2+deb12u2 · Debian:12Package registry (OSV)
debian:python3.113.11.2-6+deb12u2 · Debian:12Package registry (OSV)
debian:python3.73.7.3-2+deb10u7 · Debian:10Package registry (OSV)
debian:python3.93.9.2-1+deb11u2 · Debian:11Package registry (OSV)
opensuse:python3113.11.8-150400.9.23.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python311-core3.11.8-150400.9.23.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python311-documentation3.11.8-150400.9.23.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python393.9.18-150300.4.38.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python39-core3.9.18-150300.4.38.1 · openSUSE:Leap 15.5Package registry (OSV)
opensuse:python39-documentation3.9.18-150300.4.38.1 · openSUSE:Leap 15.5Package registry (OSV)
red hat:platform-python0:3.6.8-62.el8_10 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)

+30

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • No account or password is required.
  • No user action is required.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
none

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Local
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality impact
High
Integrity impact
High
Availability impact
None

Weakness class (CWE)

—

CVSS vector

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

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records