Skip to content

Commit 604695c

Browse files
shaibjacobtylerwalls
authored andcommitted
Refs CVE-2026-25674 -- Clarified role of umask in upload permissions.
1 parent 5b3cfce commit 604695c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/ref/settings.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,6 +1636,12 @@ when using the :djadmin:`collectstatic` management command. See
16361636
modes must be specified. If you try to use ``644``, you'll get totally
16371637
incorrect behavior.
16381638

1639+
.. admonition:: A numeric value trumps umask
1640+
1641+
When this setting has a numeric value (one you've set yourself, or the
1642+
default ``0o644``), this value will be used as is, and a umask will not
1643+
be applied to it. The umask will apply only if this setting is ``None``.
1644+
16391645
.. setting:: FILE_UPLOAD_TEMP_DIR
16401646

16411647
``FILE_UPLOAD_TEMP_DIR``

0 commit comments

Comments
 (0)