What’s Vulnerable › Vulnerabilities

CVE-2023-31047: Django bypasses validation when using one form field to upload multiple files

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Django 3.2.19, 4.1.9; Pypi Django 3.2.19, 4.1.9, 4.2.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-31047 or the next vulnerability affects your stack