Django Incorrect Default Permissions
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
3.1.1An issue was discovered in Django 2.2 before 2.2.16, 3.0 before 3.0.10, and 3.1 before 3.1.1 (when Python 3.7+ is used). FILE_UPLOAD_DIRECTORY_PERMISSIONS mode was not applied to intermediate-level directories created in the process of uploading files. It was also not applied to intermediate-level collected static directories when using the collectstatic management command.
From the CVE record · mitre
On Python 3.7+, affected Django versions do not apply FILE_UPLOAD_DIRECTORY_PERMISSIONS to intermediate directories created during file uploads or by the collectstatic command. Those directories may have unintended permissions; the input does not specify an attacker access path, authentication requirement, or user interaction.
Check deployments running the PyPI django package in the 2.2 series before 2.2.16, the 3.0 series before 3.0.10, or the 3.1 series before 3.1.1 on Python 3.7+.