Read the docs
TI-2023-06044 Aliases CVE-2023-6597GHSA-797f-63wg-8chv

An issue was found in the CPython `tempfile.TemporaryDirectory` class affecting versions…

Priority LOW 36Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00313 24th percentileScored 2026-11-07
Fix Fixed CPython (Python Software Foundation): 3.8.19, 3.9.19, 3.10.14 +3Red Hat: 22 advisories

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Python Software FoundationCPythonbefore 3.8.19; 3.9.0 to before 3.9.19; 3.10.0 to before 3.10.14; 3.11.0 to before 3.11.8; 3.12.0 to before 3.12.1; 3.13.0a1 to before 3.13.0a33.8.19, 3.9.19, 3.10.14, 3.11.8, 3.12.1, 3.13.0a3Patch availableCNA
  • CPython VendorPython Software Foundation Affected before 3.8.19; 3.9.0 to before 3.9.19; 3.10.0 to before 3.10.14; 3.11.0 to before 3.11.8; 3.12.0 to before 3.12.1; 3.13.0a1 to before 3.13.0a3 Fixed in 3.8.19, 3.9.19, 3.10.14, 3.11.8, 3.12.1, 3.13.0a3 Patch available CNA

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:python_software_foundation:cpython:*:*:*:*:*:*:*:*——Python Software Foundation

Remediation

  • Fix · CNA CPython (Python Software Foundation) Fixed in 3.8.19, 3.9.19, 3.10.14, 3.11.8, 3.12.1, 3.13.0a3

Red Hat 22 advisories

  • RHSA-2025:2705 Released 2025-03-18 · Red Hat rating Important
    OpenShift Container Platform 4.18.5 bug fix and security update
    • Red Hat OpenShift Container Platform 4.18 rhcos
  • RHSA-2025:1116 Released 2025-02-13 · Red Hat rating Important
    OpenShift Container Platform 4.13.55 bug fix and security update
    • Red Hat OpenShift Container Platform 4.13 openshift4/ose-baremetal-machine-controllers, openshift4/ose-ibmcloud-machine-controllers-rhel8, openshift4/ose-nutanix-cloud-controller-manager-rhel8 +4
  • RHSA-2025:1120 Released 2025-02-11 · Red Hat rating Important
    OpenShift Container Platform 4.17.16 bug fix and security update
    • Red Hat OpenShift Container Platform 4.17 openshift4/ose-operator-marketplace-rhel9, rhcos
