Skip to main content
← All vulnerabilities
CVE-2023-6597

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 pri

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.8.19, 3.9.19, 3.10.14, 3.11.8, 3.12.1, and 1 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Python Software Foundation CPython

    fixed in 3.8.19; From 3.9.0 · fixed in 3.9.19; From 3.10.0 · fixed in 3.10.14; From 3.11.0 · fixed in 3.11.8; From 3.12.0 · fixed in 3.12.1; From 3.13.0a1 · fixed in 3.13.0a3

References 12

GitHub · python/cpython

mail.python.org

lists.debian.org

openwall.com

lists.fedoraproject.org