5.9

CVE-2026-12345: python software foundation cpython Link Following

CVSS: 5.9v4.0MediumAwaiting analysis
AliasesRHSA-2026:74870RHSA-2026:74922RHSA-2026:75119
Published 29-09-2026Last modified 10-10-2026

Vulnerability summary

CVE-2026-12345 is a medium (CVSS 5.9) Link Following vulnerability in python software foundation cpython. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.1% of scored vulnerabilities.

Overall risk
24/100
0100
Low · default modelHow is this calculated?
CVSS score
5.9/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.18%
0%100%
Low · Change unavailable
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 1

Timeline

  1. 29-09-2026
    PublishedVulnerability first disclosed.
  2. 10-10-2026
    Last modifiedVulnerability information updated.

Description

The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition. An attacker who can modify the tree during cleanup can replace a directory with a symbolic link, causing files outside of the temporary directory to be deleted or have their permissions and file flags reset, with the privileges of the process performing the cleanup. Note that platforms where shutil.rmtree.avoids_symlink_attacks is false, remain affected, and file flags may still be reset outside of the tree on all platforms.

CVSS metrics

7 scores · 7 sources · 2 versions

EPSS trend

Probability

0.18%

Chance of exploitation in the next 30 days

Percentile

7%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

30-09-202620-10-2026
EPSS score
0.18%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Redhat32 products
  • python-unversioned-command< 0:3.14.8-1.hum1
  • python3< 0:3.14.8-1.hum1
  • python3-debug< 0:3.14.8-1.hum1
  • python3-devel< 0:3.14.8-1.hum1
  • python3-idle< 0:3.14.8-1.hum1
Ubuntu11 products
  • python2.7All versions (No fix recorded)
  • python3.10All versions (No fix recorded)
  • python3.11All versions (No fix recorded)
  • python3.12All versions (No fix recorded)
  • python3.14All versions (No fix recorded)
Chainguard6 products
  • python-3.10All versions (No fix recorded)
  • python-3.11All versions (No fix recorded)
  • python-3.12All versions (No fix recorded)
  • python-3.13All versions (No fix recorded)
  • python-3.14< 3.14.8_git20261014-r0 | All versions (No fix recorded)
Wolfi6 products
  • python-3.10All versions (No fix recorded)
  • python-3.11All versions (No fix recorded)
  • python-3.12All versions (No fix recorded)
  • python-3.13All versions (No fix recorded)
  • python-3.14< 3.14.8_git20261014-r0 | All versions (No fix recorded)
Debian5 products
  • pypy3All versions (No fix recorded)
  • python3.11All versions (No fix recorded)
  • python3.13All versions (No fix recorded)
  • python3.14All versions (No fix recorded)
  • python3.15All versions (No fix recorded) | < 3.15.0~rc3-1
Python software foundation1 product
  • cpython< 3.12.15 | ≥ 3.15.0a1, < 3.15.0rc3

6 vendors · 61 products

References

24 links
Show all 24 references