First published: Tue May 02 2023(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
ubuntu/python-django | <1:1.11.11-1ubuntu1.21 | 1:1.11.11-1ubuntu1.21 |
ubuntu/python-django | <2:2.2.12-1ubuntu0.17 | 2:2.2.12-1ubuntu0.17 |
ubuntu/python-django | <2:3.2.12-2ubuntu1.6 | 2:3.2.12-2ubuntu1.6 |
ubuntu/python-django | <3:3.2.15-1ubuntu1.3 | 3:3.2.15-1ubuntu1.3 |
ubuntu/python-django | <3:3.2.18-1ubuntu0.1 | 3:3.2.18-1ubuntu0.1 |
ubuntu/python-django | <4.2.1<4.1.9<3.2.19 | 4.2.1 4.1.9 3.2.19 |
debian/python-django | <=1:1.11.29-1~deb10u1<=2:2.2.28-1~deb11u1 | 1:1.11.29-1+deb10u8 3:3.2.19-1 |
Djangoproject Django | >=3.2<3.2.19 | |
Djangoproject Django | >=4.0<4.1.9 | |
Djangoproject Django | =4.2 | |
Djangoproject Django | =4.2-b1 | |
Djangoproject Django | =4.2-rc1 | |
Fedoraproject Fedora | =38 | |
redhat/python-django | <3.2.19 | 3.2.19 |
redhat/python-django | <4.1.9 | 4.1.9 |
redhat/python-django | <4.2.1 | 4.2.1 |
pip/Django | >=4.2a1<4.2.1 | 4.2.1 |
pip/Django | >=4.0a1<4.1.9 | 4.1.9 |
pip/Django | >=3.2a1<3.2.19 | 3.2.19 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The vulnerability ID for this issue is CVE-2023-31047.
CVE-2023-31047 has a severity rating of 9.8 (Critical).
To bypass validation when uploading multiple files using one form field in Django, you should update to Django version 3.2.19, 4.1.9, or 4.2.1 or apply the appropriate remedies specified by your software vendor.
Django versions 3.2 before 3.2.19, 4.x before 4.1.9, and 4.2 before 4.2.1 are affected by CVE-2023-31047.
You can find more information about CVE-2023-31047 in the following references: 1. [Django Security Releases](https://www.djangoproject.com/weblog/2023/may/03/security-releases/) 2. [Django 4.2 Security Releases](https://docs.djangoproject.com/en/4.2/releases/security/) 3. [Django Announce Google Group](https://groups.google.com/forum/#!forum/django-announce)