CVE-2023-6597: python software foundation cpython
Vulnerability summary
CVE-2023-6597 is a high (CVSS 7.8) vulnerability in python software foundation cpython. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 24.2% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 22 · Related 19Timeline
- 19-03-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · AlpineEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- OSV · Red hatEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- OSV · WolfiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
24%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.31% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat26 products
- platform-python< 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5
- platform-python-debug< 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5
- platform-python-devel< 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5
- python-unversioned-command< 0:3.9.16-1.el9_2.5 | < 0:3.9.10-4.el9_0.4
- python3< 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5 | < 0:3.9.16-1.el9_2.5 | < 0:3.9.10-4.el9_0.4
Suse16 products
- python3-core&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS< 3.6.15-150000.3.141.1
- python3-core&distro=SUSE Linux Enterprise Micro 5.1< 3.6.15-150000.3.141.1
- python3-core&distro=SUSE Linux Enterprise Server 15 SP2-LTSS< 3.6.15-150000.3.141.1
- python3-core&distro=SUSE Linux Enterprise Server for SAP Applications 15 SP2< 3.6.15-150000.3.141.1
- python310-core&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 3.10.13-150400.4.42.1
Chainguard11 products
- aws-cli-v2< 2.15.35-r0
- python-3.10< 3.10.14-r0
- python-3.11< 3.11.8-r0
- python-3.12< 3.12.2-r0
- python-3.12-base< 3.12.2-r0
Wolfi10 products
- aws-cli-v2< 2.15.35-r0
- python-3.10< 3.10.14-r0
- python-3.11< 3.11.8-r0
- python-3.12< 3.12.2-r0
- python-3.12-base< 3.12.2-r0
Opensuse8 products
- python310-core&distro=openSUSE Leap 15.5< 3.10.13-150400.4.42.1
- python310-documentation&distro=openSUSE Leap 15.5< 3.10.13-150400.4.42.1
- python310&distro=openSUSE Leap 15.5< 3.10.13-150400.4.42.1
- python310&distro=openSUSE Tumbleweed< 3.10.13-5.1
- python311&distro=openSUSE Tumbleweed< 3.11.8-3.1
Ubuntu7 products
- python3.10< 3.10.12-1~22.04.4
- python3.11< 3.11.0~rc1-1~22.04.1~esm1
- python3.4All versions (No fix recorded)
- python3.5< 3.5.2-2ubuntu0~16.04.13+esm13
- python3.7< 3.7.5-2ubuntu1~18.04.2+esm3
Debian2 products
- pypy3< 7.3.11+dfsg-2+deb12u2 | < 7.3.13+dfsg-1
- python3.11< 3.11.2-6+deb12u2
Alpine1 product
- python3< 3.10.14-r0
Python software foundation1 product
- cpython< 3.8.19 | ≥ 3.9.0, < 3.9.19 | ≥ 3.10.0, < 3.10.14 | ≥ 3.11.0, < 3.11.8 | ≥ 3.12.0, < 3.12.1 | ≥ 3.13.0a1, < 3.13.0a3
9 vendors · 82 products
References
46 linksShow all 46 references
- github.com/python/cpythonPACKAGE