CWE
20
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2023-31047: Input Validation

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 SoftwareAffected VersionHow 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.2<4.2.1
4.2.1
pip/Django>=4.0<4.1.9
4.1.9
pip/Django>=3.2<3.2.19
3.2.19

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the vulnerability ID for this issue?

    The vulnerability ID for this issue is CVE-2023-31047.

  • What is the severity rating of CVE-2023-31047?

    CVE-2023-31047 has a severity rating of 9.8 (Critical).

  • How can I bypass validation when uploading multiple files using one form field in Django?

    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.

  • Which Django versions are affected by CVE-2023-31047?

    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.

  • Where can I find more information about 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)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203