File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Misc/NEWS.d/next/Security Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 847847 :c:func: `!posix_spawn_file_actions_addclosefrom_np `.
848848 (Contributed by Jakub Kulik in :gh: `113117 `.)
849849
850+ * :func: `os.mkdir ` and :func: `os.makedirs ` on Windows now support passing a
851+ *mode * value of ``0o700 `` to apply access control to the new directory. This
852+ implicitly affects :func: `tempfile.mkdtemp ` and is a mitigation for
853+ :cve: `2024-4030 `. Other values for *mode * continue to be ignored.
854+ (Contributed by Steve Dower in :gh: `118486 `.)
855+
850856os.path
851857-------
852858
989995 This function is not guaranteed to exist in all implementations of Python.
990996 (Contributed by Serhiy Storchaka in :gh: `78573 `.)
991997
998+ tempfile
999+ --------
1000+
1001+ * On Windows, the default mode ``0o700 `` used by :func: `tempfile.mkdtemp ` now
1002+ limits access to the new directory due to changes to :func: `os.mkdir `. This
1003+ is a mitigation for :cve: `2024-4030 `.
1004+ (Contributed by Steve Dower in :gh: `118486 `.)
1005+
9921006time
9931007----
9941008
Original file line number Diff line number Diff line change 1+ :func: `os.mkdir ` on Windows now accepts *mode * of ``0o700 `` to restrict
2+ the new directory to the current user. This fixes :cve: `2024-4030 `
3+ affecting :func: `tempfile.mkdtemp ` in scenarios where the base temporary
4+ directory is more permissive than the default.
You can’t perform that action at this time.
0 commit comments