Ubuntu CVE Tracker
UBUNTU-CVE-2023-6597
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python3.4 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | python3.5 | All versions before 3.5.2-2ubuntu0~16.04.13+esm13 (fixed in 3.5.2-2ubuntu0~16.04.13+esm13) |
| Ubuntu:Pro:18.04:LTS | python3.7 | All versions before 3.7.5-2ubuntu1~18.04.2+esm3 (fixed in 3.7.5-2ubuntu1~18.04.2+esm3) |
| Ubuntu:Pro:18.04:LTS | python3.8 | All versions before 3.8.0-3ubuntu1~18.04.2+esm2 (fixed in 3.8.0-3ubuntu1~18.04.2+esm2) |
| Ubuntu:20.04:LTS | python3.8 | All versions before 3.8.10-0ubuntu1~20.04.10 (fixed in 3.8.10-0ubuntu1~20.04.10) |
| Ubuntu:Pro:20.04:LTS | python3.9 | All versions before 3.9.5-3ubuntu0~20.04.1+esm2 (fixed in 3.9.5-3ubuntu0~20.04.1+esm2) |
| Ubuntu:22.04:LTS | python3.10 | All versions before 3.10.12-1~22.04.4 (fixed in 3.10.12-1~22.04.4) |
| Ubuntu:Pro:22.04:LTS | python3.11 | All versions before 3.11.0~rc1-1~22.04.1~esm1 (fixed in 3.11.0~rc1-1~22.04.1~esm1) |
References
- https://ubuntu.com/security/CVE-2023-6597
- 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