CVE-2020-24584: Incorrect Default Permissions in Django

django Updated 02 Oct 2025

Summary

18/03/2021
Yes i
Moderate
7.5

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

>= 2.2, < 2.2.16 >= 3.0, < 3.0.10 >= 3.1, < 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-24584 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 is widely adopted due to its robustness, scalability, and security features. However, a vulnerability has been discovered 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).

Vulnerability Detail

The vulnerability, identified as CVE-2020-24584, stems from incorrect default permissions in the intermediate-level directories of the filesystem cache. These directories inherit the system's standard umask rather than having the appropriate permissions set to 0o077. This misconfiguration can lead to unauthorized access and potential information disclosure. The vulnerability has a CVSS score of 7.5, indicating a high severity level.

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.2, < 2.2.16 2.2.16
    pip install --upgrade "django==2.2.16"
  • >= 3.0, < 3.0.10 3.0.10
    pip install --upgrade "django==3.0.10"
  • >= 3.1, < 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

There is no specific workaround provided for this vulnerability. The recommended solution is to upgrade Django to the fixed versions mentioned above.

Conclusion

In conclusion, the vulnerability CVE-2020-24584 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) exposes the intermediate-level directories of the filesystem cache to incorrect default permissions. This can result in unauthorized access and potential information disclosure. It is crucial to upgrade Django to the fixed versions to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for django →

Share this vulnerability

FAQ

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

The vulnerability can lead to unauthorized access and potential information disclosure in Django applications.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

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.2, < 2.2.16 2.2.16
    pip install --upgrade "django==2.2.16"
  • >= 3.0, < 3.0.10 3.0.10
    pip install --upgrade "django==3.0.10"
  • >= 3.1, < 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