CVE-2023-31047
9.8critical
Django bypasses validation when using one form field to upload multiple files
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.39% (higher than 73% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-r3xc-prgr-mg9pBIT-DJANGO-2023-31047PYSEC-2023-61
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django (PyPI) | from 3.2a1 before 3.2.19, from 4.0a1 before 4.1.9, from 4.2a1 before 4.2.1, from 3.2 before 3.2.19, from 4.0 before 4.1.9, from 4.2 before 4.2.1 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 3.2 before 3.2.19, from 4.0 before 4.1.9, 4.2 | NVD |
| fedoraproject fedora | 38 | NVD |
| django (Bitnami) | from 3.2.0 before 3.2.19, from 4.0.0 before 4.1.9, from 4.2.0 up to 4.2.0 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-31047 changed 2025-01-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r3xc-prgr-mg9p changed 2025-02-21 | CC-BY-4.0 |
| NVD | CVE-2023-31047 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-61 changed 2026-06-10 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2023-31047 changed 2026-09-08 | Apache-2.0 |