synced 1 MIN AGO
01 Record

CVE-2026-12345

Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory

MediumPUBLISHEDCNA: PSF
CNA base score5.9 CVSS v4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

02 Description

Race condition in tempfile.TemporaryDirectory cleanup allows deleting files outside the temporary directory

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 ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
0.34% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 27.6% of scored records. A rank, not a probability.
NVD base score
5.9 (CVSS v4.0), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD analysis status
Awaiting Analysis. NVD last modified this record on 2026-10-26.
Red Hat severity
Moderate. 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
2026-09-29 17:46Z29 DAYS AGO
Last updated
2026-10-26 00:36Z3 DAYS AGO
Reserved
2026-06-15
Assigning CNA
PSF
Record state
PUBLISHED
Severity
Medium (CVSS 5.9)
CNA CVSS vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Weaknesses
  • CWE-59Improper Link Resolution Before File Access ('Link Following')Base
Data version
5.2
Document digest
89ff5aafee78c883dabb430e3499df0958270512b9d915e529ed8a4612ebbf96

05 Affected products

VendorProductVersionsPlatforms
Python Software FoundationCPython0 to < 3.12.15, 3.13.0 to < 3.13.18, 3.14.0 to < 3.14.9, 3.15.0a1 to < 3.15.0rc3—

06 References

07 Fixed in

AlmaLinux 8

  • platform-python
    Fixed in 3.6.8-79.el8_10.alma.1
  • platform-python-debug
    Fixed in 3.6.8-79.el8_10.alma.1
  • platform-python-devel
    Fixed in 3.6.8-79.el8_10.alma.1
  • python3-idle
    Fixed in 3.6.8-79.el8_10.alma.1
  • python3-libs
    Fixed in 3.6.8-79.el8_10.alma.1
  • python3-test
    Fixed in 3.6.8-79.el8_10.alma.1
  • python3-tkinter
    Fixed in 3.6.8-79.el8_10.alma.1

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.25-7.el9_8.6
  • python3
    Fixed in 3.9.25-7.el9_8.6
  • python3-debug
    Fixed in 3.9.25-7.el9_8.6
  • python3-devel
    Fixed in 3.9.25-7.el9_8.6
  • python3-idle
    Fixed in 3.9.25-7.el9_8.6
  • python3-libs
    Fixed in 3.9.25-7.el9_8.6
  • python3-test
    Fixed in 3.9.25-7.el9_8.6
  • python3-tkinter
    Fixed in 3.9.25-7.el9_8.6

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-79.el8_10.alma.1
  • platform-python-debug
    Fixed in 3.6.8-79.el8_10.alma.1
  • platform-python-devel
    Fixed in 3.6.8-79.el8_10.alma.1
  • python3-idle
    Fixed in 3.6.8-79.el8_10.alma.1
  • python3-libs
    Fixed in 3.6.8-79.el8_10.alma.1
  • python3-test
    Fixed in 3.6.8-79.el8_10.alma.1
  • python3-tkinter
    Fixed in 3.6.8-79.el8_10.alma.1

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.25-7.el9_8.6
  • python3
    Fixed in 3.9.25-7.el9_8.6
  • python3-debug
    Fixed in 3.9.25-7.el9_8.6
  • python3-devel
    Fixed in 3.9.25-7.el9_8.6
  • python3-idle
    Fixed in 3.9.25-7.el9_8.6
  • python3-libs
    Fixed in 3.9.25-7.el9_8.6
  • python3-test
    Fixed in 3.9.25-7.el9_8.6
  • python3-tkinter
    Fixed in 3.9.25-7.el9_8.6

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
    No fix yet
  • python3.11
    No fix yet

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • pypy3
    No fix yet
  • python3.13
    No fix yet

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • pypy3
    No fix yet
  • python3.13
    No fix yet
  • python3.14
    No fix yet
  • python3.15
    Fixed in 3.15.0~rc3-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • python3.10
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 24.04 LTS

  • python3.12
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 26.04 LTS

  • python3.14
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 26.10

  • python3.14
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 14.04 LTS

  • python2.7
    No fix yet
  • python3.4
    No fix yet
  • python3.5
    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

  • python2.7
    No fix yet
  • python3.5
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 18.04 LTS

  • python2.7
    No fix yet
  • python3.6
    No fix yet
  • python3.7
    No fix yet
  • python3.8
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • python2.7
    No fix yet
  • python3.8
    No fix yet
  • python3.9
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 22.04 LTS

  • python2.7
    No fix yet
  • python3.11
    No fix yet

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.