CVE-2023-6597
Published: 19 March 2024
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.
Notes
| Author | Note |
|---|---|
| allenpthuang | this was introduced in https://github.com/python/cpython/pull/10320/commits/dcd67c568a477ddf7524e373ac266d2f087e5665 |
Mitigation
allenpthuang> https://bugs.python.org/issue26660
Priority
Status
| Package | Release | Status |
|---|---|---|
|
python2.7 Launchpad, Ubuntu, Debian |
bionic |
Not vulnerable
(code not present)
|
| focal |
Not vulnerable
(code not present)
|
|
| jammy |
Not vulnerable
(code not present)
|
|
| mantic |
Does not exist
|
|
| noble |
Does not exist
|
|
| trusty |
Not vulnerable
(code not present)
|
|
| upstream |
Needs triage
|
|
| xenial |
Not vulnerable
(code not present)
|
|
|
python3.10 Launchpad, Ubuntu, Debian |
focal |
Does not exist
|
| jammy |
Released
(3.10.12-1~22.04.4)
|
|
| mantic |
Does not exist
|
|
| noble |
Does not exist
|
|
| upstream |
Released
(3.10.14)
|
|
|
python3.11 Launchpad, Ubuntu, Debian |
focal |
Does not exist
|
| jammy |
Needs triage
|
|
| mantic |
Released
(3.11.6-3ubuntu0.1)
|
|
| noble |
Does not exist
|
|
| upstream |
Needs triage
|
|
|
python3.12 Launchpad, Ubuntu, Debian |
focal |
Does not exist
|
| jammy |
Does not exist
|
|
| mantic |
Released
(3.12.0-1ubuntu0.1)
|
|
| noble |
Not vulnerable
(3.12.3-1)
|
|
| upstream |
Needs triage
|
|
|
Patches: upstream: https://github.com/python/cpython/commit/6ceb8aeda504b079fef7a57b8d81472f15cdd9a5 |
||
|
python3.4 Launchpad, Ubuntu, Debian |
focal |
Does not exist
|
| jammy |
Does not exist
|
|
| mantic |
Does not exist
|
|
| noble |
Does not exist
|
|
| trusty |
Needs triage
|
|
| upstream |
Needs triage
|
|
|
python3.5 Launchpad, Ubuntu, Debian |
focal |
Does not exist
|
| jammy |
Does not exist
|
|
| mantic |
Does not exist
|
|
| noble |
Does not exist
|
|
| trusty |
Not vulnerable
(code not present)
|
|
| upstream |
Needs triage
|
|
| xenial |
Released
(3.5.2-2ubuntu0~16.04.13+esm13)
Available with Ubuntu Pro or Ubuntu Pro (Infra-only) |
|
|
python3.6 Launchpad, Ubuntu, Debian |
bionic |
Not vulnerable
(code not present)
|
| focal |
Does not exist
|
|
| jammy |
Does not exist
|
|
| mantic |
Does not exist
|
|
| noble |
Does not exist
|
|
| upstream |
Needs triage
|
|
|
python3.7 Launchpad, Ubuntu, Debian |
bionic |
Released
(3.7.5-2ubuntu1~18.04.2+esm3)
Available with Ubuntu Pro |
| focal |
Does not exist
|
|
| jammy |
Does not exist
|
|
| mantic |
Does not exist
|
|
| noble |
Does not exist
|
|
| upstream |
Needs triage
|
|
|
python3.8 Launchpad, Ubuntu, Debian |
bionic |
Released
(3.8.0-3ubuntu1~18.04.2+esm2)
Available with Ubuntu Pro |
| focal |
Released
(3.8.10-0ubuntu1~20.04.10)
|
|
| jammy |
Does not exist
|
|
| mantic |
Does not exist
|
|
| noble |
Does not exist
|
|
| upstream |
Released
(3.8.19)
|
|
|
python3.9 Launchpad, Ubuntu, Debian |
focal |
Released
(3.9.5-3ubuntu0~20.04.1+esm2)
Available with Ubuntu Pro |
| jammy |
Does not exist
|
|
| mantic |
Does not exist
|
|
| noble |
Does not exist
|
|
| upstream |
Released
(3.9.19)
|
|
References
- https://seclists.org/oss-sec/2024/q1/240
- https://discuss.python.org/t/python-3-10-14-3-9-19-and-3-8-19-is-now-available/48993
- https://www.cve.org/CVERecord?id=CVE-2023-6597
- https://ubuntu.com/security/notices/USN-6891-1
- https://github.com/advisories/GHSA-797f-63wg-8chv
- NVD
- Launchpad
- Debian