First published: Tue Mar 19 2024(Updated: )
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.
Credit: cna@python.org cna@python.org
Affected Software | Affected Version | How to fix |
---|---|---|
debian/pypy3 | <=7.3.5+dfsg-2+deb11u2 | 7.3.5+dfsg-2+deb11u4 7.3.11+dfsg-2+deb12u3 7.3.19+dfsg-2 |
debian/python2.7 | 2.7.18-8+deb11u1 | |
debian/python3.11 | 3.11.2-6+deb12u5 3.11.2-6+deb12u3 | |
debian/python3.12 | 3.12.10-1 | |
debian/python3.9 | <=3.9.2-1 | 3.9.2-1+deb11u3 |
allenpthuang> https://bugs.python.org/issue26660
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2023-6597 has a medium severity rating due to its impact on users who can create symbolic links.
To fix CVE-2023-6597, upgrade to the latest version of the affected Python packages, such as python3.12 version 3.12.8-5 or higher.
CVE-2023-6597 affects Python versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior.
The main issue with CVE-2023-6597 is that the tempfile.TemporaryDirectory class dereferences symlinks during cleanup of permissions-related errors.
In CVE-2023-6597, users who can create symbolic links are impacted due to potential security risks during temporary directory cleanup.