CVE-2023-6597
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
02 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
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 0.31% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 23.9% of scored records. A rank, not a probability.
- NVD base score
- 7.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- NVD analysis status
- Deferred. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2024-03-19 15:44Z2 YR AGO
- Last updated
- 2025-11-03 21:50Z11 MO AGO
- Reserved
- 2023-12-07
- Assigning CNA
- PSF
- Record state
- PUBLISHED
- Severity
- High (CVSS 7.8)
- CNA CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- Weaknesses
- CWE-61UNIX Symbolic Link (Symlink) FollowingCompound
- Data version
- 5.2
- Document digest
- 061bc9078a4c743e4b4dba0b329540c95cec893ba9a012fa28dcacf4370ea4bf
05 Affected products
06 References
- github.comhttps://github.com/python/cpython/commit/81c16cd94ec38d61aa478b9a452436dc3b1b524d
- github.comhttps://github.com/python/cpython/commit/6ceb8aeda504b079fef7a57b8d81472f15cdd9a5
- github.comhttps://github.com/python/cpython/commit/5585334d772b253a01a6730e8202ffb1607c3d25
- github.comhttps://github.com/python/cpython/commit/8eaeefe49d179ca4908d052745e3bb8b6f238f82
- github.comhttps://github.com/python/cpython/commit/d54e22a669ae6e987199bb5d2c69bb5a46b0083b
- github.comhttps://github.com/python/cpython/commit/02a9259c717738dfe6b463c44d7e17f2b6d2cb3a
- github.comhttps://github.com/python/cpython/issues/91133
- mail.python.orghttps://mail.python.org/archives/list/security-announce@python.org/thread/Q5C6ATFC67K53XFV4KE45325S7NS62LD/
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2024/03/msg00025.html
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2024/03/20/5
- lists.fedoraproject.orghttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T3IGRX54M7RNCQOXVQO5KQKTGWCOABIM/
- lists.fedoraproject.orghttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U5VHWS52HGD743C47UMCSAK2A773M2YE/
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2024/11/msg00005.html
07 Fixed in
AlmaLinux 8
- platform-python Fixed in 3.6.8-62.el8_10.alma.1
- platform-python-debug Fixed in 3.6.8-62.el8_10.alma.1
- platform-python-devel Fixed in 3.6.8-62.el8_10.alma.1
- python3-idle Fixed in 3.6.8-62.el8_10.alma.1
- python3-libs Fixed in 3.6.8-62.el8_10.alma.1
- python3-test Fixed in 3.6.8-62.el8_10.alma.1
- python3-tkinter Fixed in 3.6.8-62.el8_10.alma.1
- python3.11 Fixed in 3.11.9-1.el8_10
- python3.11-debug Fixed in 3.11.9-1.el8_10
- python3.11-devel Fixed in 3.11.9-1.el8_10
- python3.11-idle Fixed in 3.11.9-1.el8_10
- python3.11-libs Fixed in 3.11.9-1.el8_10
- python3.11-rpm-macros Fixed in 3.11.9-1.el8_10
- python3.11-test Fixed in 3.11.9-1.el8_10
- python3.11-tkinter Fixed in 3.11.9-1.el8_10
- python39 Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-Cython Fixed
A version is affected if any line below covers it.
- Affected before 0.29.21-5.module_el8.6.0+2780+a40f65e1
- Affected before 0.29.21-5.module_el8.6.0+3248+c431e88c
- python39-PyMySQL Fixed in 0.10.1-2.module_el8.6.0+2780+a40f65e1
- python39-attrs Fixed in 20.3.0-2.module_el8.6.0+2780+a40f65e1
- python39-cffi Fixed
A version is affected if any line below covers it.
- Affected before 1.14.3-2.module_el8.6.0+2780+a40f65e1
- Affected before 1.14.3-2.module_el8.6.0+3248+c431e88c
- python39-chardet Fixed in 3.0.4-19.module_el8.6.0+2780+a40f65e1
- python39-cryptography Fixed in 3.3.1-3.module_el8.10.0+3765+2f9a457d
- python39-debug Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-devel Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-idle Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-idna Fixed in 2.10-4.module_el8.10.0+3849+a48d89aa
- python39-iniconfig Fixed in 1.1.1-2.module_el8.6.0+2780+a40f65e1
- python39-libs Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-lxml Fixed
A version is affected if any line below covers it.
- Affected before 4.6.5-1.module_el8.6.0+2780+a40f65e1
- Affected before 4.6.5-1.module_el8.6.0+3248+c431e88c
- python39-mod_wsgi Fixed in 4.7.1-7.module_el8.9.0+3634+fb2a896c
- python39-more-itertools Fixed in 8.5.0-2.module_el8.6.0+2780+a40f65e1
- python39-numpy Fixed
A version is affected if any line below covers it.
- Affected before 1.19.4-3.module_el8.6.0+2780+a40f65e1
- Affected before 1.19.4-3.module_el8.6.0+3248+c431e88c
- python39-numpy-doc Fixed in 1.19.4-3.module_el8.6.0+2780+a40f65e1
- python39-numpy-f2py Fixed
A version is affected if any line below covers it.
- Affected before 1.19.4-3.module_el8.6.0+2780+a40f65e1
- Affected before 1.19.4-3.module_el8.6.0+3248+c431e88c
- python39-packaging Fixed in 20.4-4.module_el8.6.0+2780+a40f65e1
- python39-pip Fixed in 20.2.4-9.module_el8.10.0+3765+2f9a457d
- python39-pip-wheel Fixed in 20.2.4-9.module_el8.10.0+3765+2f9a457d
- python39-pluggy Fixed in 0.13.1-3.module_el8.6.0+2780+a40f65e1
- python39-ply Fixed in 3.11-10.module_el8.6.0+2780+a40f65e1
- python39-psutil Fixed
A version is affected if any line below covers it.
- Affected before 5.8.0-4.module_el8.6.0+2780+a40f65e1
- Affected before 5.8.0-4.module_el8.6.0+3248+c431e88c
24 further packages in AlmaLinux 8 not shown (first 40 listed).
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- python-unversioned-command Fixed in 3.9.18-3.el9_4.1
- python3 Fixed in 3.9.18-3.el9_4.1
- python3-debug Fixed in 3.9.18-3.el9_4.1
- python3-devel Fixed in 3.9.18-3.el9_4.1
- python3-idle Fixed in 3.9.18-3.el9_4.1
- python3-libs Fixed in 3.9.18-3.el9_4.1
- python3-test Fixed in 3.9.18-3.el9_4.1
- python3-tkinter Fixed in 3.9.18-3.el9_4.1
- python3.11 Fixed in 3.11.7-1.el9_4.1
- python3.11-debug Fixed in 3.11.7-1.el9_4.1
- python3.11-devel Fixed in 3.11.7-1.el9_4.1
- python3.11-idle Fixed in 3.11.7-1.el9_4.1
- python3.11-libs Fixed in 3.11.7-1.el9_4.1
- python3.11-test Fixed in 3.11.7-1.el9_4.1
- python3.11-tkinter Fixed in 3.11.7-1.el9_4.1
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 8
- platform-python Fixed in 3.6.8-62.el8_10.alma.1
- platform-python-debug Fixed in 3.6.8-62.el8_10.alma.1
- platform-python-devel Fixed in 3.6.8-62.el8_10.alma.1
- python3-idle Fixed in 3.6.8-62.el8_10.alma.1
- python3-libs Fixed in 3.6.8-62.el8_10.alma.1
- python3-test Fixed in 3.6.8-62.el8_10.alma.1
- python3-tkinter Fixed in 3.6.8-62.el8_10.alma.1
- python3.11 Fixed in 3.11.9-1.el8_10
- python3.11-debug Fixed in 3.11.9-1.el8_10
- python3.11-devel Fixed in 3.11.9-1.el8_10
- python3.11-idle Fixed in 3.11.9-1.el8_10
- python3.11-libs Fixed in 3.11.9-1.el8_10
- python3.11-rpm-macros Fixed in 3.11.9-1.el8_10
- python3.11-test Fixed in 3.11.9-1.el8_10
- python3.11-tkinter Fixed in 3.11.9-1.el8_10
- python39 Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-Cython Fixed
A version is affected if any line below covers it.
- Affected before 0.29.21-5.module_el8.6.0+2780+a40f65e1
- Affected before 0.29.21-5.module_el8.6.0+3248+c431e88c
- python39-PyMySQL Fixed in 0.10.1-2.module_el8.6.0+2780+a40f65e1
- python39-attrs Fixed in 20.3.0-2.module_el8.6.0+2780+a40f65e1
- python39-cffi Fixed
A version is affected if any line below covers it.
- Affected before 1.14.3-2.module_el8.6.0+2780+a40f65e1
- Affected before 1.14.3-2.module_el8.6.0+3248+c431e88c
- python39-chardet Fixed in 3.0.4-19.module_el8.6.0+2780+a40f65e1
- python39-cryptography Fixed in 3.3.1-3.module_el8.10.0+3765+2f9a457d
- python39-debug Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-devel Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-idle Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-idna Fixed in 2.10-4.module_el8.10.0+3849+a48d89aa
- python39-iniconfig Fixed in 1.1.1-2.module_el8.6.0+2780+a40f65e1
- python39-libs Fixed in 3.9.19-1.module_el8.10.0+3849+a48d89aa
- python39-lxml Fixed
A version is affected if any line below covers it.
- Affected before 4.6.5-1.module_el8.6.0+2780+a40f65e1
- Affected before 4.6.5-1.module_el8.6.0+3248+c431e88c
- python39-mod_wsgi Fixed in 4.7.1-7.module_el8.9.0+3634+fb2a896c
- python39-more-itertools Fixed in 8.5.0-2.module_el8.6.0+2780+a40f65e1
- python39-numpy Fixed
A version is affected if any line below covers it.
- Affected before 1.19.4-3.module_el8.6.0+2780+a40f65e1
- Affected before 1.19.4-3.module_el8.6.0+3248+c431e88c
- python39-numpy-doc Fixed in 1.19.4-3.module_el8.6.0+2780+a40f65e1
- python39-numpy-f2py Fixed
A version is affected if any line below covers it.
- Affected before 1.19.4-3.module_el8.6.0+2780+a40f65e1
- Affected before 1.19.4-3.module_el8.6.0+3248+c431e88c
- python39-packaging Fixed in 20.4-4.module_el8.6.0+2780+a40f65e1
- python39-pip Fixed in 20.2.4-9.module_el8.10.0+3765+2f9a457d
- python39-pip-wheel Fixed in 20.2.4-9.module_el8.10.0+3765+2f9a457d
- python39-pluggy Fixed in 0.13.1-3.module_el8.6.0+2780+a40f65e1
- python39-ply Fixed in 3.11-10.module_el8.6.0+2780+a40f65e1
- python39-psutil Fixed
A version is affected if any line below covers it.
- Affected before 5.8.0-4.module_el8.6.0+2780+a40f65e1
- Affected before 5.8.0-4.module_el8.6.0+3248+c431e88c
24 further packages in CloudLinux 8 not shown (first 40 listed).
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- python-unversioned-command Fixed in 3.9.18-3.el9_4.1
- python3 Fixed in 3.9.18-3.el9_4.1
- python3-debug Fixed in 3.9.18-3.el9_4.1
- python3-devel Fixed in 3.9.18-3.el9_4.1
- python3-idle Fixed in 3.9.18-3.el9_4.1
- python3-libs Fixed in 3.9.18-3.el9_4.1
- python3-test Fixed in 3.9.18-3.el9_4.1
- python3-tkinter Fixed in 3.9.18-3.el9_4.1
- python3.11 Fixed in 3.11.7-1.el9_4.1
- python3.11-debug Fixed in 3.11.7-1.el9_4.1
- python3.11-devel Fixed in 3.11.7-1.el9_4.1
- python3.11-idle Fixed in 3.11.7-1.el9_4.1
- python3.11-libs Fixed in 3.11.7-1.el9_4.1
- python3.11-test Fixed in 3.11.7-1.el9_4.1
- python3.11-tkinter Fixed in 3.11.7-1.el9_4.1
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- pypy3 Fixed in 7.3.11+dfsg-2+deb12u2
- python3.11 Fixed in 3.11.2-6+deb12u2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- pypy3 Fixed in 7.3.13+dfsg-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- pypy3 Fixed in 7.3.13+dfsg-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- python3.8 Fixed in 3.8.10-0ubuntu1~20.04.10
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- python3.10 Fixed in 3.10.12-1~22.04.4
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- python3.4 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- python3.5 Fixed in 3.5.2-2ubuntu0~16.04.13+esm13Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- python3.7 Fixed in 3.7.5-2ubuntu1~18.04.2+esm3Available with Ubuntu Pro: https://ubuntu.com/pro
- python3.8 Fixed in 3.8.0-3ubuntu1~18.04.2+esm2Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 20.04 LTS
- python3.9 Fixed in 3.9.5-3ubuntu0~20.04.1+esm2Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 22.04 LTS
- python3.11 Fixed in 3.11.0~rc1-1~22.04.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.