Show 19 more Red Hat advisories
  • RHSA-2025:0832 Released 2025-02-06 · Red Hat rating Important
    OpenShift Container Platform 4.12.72 bug fix and security update
    • Red Hat OpenShift Container Platform 4.12 openshift4/ose-baremetal-machine-controllers, openshift4/ose-nutanix-machine-controllers-rhel8, openshift4/ose-openshift-apiserver-rhel8 +3
  • RHSA-2025:0646 Released 2025-01-29 · Red Hat rating Important
    OpenShift Container Platform 4.15.44 security update
    • Red Hat OpenShift Container Platform 4.15 openshift4/ose-baremetal-machine-controllers-rhel9, openshift4/ose-operator-lifecycle-manager-rhel9, openshift4/ose-operator-registry-rhel9 +1
  • RHSA-2025:0650 Released 2025-01-29 · Red Hat rating Important
    OpenShift Container Platform 4.16.32 bug fix and security update
    • Red Hat OpenShift Container Platform 4.16 openshift4/ose-agent-installer-api-server-rhel9, openshift4/ose-baremetal-machine-controllers-rhel9, openshift4/ose-docker-builder-rhel9 +4
  • RHSA-2025:0364 Released 2025-01-22 · Red Hat rating Important
    OpenShift Container Platform 4.14.45 bug fix and security update
    • Red Hat OpenShift Container Platform 4.14 openshift4/ose-cloud-credential-operator, rhcos
  • RHSA-2024:5689 Released 2024-08-21 · Red Hat rating Important
    python3.9 security update
    • Red Hat Enterprise Linux AppStream E4S (v.9.0) python-unversioned-command-3.9.10-4.el9_0.4, python3-devel-3.9.10-4.el9_0.4, python3-tkinter-3.9.10-4.el9_0.4
    • Red Hat Enterprise Linux BaseOS E4S (v.9.0) python3-3.9.10-4.el9_0.4, python3-libs-3.9.10-4.el9_0.4, python3.9-3.9.10-4.el9_0.4
  • RHSA-2024:5535 Released 2024-08-19 · Red Hat rating Important
    python3.9 security update
    • Red Hat CodeReady Linux Builder EUS (v.9.2) python3-3.9.16-1.el9_2.5, python3-debug-3.9.16-1.el9_2.5, python3-idle-3.9.16-1.el9_2.5 +2
    • Red Hat Enterprise Linux AppStream EUS (v.9.2) python-unversioned-command-3.9.16-1.el9_2.5, python3-devel-3.9.16-1.el9_2.5, python3-tkinter-3.9.16-1.el9_2.5
    • Red Hat Enterprise Linux BaseOS EUS (v.9.2) python3-3.9.16-1.el9_2.5, python3-libs-3.9.16-1.el9_2.5, python3.9-3.9.16-1.el9_2.5
  • RHSA-2024:4896 Released 2024-07-29 · Red Hat rating Important
    python3.11 security update
    • Red Hat CodeReady Linux Builder EUS (v.9.2) python3.11-3.11.2-2.el9_2.4, python3.11-debug-3.11.2-2.el9_2.4, python3.11-idle-3.11.2-2.el9_2.4 +2
    • Red Hat Enterprise Linux AppStream EUS (v.9.2) python3.11-3.11.2-2.el9_2.4, python3.11-devel-3.11.2-2.el9_2.4, python3.11-libs-3.11.2-2.el9_2.4 +1
  • RHSA-2024:4871 Released 2024-07-25 · Red Hat rating Moderate
    Red Hat Service Interconnect security update
    • Red Hat Service Interconnect 1 service-interconnect/skupper-flow-collector-rhel9, service-interconnect/skupper-router-rhel9, service-interconnect/skupper-service-controller-rhel9
  • RHSA-2024:4865 Released 2024-07-25 · Red Hat rating Moderate
    Red Hat Service Interconnect security update
    • 9Base-Service-Interconnect-1.4 service-interconnect/skupper-flow-collector-rhel9, service-interconnect/skupper-router-rhel9, service-interconnect/skupper-service-controller-rhel9
  • RHSA-2024:4456 Released 2024-07-10 · Red Hat rating Important
    python3 security update
    • Red Hat Enterprise Linux AppStream AUS (v.8.4) platform-python-3.6.8-39.el8_4.5, platform-python-debug-3.6.8-39.el8_4.5, platform-python-devel-3.6.8-39.el8_4.5 +3
    • Red Hat Enterprise Linux AppStream E4S (v.8.4) platform-python-3.6.8-39.el8_4.5, platform-python-debug-3.6.8-39.el8_4.5, platform-python-devel-3.6.8-39.el8_4.5 +3
    • Red Hat Enterprise Linux AppStream TUS (v.8.4) platform-python-3.6.8-39.el8_4.5, platform-python-debug-3.6.8-39.el8_4.5, platform-python-devel-3.6.8-39.el8_4.5 +3
    • Red Hat Enterprise Linux BaseOS AUS (v.8.4) platform-python-3.6.8-39.el8_4.5, python3-3.6.8-39.el8_4.5, python3-libs-3.6.8-39.el8_4.5 +1
    • Red Hat Enterprise Linux BaseOS E4S (v.8.4) platform-python-3.6.8-39.el8_4.5, python3-3.6.8-39.el8_4.5, python3-libs-3.6.8-39.el8_4.5 +1
    • Red Hat Enterprise Linux BaseOS TUS (v.8.4) platform-python-3.6.8-39.el8_4.5, python3-3.6.8-39.el8_4.5, python3-libs-3.6.8-39.el8_4.5 +1
  • RHSA-2024:4406 Released 2024-07-09 · Red Hat rating Important
    python3 security update
    • Red Hat Enterprise Linux AppStream AUS (v.8.6) platform-python-3.6.8-47.el8_6.6, platform-python-debug-3.6.8-47.el8_6.6, platform-python-devel-3.6.8-47.el8_6.6 +3
    • Red Hat Enterprise Linux AppStream E4S (v.8.6) platform-python-3.6.8-47.el8_6.6, platform-python-debug-3.6.8-47.el8_6.6, platform-python-devel-3.6.8-47.el8_6.6 +3
    • Red Hat Enterprise Linux AppStream TUS (v.8.6) platform-python-3.6.8-47.el8_6.6, platform-python-debug-3.6.8-47.el8_6.6, platform-python-devel-3.6.8-47.el8_6.6 +3
    • Red Hat Enterprise Linux BaseOS AUS (v.8.6) platform-python-3.6.8-47.el8_6.6, python3-3.6.8-47.el8_6.6, python3-libs-3.6.8-47.el8_6.6 +1
    • Red Hat Enterprise Linux BaseOS E4S (v.8.6) platform-python-3.6.8-47.el8_6.6, python3-3.6.8-47.el8_6.6, python3-libs-3.6.8-47.el8_6.6 +1
    • Red Hat Enterprise Linux BaseOS TUS (v.8.6) platform-python-3.6.8-47.el8_6.6, python3-3.6.8-47.el8_6.6, python3-libs-3.6.8-47.el8_6.6 +1
  • RHSA-2024:4370 Released 2024-07-08 · Red Hat rating Important
    python3 security update
    • Red Hat CodeReady Linux Builder EUS (v.8.8) python3.11-3.11.2-2.el8_8.3, python3.11-debug-3.11.2-2.el8_8.3, python3.11-idle-3.11.2-2.el8_8.3 +2
    • Red Hat Enterprise Linux AppStream EUS (v.8.8) python3.11-3.11.2-2.el8_8.3, python3.11-devel-3.11.2-2.el8_8.3, python3.11-libs-3.11.2-2.el8_8.3 +2
  • RHSA-2024:4166 Released 2024-06-27 · Red Hat rating Important
    python3 security update
    • Red Hat Enterprise Linux AppStream AUS (v. 8.2) platform-python-3.6.8-24.el8_2.3, platform-python-debug-3.6.8-24.el8_2.3, platform-python-devel-3.6.8-24.el8_2.3 +3
    • Red Hat Enterprise Linux BaseOS AUS (v. 8.2) platform-python-3.6.8-24.el8_2.3, python3-3.6.8-24.el8_2.3, python3-libs-3.6.8-24.el8_2.3 +1
  • RHSA-2024:4078 Released 2024-06-25 · Red Hat rating Important
    python3.9 security update
    • Red Hat Enterprise Linux AppStream (v. 9) python-unversioned-command-3.9.18-3.el9_4.1, python3-devel-3.9.18-3.el9_4.1, python3-tkinter-3.9.18-3.el9_4.1
    • Red Hat Enterprise Linux BaseOS (v. 9) python3-3.9.18-3.el9_4.1, python3-libs-3.9.18-3.el9_4.1, python3.9-3.9.18-3.el9_4.1
    • Red Hat Enterprise Linux CRB (v. 9) python3-3.9.18-3.el9_4.1, python3-debug-3.9.18-3.el9_4.1, python3-idle-3.9.18-3.el9_4.1 +2
  • RHSA-2024:4077 Released 2024-06-25 · Red Hat rating Important
    python3.11 security update
    • Red Hat Enterprise Linux AppStream (v. 9) python3.11-3.11.7-1.el9_4.1, python3.11-devel-3.11.7-1.el9_4.1, python3.11-libs-3.11.7-1.el9_4.1 +1
    • Red Hat Enterprise Linux CRB (v. 9) python3.11-3.11.7-1.el9_4.1, python3.11-debug-3.11.7-1.el9_4.1, python3.11-idle-3.11.7-1.el9_4.1 +2
  • RHSA-2024:4058 Released 2024-06-24 · Red Hat rating Important
    python3.11 security update
    • Red Hat Enterprise Linux AppStream (v. 8) python3.11-3.11.9-1.el8_10, python3.11-devel-3.11.9-1.el8_10, python3.11-libs-3.11.9-1.el8_10 +2
    • Red Hat Enterprise Linux CRB (v. 8) python3.11-3.11.9-1.el8_10, python3.11-debug-3.11.9-1.el8_10, python3.11-idle-3.11.9-1.el8_10 +2
  • RHSA-2024:3466 Released 2024-05-29 · Red Hat rating Important
    python39:3.9 and python39-devel:3.9 security update
    • Red Hat Enterprise Linux AppStream (v. 8) PyYAML-5.4.1-1.module+el8.9.0+19644+d68f775d.src::python39:3.9, mod_wsgi-4.7.1-7.module+el8.9.0+19644+d68f775d.src::python39:3.9, numpy-1.19.4-3.module+el8.9.0+19644+d68f775d.src::python39:3.9 +47
    • Red Hat Enterprise Linux CRB (v. 8) Cython-0.29.21-5.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9, pybind11-2.7.1-1.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9, pytest-6.0.2-2.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9 +33
  • RHSA-2024:3391 Released 2024-05-28 · Red Hat rating Important
    python3 security update
    • Red Hat Enterprise Linux AppStream EUS (v.8.8) platform-python-3.6.8-51.el8_8.6, platform-python-debug-3.6.8-51.el8_8.6, platform-python-devel-3.6.8-51.el8_8.6 +3
    • Red Hat Enterprise Linux BaseOS EUS (v.8.8) platform-python-3.6.8-51.el8_8.6, python3-3.6.8-51.el8_8.6, python3-libs-3.6.8-51.el8_8.6 +1
  • RHSA-2024:3347 Released 2024-05-23 · Red Hat rating Important
    python3 security update
    • Red Hat Enterprise Linux AppStream (v. 8) platform-python-3.6.8-62.el8_10, platform-python-debug-3.6.8-62.el8_10, platform-python-devel-3.6.8-62.el8_10 +3
    • Red Hat Enterprise Linux BaseOS (v. 8) platform-python-3.6.8-62.el8_10, python3-3.6.8-62.el8_10, python3-libs-3.6.8-62.el8_10 +1

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
9Base-Service-Interconnect-1.4Fixed RHSA-2024:4865
Red Hat CodeReady Linux Builder EUS (v.8.8)Fixed RHSA-2024:4370
Red Hat CodeReady Linux Builder EUS (v.9.2)Fixed RHSA-2024:4896, RHSA-2024:5535
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2024:3347, RHSA-2024:3466, RHSA-2024:4058
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2024:4077, RHSA-2024:4078
Red Hat Enterprise Linux AppStream AUS (v. 8.2)Fixed RHSA-2024:4166
Red Hat Enterprise Linux AppStream AUS (v.8.4)Fixed RHSA-2024:4456
Red Hat Enterprise Linux AppStream AUS (v.8.6)Fixed RHSA-2024:4406
Red Hat Enterprise Linux AppStream E4S (v.8.4)Fixed RHSA-2024:4456
Red Hat Enterprise Linux AppStream E4S (v.8.6)Fixed RHSA-2024:4406
Red Hat Enterprise Linux AppStream E4S (v.9.0)Fixed RHSA-2024:5689
Red Hat Enterprise Linux AppStream EUS (v.8.8)Fixed RHSA-2024:3391, RHSA-2024:4370
Red Hat Enterprise Linux AppStream EUS (v.9.2)Fixed RHSA-2024:4896, RHSA-2024:5535
Red Hat Enterprise Linux AppStream TUS (v.8.4)Fixed RHSA-2024:4456
Red Hat Enterprise Linux AppStream TUS (v.8.6)Fixed RHSA-2024:4406
Red Hat Enterprise Linux BaseOS (v. 8)Fixed RHSA-2024:3347
Red Hat Enterprise Linux BaseOS (v. 9)Fixed RHSA-2024:4078
Red Hat Enterprise Linux BaseOS AUS (v. 8.2)Fixed RHSA-2024:4166
Red Hat Enterprise Linux BaseOS AUS (v.8.4)Fixed RHSA-2024:4456
Red Hat Enterprise Linux BaseOS AUS (v.8.6)Fixed RHSA-2024:4406
Red Hat Enterprise Linux BaseOS E4S (v.8.4)Fixed RHSA-2024:4456
Red Hat Enterprise Linux BaseOS E4S (v.8.6)Fixed RHSA-2024:4406
Red Hat Enterprise Linux BaseOS E4S (v.9.0)Fixed RHSA-2024:5689
Red Hat Enterprise Linux BaseOS EUS (v.8.8)Fixed RHSA-2024:3391
Red Hat Enterprise Linux BaseOS EUS (v.9.2)Fixed RHSA-2024:5535
Red Hat Enterprise Linux BaseOS TUS (v.8.4)Fixed RHSA-2024:4456
Red Hat Enterprise Linux BaseOS TUS (v.8.6)Fixed RHSA-2024:4406
Red Hat Enterprise Linux CRB (v. 8)Fixed RHSA-2024:3466, RHSA-2024:4058
Red Hat Enterprise Linux CRB (v. 9)Fixed RHSA-2024:4077, RHSA-2024:4078
Red Hat OpenShift Container Platform 4.12Fixed RHSA-2025:0832
Red Hat OpenShift Container Platform 4.13Fixed RHSA-2025:1116
Red Hat OpenShift Container Platform 4.14Fixed RHSA-2025:0364
Red Hat OpenShift Container Platform 4.15Fixed RHSA-2025:0646
Red Hat OpenShift Container Platform 4.16Fixed RHSA-2025:0650
Red Hat OpenShift Container Platform 4.17Fixed RHSA-2025:1120
Red Hat OpenShift Container Platform 4.18Fixed RHSA-2025:2705
Red Hat Service Interconnect 1Fixed RHSA-2024:4871
Not affected: 16 products
  • 9Base-Service-Interconnect-1.4
  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux AppStream E4S (v.8.6)
  • Red Hat Enterprise Linux BaseOS E4S (v.8.6)
  • Red Hat OpenShift Container Platform 4.12
  • Red Hat OpenShift Container Platform 4.13
  • Red Hat OpenShift Container Platform 4.14
  • Red Hat OpenShift Container Platform 4.15
  • Red Hat OpenShift Container Platform 4.16
  • Red Hat OpenShift Container Platform 4.17
  • Red Hat OpenShift Container Platform 4.18
  • Red Hat Service Interconnect 1

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-6597
  2. 2026-10-03 Alias added: GHSA-797f-63wg-8chv
  3. 2026-10-23 Affected versions changed · Red Hat

References

  • TI-2024-07037 Quadratic complexity parsing cookies with backslashes CVSS 3.1HIGH 7.5
  • TI-2024-11791 Bypass extraction filter to modify file metadata outside extraction directory CVSS 3.1MEDIUM 5.3
  • TI-2024-00411 Quoted zip-bomb protection for zipfile CVSS 3.1MEDIUM 6.2
  • TI-2026-13296 `HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching CVSS 4.0MEDIUM 6.0
  • TI-2024-06422 Email header injection due to unquoted newlines CVSS 3.1MEDIUM 5.5
  • TI-2026-04606 Possible to hijack modules in current working directory CVSS 4.0MEDIUM 5.6
See all 83 →

Sources