CVE-2023-31047
JSON

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 packageVersionsReported by
Unspecified productn/aCVE 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.1GitHub Advisory Database, PyPA Advisory Database
djangoproject djangofrom 3.2 before 3.2.19, from 4.0 before 4.1.9, 4.2NVD
fedoraproject fedora38NVD
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.0Bitnami Vulnerability Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-20CWE-862

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

References

https://groups.google.com/forum/#%21forum/django-announceweb
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-31047advisory, web
https://github.com/django/django/commit/21b1b1fc03e5f9e9f8c977ee6e35618dd3b353ddweb
https://github.com/django/django/commit/e7c3a2ccc3a562328600be05068ed9149e12ce64web
https://github.com/django/django/commit/eed53d0011622e70b936e203005f0e6f4ac48965web
https://docs.djangoproject.com/en/4.2/releases/securityweb
https://github.com/django/djangopackage

Sources

SourceRecordLicence
CVE ListCVE-2023-31047 changed 2025-01-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-r3xc-prgr-mg9p changed 2025-02-21CC-BY-4.0
NVDCVE-2023-31047 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2023-61 changed 2026-06-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2023-31047 changed 2026-09-08Apache-2.0