tempfile.mkdtemp() may be readable and writeable by all users on Windows
Python Software Foundation CPython
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Python Software Foundation CPython Windows |
| No fix yet |
Original description
On Windows a directory returned by tempfile.mkdtemp() would not always have permissions set to restrict reading and writing to the temporary directory by other users, instead usually inheriting the correct permissions from the default location. Alternate configurations or users without a profile directory may not have the intended permissions.