Vulnerabilityin Python CPython.
No public exploit found; not on exploited lists.
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.
- Upgrade CPython to 3.8.19, 3.9.19, 3.10.14, 3.11.8, 3.12.1 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 7 Dec 2023CVE ID reserved by PSF.
- 19 Mar 2024Published in the CVE List.
- 3 Nov 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other CPython vulnerabilities
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com issue-tracking
- mail.python.org vendor-advisory
- lists.debian.org
- www.openwall.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.debian.org
- lists.debian.org
Patchminder. CVE-2023-6597: Vulnerability in Python CPython. https://patchminder.com/cve/cve-2023-6597/ (accessed 5 December 2026).