PyPA Advisory Database
PYSEC-2020-33
Details
An 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | django | From 2.2 before 2.2.16 (fixed in 2.2.16) From 3.0 before 3.0.10 (fixed in 3.0.10) From 3.1 before 3.1.1 (fixed in 3.1.1) |
References
- https://groups.google.com/forum/#!topic/django-announce/Gdqn58RqIDM
- https://www.openwall.com/lists/oss-security/2020/09/01/2
- https://groups.google.com/forum/#!topic/django-announce/zFCMdgUnutU
- https://www.djangoproject.com/weblog/2020/sep/01/security-releases/
- https://docs.djangoproject.com/en/dev/releases/security/
- https://usn.ubuntu.com/4479-1/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/F2ZHO3GZCJMP3DDTXCNVFV6ED3W64NAU/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZCRPQCBTV3RZHKVZ6K6QOAANPRZQD3GI/
- https://security.netapp.com/advisory/ntap-20200918-0004/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/OLGFFLMF3X6USMJD7V5F5P4K2WVUTO3T/
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://github.com/advisories/GHSA-m6gj-h9gm-gw44