Intel

AIKIDO-2026-473215

python is vulnerable to Improper Link Resolution Before File Access

CVE-2026-12345Published 2 days ago
November 7, 2026

59

CVE Score

Medium

Improper Link Resolution Before File Access

Are you affected? Scan for Free

TL;DR

When tempfile.TemporaryDirectory encounters permission errors during cleanup, it can re-resolve paths after an attacker replaces a directory with a symlink, allowing cleanup to delete outside files or reset their permissions and file flags. Patched releases use directory file descriptors for safer cleanup where supported; platforms without symlink-safe shutil.rmtree may remain exposed to deletion, and file flags may still be reset outside the tree.

How do I fix this?

Upgrade the Python package to a patched version.

Who does this affect?

You are affected if you use a vulnerable Python version and an attacker can modify the temporary directory tree while TemporaryDirectory is cleaning it up.

Package

python

Versions

0.0.1 - 3.12.14

Fixed in 3.12.15

3.13.0 - 3.13.17

Fixed in 3.13.18

3.14.0 - 3.14.8

Fixed in 3.14.9

3.15.0a1 - 3.15.0rc2

Fixed in 3.15.0rc3

Background info

python is vulnerable to Improper Link Resolution Before File Access in versions 0.0.1 - 3.12.14, 3.13.0 - 3.13.17, 3.14.0 - 3.14.8 and 3.15.0a1 - 3.15.0rc2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea