CVE-2020-24583: Incorrect Default Permissions in Django

django Updated 02 Oct 2025

Summary

18/03/2021
Yes i
High
7.5

CVE-2020-24583: Django Incorrect Default Permissions. Affects django across 3 version ranges.

>= 2.2a1, < 2.2.16 >= 3.0a1, < 3.0.10 >= 3.1a1, < 3.1.1

Fixed in 2.2.16, 3.0.10 or 3.1.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2020-24583 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Django is a popular Python web framework used for building web applications. It provides a high-level development environment and follows the model-view-controller architectural pattern. Django allows developers to quickly and efficiently create secure and scalable web applications. However, a vulnerability has been discovered in versions 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).

Vulnerability Detail

The vulnerability, identified as CVE-2020-24583, relates to incorrect default permissions in Django. Specifically, the FILE_UPLOAD_DIRECTORY_PERMISSIONS mode was not applied to intermediate-level directories created during the file upload process. Additionally, it was not applied to intermediate-level collected static directories when using the collectstatic management command. This oversight could potentially lead to unauthorized access or modification of uploaded files or collected static files.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 2.2a1, < 2.2.16 2.2.16
    pip install --upgrade "django==2.2.16"
  • >= 3.0a1, < 3.0.10 3.0.10
    pip install --upgrade "django==3.0.10"
  • >= 3.1a1, < 3.1.1 3.1.1
    pip install --upgrade "django==3.1.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, users can manually set the correct permissions for the intermediate-level directories created during the file upload process and the collected static directories. This can be done by modifying the file system permissions using the appropriate commands or tools for the operating system in use. However, applying the recommended fix by upgrading to the patched versions is the most secure and reliable solution.

Conclusion

In conclusion, the vulnerability CVE-2020-24583 in Django versions 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) allows unauthorized access or modification of uploaded and collected static files. It is crucial to upgrade to the patched versions or apply the recommended workaround to ensure the security of Django web applications. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for django →

Share this vulnerability

FAQ

Django is a Python web framework that simplifies web application development by providing a high-level development environment and following the model-view-controller architectural pattern.

The vulnerability could potentially allow unauthorized access or modification of uploaded files or collected static files in Django web applications.

Versions 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) are affected by this vulnerability.

To fix this vulnerability, it is recommended to upgrade Django to version 2.2.16, 3.0.10, or 3.1.1, depending on the version being used.

Yes, a temporary workaround is to manually set the correct permissions for the intermediate-level directories created during the file upload process and the collected static directories.

Related vulnerabilities

Recent vulnerabilities recorded for django.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 2.2a1, < 2.2.16 2.2.16
    pip install --upgrade "django==2.2.16"
  • >= 3.0a1, < 3.0.10 3.0.10
    pip install --upgrade "django==3.0.10"
  • >= 3.1a1, < 3.1.1 3.1.1
    pip install --upgrade "django==3.1.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback