Advisory

GHSA-m6gj-h9gm-gw44

Also known as: BIT-django-2020-24583, CVE-2020-24583, PYSEC-2020-33

Summary

Django Incorrect Default Permissions

Details

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

High Basis: The source's own band: HIGH

Dates

Published
2021-03-18 20:30 UTC
Modified
2024-09-18 20:08 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2a1, fixed 2.2.16 (ecosystem)

Fixed versions

2.2.16

Fix

  • Fixed version 2.2.16
    pip install --upgrade django==2.2.16

django

PyPI · All systems

Affected

  • introduced 3.0a1, fixed 3.0.10 (ecosystem)

Fixed versions

3.0.10

Fix

  • Fixed version 3.0.10
    pip install --upgrade django==3.0.10

django

PyPI · All systems

Affected

  • introduced 3.1a1, fixed 3.1.1 (ecosystem)

Fixed versions

3.1.1

Fix

  • Fixed version 3.1.1
    pip install --upgrade django==3.1.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences