Feed
9.8CRITICAL
CVE-2023-31047Django bypasses validation when using one form field to upload multiple files
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.5% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.5%
- percentile 74%
- Fix
- Named by a source
- CVE published 7 May 2023
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.5% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 3.2.19 / 4.1.9 / 4.2.1 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/21b1b1fc03e5f9e9f8c977ee6e35618dd3b353dd
- Commit / pull request: https://github.com/django/django/commit/e7c3a2ccc3a562328600be05068ed9149e12ce64
- Commit / pull request: https://github.com/django/django/commit/eed53d0011622e70b936e203005f0e6f4ac48965
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 3.2a1, < 3.2.19Fixed in3.2.19OSV (GHSA-r3xc-prgr-mg9p)
- Affected>= 4.0a1, < 4.1.9Fixed in4.1.9OSV (GHSA-r3xc-prgr-mg9p)
- Affected>= 4.2a1, < 4.2.1Fixed in4.2.1OSV (GHSA-r3xc-prgr-mg9p)
- Affected>= 3.2, < 3.2.19Fixed in3.2.19OSV (PYSEC-2023-61)
- Affected>= 4.0, < 4.1.9Fixed in4.1.9OSV (PYSEC-2023-61)
- Affected>= 4.2, < 4.2.1Fixed in4.2.1OSV (PYSEC-2023-61)
- Affected3.2a1, 3.2b1, 3.2rc1, 4.2a1, 4.2b1, 4.2rc1Fixed innot namedOSV (PYSEC-2023-61)
Confirmed facts
- CVSS
- 9.8 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-r3xc-prgr-mg9p)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-20
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-31047
- commit / pull requesthttps://github.com/django/django/commit/21b1b1fc03e5f9e9f8c977ee6e35618dd3b353dd
- commit / pull requesthttps://github.com/django/django/commit/e7c3a2ccc3a562328600be05068ed9149e12ce64
- commit / pull requesthttps://github.com/django/django/commit/eed53d0011622e70b936e203005f0e6f4ac48965
- otherhttps://docs.djangoproject.com/en/4.2/releases/security
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-61.yaml
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHW
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/DNEHD6N435OE2XUFGDAAVAXSYWLCUBFD
- otherhttps://security.netapp.com/advisory/ntap-20230609-0008
- otherhttps://www.djangoproject.com/weblog/2023/may/03/security-releases
- advisoryhttps://www.djangoproject.com/weblog/2023/may/03/security-releases/
- advisoryhttps://docs.djangoproject.com/en/4.2/releases/security/
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHW/
- advisoryhttps://github.com/advisories/GHSA-r3xc-prgr-mg9p
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-r3xc-prgr-mg9p (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2023-61 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 27 min ago · osv 27 min ago · nvd 88 min ago · epss 27 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2023-31047, GHSA-r3xc-prgr-mg9p, PYSEC-2023-61