{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-6597","published":"2024-03-19T16:15:08.743000Z","last_modified":"2026-06-17T06:51:03.620000Z","status":"Deferred","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","source":"cna@python.org","primary":false},"auth":true,"cwes":[],"cpes":[],"cpes_truncated":false,"vendors":["python-software-foundation"],"products":["python-software-foundation/cpython"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.00386,"percentile":0.24419,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2023-6597/","html_en":"/en/cve/CVE-2023-6597/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-6597","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-6597"},"untrusted":{"vendor_name":"Python Software Foundation","product_name":"CPython","desc_en":"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.\n\nThe 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":[{"untrusted_vendor":"Python Software Foundation","untrusted_product":"CPython","versions":[]},{"untrusted_vendor":"python_software_foundation","untrusted_product":"cpython","versions":[]}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2024/03/20/5","tags":[]},{"url":"https://github.com/python/cpython/commit/02a9259c717738dfe6b463c44d7e17f2b6d2cb3a","tags":[]},{"url":"https://github.com/python/cpython/commit/5585334d772b253a01a6730e8202ffb1607c3d25","tags":[]},{"url":"https://github.com/python/cpython/commit/6ceb8aeda504b079fef7a57b8d81472f15cdd9a5","tags":[]},{"url":"https://github.com/python/cpython/commit/81c16cd94ec38d61aa478b9a452436dc3b1b524d","tags":[]},{"url":"https://github.com/python/cpython/commit/8eaeefe49d179ca4908d052745e3bb8b6f238f82","tags":[]},{"url":"https://github.com/python/cpython/commit/d54e22a669ae6e987199bb5d2c69bb5a46b0083b","tags":[]},{"url":"https://github.com/python/cpython/issues/91133","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00025.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T3IGRX54M7RNCQOXVQO5KQKTGWCOABIM/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U5VHWS52HGD743C47UMCSAK2A773M2YE/","tags":[]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/Q5C6ATFC67K53XFV4KE45325S7NS62LD/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00005.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html","tags":[]}]}}