published 19 Mar 2024 · updated 3 Nov 2025
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.
7.8HighCVSS 7.8EPSS 0%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.8.19, 3.10.14, 3.11.8 and 3 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Python Software Foundation | <3.8.19, >=3.10.0 <3.10.14, >=3.11.0 <3.11.8, >=3.12.0 <3.12.1, >=3.13.0a1 <3.13.0a3, >=3.9.0 <3.9.19 | 3.8.19, 3.10.14, 3.11.8, 3.12.1, 3.13.0a3, 3.9.19 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket