Critical severity9.8NVD Advisory· Published May 7, 2023· Updated Jun 17, 2026
CVE-2023-31047
CVE-2023-31047
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
DjangoPyPI | >= 3.2a1, < 3.2.19 | 3.2.19 |
DjangoPyPI | >= 4.0a1, < 4.1.9 | 4.1.9 |
DjangoPyPI | >= 4.2a1, < 4.2.1 | 4.2.1 |
Affected products
12- osv-coords7 versionspkg:bitnami/djangopkg:pypi/djangopkg:rpm/opensuse/python-Django6&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-Django5&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-Django&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/python-Django&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-Django4&distro=openSUSE%20Tumbleweed
>= 3.2.0, < 3.2.19+ 6 more
- (no CPE)range: >= 3.2.0, < 3.2.19
- (no CPE)range: >= 3.2a1, < 3.2.19
- (no CPE)range: < 6.0-1.1
- (no CPE)range: < 5.2.16-1.1
- (no CPE)range: < 2.0.7-150000.1.11.1
- (no CPE)range: < 4.2.1-1.1
- (no CPE)range: < 4.2.14-1.1
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*+ 3 more
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*range: >=3.2,<3.2.19
- cpe:2.3:a:djangoproject:django:4.2:-:*:*:*:*:*:*
- cpe:2.3:a:djangoproject:django:4.2:b1:*:*:*:*:*:*
- cpe:2.3:a:djangoproject:django:4.2:rc1:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
Patches
Vulnerability mechanics
References
18- docs.djangoproject.com/en/4.2/releases/security/nvdVendor Advisory
- github.com/advisories/GHSA-r3xc-prgr-mg9pghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-31047ghsaADVISORY
- www.djangoproject.com/weblog/2023/may/03/security-releases/nvdVendor Advisory
- docs.djangoproject.com/en/4.2/releases/securityghsaWEB
- github.com/django/django/commit/21b1b1fc03e5f9e9f8c977ee6e35618dd3b353ddghsaWEB
- github.com/django/django/commit/e7c3a2ccc3a562328600be05068ed9149e12ce64ghsaWEB
- github.com/django/django/commit/eed53d0011622e70b936e203005f0e6f4ac48965ghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-61.yamlghsaWEB
- groups.google.com/forum/ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHWghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/DNEHD6N435OE2XUFGDAAVAXSYWLCUBFDghsaWEB
- security.netapp.com/advisory/ntap-20230609-0008ghsaWEB
- www.djangoproject.com/weblog/2023/may/03/security-releasesghsaWEB
- groups.google.com/forum/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHW/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DNEHD6N435OE2XUFGDAAVAXSYWLCUBFD/nvd
- security.netapp.com/advisory/ntap-20230609-0008/nvd
News mentions
0No linked articles in our index yet.