CVE-2020-24583
Django Incorrect Default Permissions
Reported by mitre · Published September 1, 2020
django is fixed in 3.1.1, 3.0.10 and 2.2.16 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| django | PyPI | 3.1.1, 3.0.10, 2.2.16 |
| python-django | Arch Linux | 3.1.1-1 |
| py-django | Alpine | 1.11.29-r1 |
| py3-django | Alpine | 3.1.1-r0, 1.11.29-r1 |
| django | djangoproject | 3.1.1, 3.0.10, 2.2.16 |
| python-django | Ubuntu:20.04:LTS | 2:2.2.12-1ubuntu0.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| arch | python-django | 0 |
| alpine | py-django | 0 |
| PyPI | Django | 3.1a1, 2.2a1, 3.0a1 |
| alpine | py3-django | 0, 0 |
| n/a | n/a | * |
Timeline
- Sep 1, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch
- Mar 6, 2026 Security Advisory (2 in total, the first dated here)
- Sep 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-24583
vulnetix vdb fixes CVE-2020-24583
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-24583/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- USN-4479-1 vendor-advisoryx_refsource_UBUNTU
- FEDORA-2020-94407454d7 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-6941c0a65b vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-9c6b391162 vendor-advisoryx_refsource_FEDORA
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2020-24583 advisory
- https://github.com/advisories/GHSA-m6gj-h9gm-gw44 advisory
- https://github.com/django/django/commit/8d7271578d7b153435b40fe40236ebec43cbf1b9 patch
- https://docs.djangoproject.com/en/dev/releases/security url
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-33.yaml advisory
- https://groups.google.com/forum/#!topic/django-announce/Gdqn58RqIDM url
- https://groups.google.com/forum/#!topic/django-announce/zFCMdgUnutU url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F2ZHO3GZCJMP3DDTXCNVFV6ED3W64NAU url
…and 5 more