8000 [3.11] gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488) by zooba · Pull Request #118739 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488) #118739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
8000
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix CVE in docs
  • Loading branch information
zooba authored May 7, 2024
commit 83b6e18742ba909e62d1ae8c938a66f8ab541b70
4 changes: 2 additions & 2 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ os
* As of 3.11.10, :func:`os.mkdir` and :func:`os.makedirs` on Windows
now support passing a *mode* value of ``0o700`` to apply access
control to the new directory. This implicitly affects
:func:`tempfile.mkdtemp` and is a mitigation for :cve:`2024-4030`.
:func:`tempfile.mkdtemp` and is a mitigation for CVE-2024-4030.
Other values for *mode* continue to be ignored.
(Contributed by Steve Dower in :gh:`118486`.)

Expand Down Expand Up @@ -1068,7 +1068,7 @@ tempfile

* As of 3.11.10 on Windows, the default mode ``0o700`` used by
:func:`tempfile.mkdtemp` now limits access to the new directory due to
changes to :func:`os.mkdir`. This is a mitigation for :cve:`2024-4030`.
changes to :func:`os.mkdir`. This is a mitigation for CVE-2024-4030.
(Contributed by Steve Dower in :gh:`118486`.)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:func:`os.mkdir` on Windows now accepts *mode* of ``0o700`` to restrict
the new directory to the current user. This fixes :cve:`2024-4030`
the new directory to the current user. This fixes CVE-2024-4030
affecting :func:`tempfile.mkdtemp` in scenarios where the base temporary
directory is more permissive than the default.
0