NetSight
mittel5.9

CVE-2026-12345

The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition.

Auswirkung

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.

Ein Angreifer kann die Lücke mit lokalem Zugriff auf das System ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.

Betroffene Produkte · Python Software Foundation

ProduktBetroffene Versionen
CPython
vor 3.12.15
ab 3.13.0 vor 3.13.18
ab 3.14.0 vor 3.14.9
ab 3.15.0a1 vor 3.15.0rc3

Schwachstellenklasse

Referenzen