Advisory

GHSA-r3xc-prgr-mg9p

Also known as: BIT-django-2023-31047, CVE-2023-31047, PYSEC-2023-61

Summary

Django bypasses validation when using one form field to upload multiple files

Details

In Django 3.2 before 3.2.19, 4.x before 4.1.9, and 4.2 before 4.2.1, it was possible to bypass validation when using one form field to upload multiple files. This multiple upload has never been supported by forms.FileField or forms.ImageField (only the last uploaded file was validated). However, Django's "Uploading multiple files" documentation suggested otherwise.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-05-07 03:30 UTC
Modified
2025-02-21 05:31 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 3.2a1, fixed 3.2.19 (ecosystem)

Fixed versions

3.2.19

Fix

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

django

PyPI · All systems

Affected

  • introduced 4.0a1, fixed 4.1.9 (ecosystem)

Fixed versions

4.1.9

Fix

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

django

PyPI · All systems

Affected

  • introduced 4.2a1, fixed 4.2.1 (ecosystem)

Fixed versions

4.2.1

Fix

  • Fixed version 4.2.1
    pip install --upgrade django==4.2.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