cve.bz

CVE-2020-24583 Incorrect Default Permissions

7.5 highEPSS 4.0%Fix available

High (7.5). EPSS 4.0% estimated probability of exploitation activity in the next 30 days. Fixed in django 2.2.16, 3.0.10, 3.1.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
4.0% (unchanged from 4.0% a week ago; 4.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-276 Incorrect Default Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-24583 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-24583?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-24583?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-24583 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
djangoproject:djangofrom 2.2 before 2.2.16
djangoproject:djangofrom 3.0 before 3.0.10
djangoproject:djangofrom 3.1 before 3.1.1
canonical:ubuntu_linux20.04
fedoraproject:fedora31
fedoraproject:fedora32
fedoraproject:fedora33
oracle:zfs_storage_appliance_kit8.8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-m6gj-h9gm-gw44PyPIdjango>=2.2a1 <2.2.162.2.16
GHSA-m6gj-h9gm-gw44PyPIdjango>=3.0a1 <3.0.103.0.10
GHSA-m6gj-h9gm-gw44PyPIdjango>=3.1a1 <3.1.13.1.1
PYSEC-2020-33PyPIdjango>=2.2 <2.2.16
>=3.0 <3.0.10
>=3.1 <3.1.1
2.2.16, 3.0.10, 3.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10python-django1:1.11.29-1+deb10u2DLA-3164-1
Debian12, 13, 14python-django2:2.2.16-1DEBIAN-CVE-2020-24583
Ubuntu20.04:LTSpython-django2:2.2.12-1ubuntu0.2UBUNTU-CVE-2020-24583 USN-4479-1
openSUSETumbleweedpython-Django3.2.7-2.3openSUSE-SU-2024:11205-1
openSUSETumbleweedpython-Django4.2.11-2.1openSUSE-SU-2024:13887-1
openSUSETumbleweedpython-Django5.2.16-1.1openSUSE-SU-2026:11248-1
openSUSETumbleweedpython-Django44.2.14-1.1openSUSE-SU-2024:14208-1
openSUSETumbleweedpython-Django44.2.30-4.1openSUSE-SU-2026:11235-1
openSUSETumbleweedpython-Django55.2.16-1.1openSUSE-SU-2026:11270-1
openSUSETumbleweedpython-Django66.0-1.1openSUSE-SU-2026:10005-1
Alpinev3.9, v3.10py-django1.11.29-r1ALPINE-CVE-2020-24583
Alpinev3.11, v3.12py3-django1.11.29-r1ALPINE-CVE-2020-24583
Alpinev3.13, v3.14, v3.15 and 9 morepy3-django3.1.1-r0ALPINE-CVE-2020-24583

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw can only be triggered in Django by using Python version 3.7 and newer. While the flawed package is shipped with the below Red Hat products, the flaw cannot be activated without manually updating Python to a newer release. This change would break many features and is an unsupported configuration.

* Red Hat OpenStack Platform versions 15 and 16 ship Python 3.6.8; 10 and 13 ship Python 2.X.

* Red Hat Ceph Storage 2 and 3 uses Python 2.X

* Red Hat Gluster Storage 3 uses Python 2.X

ProductPackageStateAdvisory
Red Hat Ceph Storage 2python-djangoOut of support scope
Red Hat Ceph Storage 3python-djangoOut of support scope
Red Hat OpenStack Platform 10 (Newton)python-djangoOut of support scope
Red Hat OpenStack Platform 13 (Queens)python-djangoOut of support scope
Red Hat OpenStack Platform 15 (Stein)python-djangoOut of support scope
Red Hat OpenStack Platform 16 (Train)python-djangoOut of support scope
Red Hat Satellite 6python-djangoNot affected
Red Hat Storage 3python-djangoOut of support scope
Red Hat Update Infrastructure 3 for Cloud Providerspython-djangoNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-24583.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON