CVE-2020-24583
django: incorrect permissions on intermediate-level directories on Python 3.7+
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-276
Affected packages · 2
Operating systems · 22 fixes
Red Hat 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| python2-django-doc | eol | |
| 7 | python-django +3 | eol |
| 8 | python-django +2 | eol |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | py3-django | 3.1.1-r0 |
| 3.23 | py3-django | 3.1.1-r0 |
| 3.24 | py3-django | 3.1.1-r0 |
| edge | py3-django | 3.1.1-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | python-django | 1:1.11.29-1+deb10u2 |
| 11 | python-django | 2:2.2.16-1 |
| 12 | python-django | 2:2.2.16-1 |
| 13 | python-django | 2:2.2.16-1 |
| 14 | python-django | 2:2.2.16-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| python-django | 2:2.2.16-1 |
openSUSE 1 release · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python36-django +2 | 3.2.7-2.3 | openSUSE-SU-2024:11205-1 |
| Tumbleweed | python310-django +2 | 4.2.11-2.1 | openSUSE-SU-2024:13887-1 |
| Tumbleweed | python310-django4 +2 | 4.2.14-1.1 | openSUSE-SU-2024:14208-1 |
| Tumbleweed | python313-django4 +1 | 4.2.30-4.1 | openSUSE-SU-2026:11235-1 |
| Tumbleweed | python313-django +1 | 5.2.16-1.1 | openSUSE-SU-2026:11248-1 |
| Tumbleweed | python313-django5 +1 | 5.2.16-1.1 | openSUSE-SU-2026:11270-1 |
1 more row
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 20.04 | python-django | 2:2.2.12-1ubuntu0.2 |
| 20.04-ESM | python-django | 2:2.2.12-1ubuntu0.2 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-24583
- docs.djangoproject.com https://docs.djangoproject.com/en/dev/releases/security
- docs.djangoproject.com https://docs.djangoproject.com/en/dev/releases/security/
- github.com https://github.com/advisories/GHSA-m6gj-h9gm-gw44
- github.com https://github.com/django/django
- github.com https://github.com/django/django/commit/8d7271578d7b153435b40fe40236ebec43cbf1b9
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-33.yaml
- groups.google.com https://groups.google.com/forum/#!topic/django-announce/Gdqn58RqIDM
- groups.google.com https://groups.google.com/forum/#!topic/django-announce/zFCMdgUnutU
- groups.google.com https://groups.google.com/forum/#%21topic/django-announce/Gdqn58RqIDM
Show all 28 references
- groups.google.com https://groups.google.com/forum/#%21topic/django-announce/zFCMdgUnutU
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F2ZHO3GZCJMP3DDTXCNVFV6ED3W64NAU/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OLGFFLMF3X6USMJD7V5F5P4K2WVUTO3T/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZCRPQCBTV3RZHKVZ6K6QOAANPRZQD3GI/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F2ZHO3GZCJMP3DDTXCNVFV6ED3W64NAU
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OLGFFLMF3X6USMJD7V5F5P4K2WVUTO3T
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZCRPQCBTV3RZHKVZ6K6QOAANPRZQD3GI
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2020-24583
- security.netapp.com https://security.netapp.com/advisory/ntap-20200918-0004
- security.netapp.com https://security.netapp.com/advisory/ntap-20200918-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-4479-1
- usn.ubuntu.com https://usn.ubuntu.com/4479-1
- usn.ubuntu.com https://usn.ubuntu.com/4479-1/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2020-24583
- www.djangoproject.com https://www.djangoproject.com/weblog/2020/sep/01/security-releases
- www.djangoproject.com https://www.djangoproject.com/weblog/2020/sep/01/security-releases/
- www.openwall.com https://www.openwall.com/lists/oss-security/2020/09/01/2
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2021.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.