CVE-2023-6597
CVE-2023-6597
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.8 · High · EPSS 0.3% · Fix available
- Published
- Updated
Affected products and versions
python
- Versions
- ≥ 0, < 3.8.19: Affected (python)
- ≥ 3.9.0, < 3.9.19: Affected (python)
- ≥ 3.10.0, < 3.10.14: Affected (python)
- ≥ 3.11.0, < 3.11.8: Affected (python)
- ≥ 3.12.0, < 3.12.1: Affected (python)
- ≥ 3.13.0a1, < 3.13.0a3: Affected (python)
Update to 3.10.14; Update to 3.11.8; Update to 3.12.1; Update to 3.13.0a3; Update to 3.8.19; Update to 3.9.19
pypy3 Debian:12
- Versions
- 7.3.11+dfsg-2
- 7.3.11+dfsg-2+deb12u1
- Affected ranges
- ECOSYSTEM: < 7.3.11+dfsg-2+deb12u2
Update to 7.3.11+dfsg-2+deb12u2
pypy3 Debian:13
- Affected ranges
- ECOSYSTEM: < 7.3.13+dfsg-1
Update to 7.3.13+dfsg-1
pypy3 Debian:14
- Affected ranges
- ECOSYSTEM: < 7.3.13+dfsg-1
Update to 7.3.13+dfsg-1
python3.11 Debian:12
- Versions
- 3.11.2-6
- 3.11.2-6+deb12u1
- Affected ranges
- ECOSYSTEM: < 3.11.2-6+deb12u2
Update to 3.11.2-6+deb12u2
python3.4 Ubuntu:Pro:14.04:LTS
- Versions
- 3.4~b1-0ubuntu3
- 3.4~b1-4ubuntu4
- 3.4~b1-4ubuntu6
- 3.4~b1-5ubuntu2
- 3.4~b2-1
- 3.4~b3-1ubuntu1
- 3.4~rc1-1build1
- 3.4~rc2-1
- 3.4~rc3-0ubuntu1
- 3.4.0-1
- 3.4.0-2ubuntu1
- 3.4.0-2ubuntu1.1
- 3.4.3-1ubuntu1~14.04.1
- 3.4.3-1ubuntu1~14.04.3
- 3.4.3-1ubuntu1~14.04.4
- 3.4.3-1ubuntu1~14.04.5
- 3.4.3-1ubuntu1~14.04.6
- 3.4.3-1ubuntu1~14.04.7
- 3.4.3-1ubuntu1~14.04.7+esm2
- 3.4.3-1ubuntu1~14.04.7+esm4
- 3.4.3-1ubuntu1~14.04.7+esm6
- 3.4.3-1ubuntu1~14.04.7+esm7
- 3.4.3-1ubuntu1~14.04.7+esm8
- 3.4.3-1ubuntu1~14.04.7+esm10
- 3.4.3-1ubuntu1~14.04.7+esm11
- 3.4.3-1ubuntu1~14.04.7+esm12
- 3.4.3-1ubuntu1~14.04.7+esm13
- 3.4.3-1ubuntu1~14.04.7+esm14
- 3.4.3-1ubuntu1~14.04.7+esm15
- 3.4.3-1ubuntu1~14.04.7+esm16
- 3.4.3-1ubuntu1~14.04.7+esm17
- 3.4.3-1ubuntu1~14.04.7+esm19
- 3.4.3-1ubuntu1~14.04.7+esm20
- 3.4.3-1ubuntu1~14.04.7+esm21
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python3.5 Ubuntu:Pro:16.04:LTS
- Versions
- 3.5.0-3
- 3.5.0-3ubuntu1
- 3.5.1~rc1-2ubuntu1
- 3.5.1-1
- 3.5.1-2
- 3.5.1-3
- 3.5.1-5
- 3.5.1-6ubuntu1
- 3.5.1-6ubuntu2
- 3.5.1-9ubuntu1
- 3.5.1-10
- 3.5.2-2~16.01
- 3.5.2-2~16.04
- 3.5.2-2ubuntu0~16.04.1
- 3.5.2-2ubuntu0~16.04.2
- 3.5.2-2ubuntu0~16.04.3
- 3.5.2-2ubuntu0~16.04.4
- 3.5.2-2ubuntu0~16.04.5
- 3.5.2-2ubuntu0~16.04.8
- 3.5.2-2ubuntu0~16.04.9
- 3.5.2-2ubuntu0~16.04.10
- 3.5.2-2ubuntu0~16.04.11
- 3.5.2-2ubuntu0~16.04.12
- 3.5.2-2ubuntu0~16.04.13
- 3.5.2-2ubuntu0~16.04.13+esm1
- 3.5.2-2ubuntu0~16.04.13+esm2
- 3.5.2-2ubuntu0~16.04.13+esm3
- 3.5.2-2ubuntu0~16.04.13+esm5
- 3.5.2-2ubuntu0~16.04.13+esm6
- 3.5.2-2ubuntu0~16.04.13+esm7
- 3.5.2-2ubuntu0~16.04.13+esm8
- 3.5.2-2ubuntu0~16.04.13+esm9
- 3.5.2-2ubuntu0~16.04.13+esm10
- 3.5.2-2ubuntu0~16.04.13+esm11
- 3.5.2-2ubuntu0~16.04.13+esm12
- Affected ranges
- ECOSYSTEM: < 3.5.2-2ubuntu0~16.04.13+esm13
Update to 3.5.2-2ubuntu0~16.04.13+esm13
python3.7 Ubuntu:Pro:18.04:LTS
- Versions
- 3.7.0~a2-1
- 3.7.0~a3-1
- 3.7.0~a3-2
- 3.7.0~a3-3
- 3.7.0~a4-1
- 3.7.0~b1-1
- 3.7.0~b1-1build1
- 3.7.0~b2-1
- 3.7.0~b3-1
- 3.7.0-1~18.04
- 3.7.1-1~18.04
- 3.7.3-2~18.04.1
- 3.7.5-2~18.04
- 3.7.5-2~18.04.4
- 3.7.5-2ubuntu1~18.04.2
- 3.7.5-2ubuntu1~18.04.2+esm1
- 3.7.5-2ubuntu1~18.04.2+esm2
- Affected ranges
- ECOSYSTEM: < 3.7.5-2ubuntu1~18.04.2+esm3
Update to 3.7.5-2ubuntu1~18.04.2+esm3
python3.8 Ubuntu:Pro:18.04:LTS
- Versions
- 3.8.0-3~18.04
- 3.8.0-3~18.04.1
- 3.8.0-3ubuntu1~18.04.2
- 3.8.0-3ubuntu1~18.04.2+esm1
- Affected ranges
- ECOSYSTEM: < 3.8.0-3ubuntu1~18.04.2+esm2
Update to 3.8.0-3ubuntu1~18.04.2+esm2
python3.8 Ubuntu:20.04:LTS
- Versions
- 3.8.0-1
- 3.8.0-2
- 3.8.0-3
- 3.8.0-4
- 3.8.0-5
- 3.8.1-2ubuntu3
- 3.8.2~rc1-1ubuntu1
- 3.8.2-1
- 3.8.2-1ubuntu1
- 3.8.2-1ubuntu1.1
- 3.8.2-1ubuntu1.2
- 3.8.5-1~20.04
- 3.8.5-1~20.04.2
- 3.8.5-1~20.04.3
- 3.8.10-0ubuntu1~20.04
- 3.8.10-0ubuntu1~20.04.1
- 3.8.10-0ubuntu1~20.04.2
- 3.8.10-0ubuntu1~20.04.4
- 3.8.10-0ubuntu1~20.04.5
- 3.8.10-0ubuntu1~20.04.6
- 3.8.10-0ubuntu1~20.04.7
- 3.8.10-0ubuntu1~20.04.8
- 3.8.10-0ubuntu1~20.04.9
- Affected ranges
- ECOSYSTEM: < 3.8.10-0ubuntu1~20.04.10
Update to 3.8.10-0ubuntu1~20.04.10
python3.9 Ubuntu:Pro:20.04:LTS
- Versions
- 3.9.0~rc1-1~20.04
- 3.9.0-5~20.04
- 3.9.5-3~20.04.1
- 3.9.5-3ubuntu0~20.04.1
- 3.9.5-3ubuntu0~20.04.1+esm1
- Affected ranges
- ECOSYSTEM: < 3.9.5-3ubuntu0~20.04.1+esm2
Update to 3.9.5-3ubuntu0~20.04.1+esm2
python3.10 Ubuntu:22.04:LTS
- Versions
- 3.10.0-2
- 3.10.0-3
- 3.10.0-4
- 3.10.0-5
- 3.10.0-5build1
- 3.10.1-1
- 3.10.1-2
- 3.10.2-1
- 3.10.2-5
- 3.10.2-7
- 3.10.3-1
- 3.10.4-3
- 3.10.4-3ubuntu0.1
- 3.10.6-1~22.04
- 3.10.6-1~22.04.1
- 3.10.6-1~22.04.2
- 3.10.6-1~22.04.2ubuntu1
- 3.10.6-1~22.04.2ubuntu1.1
- 3.10.12-1~22.04.2
- 3.10.12-1~22.04.3
- Affected ranges
- ECOSYSTEM: < 3.10.12-1~22.04.4
Update to 3.10.12-1~22.04.4
python3.11 Ubuntu:Pro:22.04:LTS
- Versions
- 3.11.0~rc1-1~22.04
- Affected ranges
- ECOSYSTEM: < 3.11.0~rc1-1~22.04.1~esm1
Update to 3.11.0~rc1-1~22.04.1~esm1
Original sources
- https://github.com/python/cpython/commit/81c16cd94ec38d61aa478b9a452436dc3b1b524d
- https://github.com/python/cpython/commit/6ceb8aeda504b079fef7a57b8d81472f15cdd9a5
- https://github.com/python/cpython/commit/5585334d772b253a01a6730e8202ffb1607c3d25
- https://github.com/python/cpython/commit/8eaeefe49d179ca4908d052745e3bb8b6f238f82
- https://github.com/python/cpython/commit/d54e22a669ae6e987199bb5d2c69bb5a46b0083b
- https://github.com/python/cpython/commit/02a9259c717738dfe6b463c44d7e17f2b6d2cb3a
- https://github.com/python/cpython/issues/91133
- https://mail.python.org/archives/list/[email protected]/thread/Q5C6ATFC67K53XFV4KE45325S7NS62LD/
- https://lists.debian.org/debian-lts-announce/2024/03/msg00025.html
- http://www.openwall.com/lists/oss-security/2024/03/20/5
- https://lists.fedoraproject.org/archives/list/[email protected]/message/T3IGRX54M7RNCQOXVQO5KQKTGWCOABIM/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/U5VHWS52HGD743C47UMCSAK2A773M2YE/
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://lists.debian.org/debian-lts-announce/2024/11/msg00005.html
- https://nvd.nist.gov/vuln/detail/CVE-2023-6597