python is vulnerable to Improper Link Resolution Before File Access
59
CVE Score
Medium
Improper Link Resolution Before File Access
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.
Upgrade the Python package to a patched version.
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.
0.0.1 - 3.12.14
Fixed in 3.12.153.13.0 - 3.13.17
Fixed in 3.13.183.14.0 - 3.14.8
Fixed in 3.14.93.15.0a1 - 3.15.0rc2
Fixed in 3.15.0rc3python 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.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.