#1150804 pypy3: CVE-2026-12345

Package:
src:pypy3
Source:
src:pypy3
Submitter:
Moritz Mühlenhoff
Date:
2026-10-13 13:37:13 UTC
Severity:
normal
Tags:
#1150804#5
Date:
2026-10-13 11:48:23 UTC
From:
To:
Hi,

The following vulnerability was published for pypy3.

CVE-2026-12345[0]:
| 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.

Fix in cpython:
https://github.com/python/cpython/issues/157579
https://github.com/python/cpython/pull/157580


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-12345
https://www.cve.org/CVERecord?id=CVE-2026-12345

Please adjust the affected versions in the BTS as needed.