Advisory

PYSEC-2023-61

Also known as: BIT-django-2023-31047, CVE-2023-31047, GHSA-r3xc-prgr-mg9p

Summary

The record has no summary.

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

Not rated by the source.

Dates

Published
2023-05-07 02:15 UTC
Modified
2026-06-10 17:00 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 3.2, fixed 3.2.19, introduced 4.0, fixed 4.1.9, introduced 4.2, fixed 4.2.1 (ecosystem)

Fixed versions

3.2.19, 4.1.9, 4.2.1

Fix

  • Fixed version 3.2.19
    pip install --upgrade django==3.2.19
  • Fixed version 4.1.9
    pip install --upgrade django==4.1.9
  • 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: PyPA Advisory Database · CC BY 4.0

Sources & licences