~ / search / GHSA-r3xc-prgr-mg9p

GHSA-r3xc-prgr-mg9p

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

Source: GitHub Advisory Database (reviewed) Critical CVE-2023-31047

Packages

EcosystemPackageAffectedFixed in
PyPI Django >= 3.2a1, < 3.2.19 3.2.19
PyPI Django >= 4.0a1, < 4.1.9 4.1.9
PyPI Django >= 4.2a1, < 4.2.1 4.2.1

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.