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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.39%, higher than 73% of CVEs (2026-12-01)
- Published: 2023-05-07T00:00:00.000Z
- Modified: 2026-09-08T08:46:32.844Z
- Also known as: GHSA-r3xc-prgr-mg9p, BIT-DJANGO-2023-31047, PYSEC-2023-61
- Weaknesses: CWE-20, CWE-862
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- 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
- djangoproject django: from 3.2 before 3.2.19; from 4.0 before 4.1.9; 4.2
- fedoraproject fedora: 38
- 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

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://groups.google.com/forum/#%21forum/django-announce> (web)
- <https://docs.djangoproject.com/en/4.2/releases/security/> (advisory, vendor-advisory)
- <https://www.djangoproject.com/weblog/2023/may/03/security-releases/> (advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHW/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DNEHD6N435OE2XUFGDAAVAXSYWLCUBFD/> (vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20230609-0008/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31047> (advisory, web)
- <https://github.com/django/django/commit/21b1b1fc03e5f9e9f8c977ee6e35618dd3b353dd> (web)
- <https://github.com/django/django/commit/e7c3a2ccc3a562328600be05068ed9149e12ce64> (web)
- <https://github.com/django/django/commit/eed53d0011622e70b936e203005f0e6f4ac48965> (web)
- <https://docs.djangoproject.com/en/4.2/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-61.yaml> (web)
- <https://groups.google.com/forum/#!forum/django-announce> (article, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHW> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNEHD6N435OE2XUFGDAAVAXSYWLCUBFD> (web)
- <https://security.netapp.com/advisory/ntap-20230609-0008> (web)
- <https://www.djangoproject.com/weblog/2023/may/03/security-releases> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHW/> (report, web)
- <https://github.com/advisories/GHSA-r3xc-prgr-mg9p> (advisory)

## Sources

- CVE List: [CVE-2023-31047](https://www.cve.org/CVERecord?id=CVE-2023-31047), CVE Terms of Use, modified 2025-01-29
- GitHub Advisory Database: [GHSA-r3xc-prgr-mg9p](https://github.com/advisories/GHSA-r3xc-prgr-mg9p), CC-BY-4.0, modified 2025-02-21
- NVD: [CVE-2023-31047](https://nvd.nist.gov/vuln/detail/CVE-2023-31047), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-61](https://osv.dev/vulnerability/PYSEC-2023-61), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2023-31047](https://osv.dev/vulnerability/BIT-DJANGO-2023-31047), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-31047 · Whole record: https://cve.day/CVE-2023-31047.json · Rebuilt by cve.day 2026-11-25T22:58:23.933Z
