Django Incorrect Default Permissions
Published 18 Mar 2021 · Updated 18 Sept 2024
Is your project on an affected django?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=2.2a1 <2.2.16
- Fixed in
- 2.2.16
pip install 'django>=2.2.16'- Affected
- >=3.0a1 <3.0.10
- Fixed in
- 3.0.10
pip install 'django>=3.0.10'- Affected
- >=3.1a1 <3.1.1
- Fixed in
- 3.1.1
pip install 'django>=3.1.1'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.
Is GHSA-m6gj-h9gm-gw44 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected django, and gives you the command that fixes it.
More advisories for django
- HighCVE-2026-15307Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing · 4 Aug 2026
- MediumCVE-2026-15830Django GeoDjango vulnerable to denial of service through deeply nested geometry collections · 4 Aug 2026
- MediumCVE-2026-53878Django: DomainNameValidator permits newline characters that may enable HTTP header injection · 7 Jul 2026
- MediumCVE-2026-53877 Django: GDALRaster may over-read heap memory when constructed from bytes · 7 Jul 2026
- LowCVE-2026-48588Django: cache middleware may expose private responses when unrelated request cookies are present · 7 Jul 2026
- LowCVE-2026-8404Django: UpdateCacheMiddleware may disclose cached responses due to case-sensitive Cache-Control handling · 3 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-24583
- Linkgithub.com/django/django/commit/8d7271578d7b153435b40fe40236ebec43cbf1b9
- Linkdocs.djangoproject.com/en/dev/releases/security
- Advisorygithub.com/advisories/GHSA-m6gj-h9gm-gw44
- Packagegithub.com/django/django
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-33.yaml
- Linkgroups.google.com/forum/#!topic/django-announce/Gdqn58RqIDM
- Linkgroups.google.com/forum/#!topic/django-announce/zFCMdgUnutU
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F2ZHO3GZCJMP3DDTXCNVFV6ED3W64NAU
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OLGFFLMF3X6USMJD7V5F5P4K2WVUTO3T
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZCRPQCBTV3RZHKVZ6K6QOAANPRZQD3GI
- Linksecurity.netapp.com/advisory/ntap-20200918-0004
- Linkusn.ubuntu.com/4479-1
- Linkwww.djangoproject.com/weblog/2020/sep/01/security-releases
- Linkwww.openwall.com/lists/oss-security/2020/09/01/2
- Linkwww.oracle.com/security-alerts/cpujan2021.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.