{"id":"CVE-2023-31047","details":"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.","aliases":["BIT-django-2023-31047","GHSA-r3xc-prgr-mg9p","PYSEC-2023-61"],"modified":"2026-11-16T10:45:10.844797227Z","published":"2023-05-07T00:00:00Z","related":["SUSE-SU-2023:2839-1","openSUSE-SU-2024:12943-1","openSUSE-SU-2024:14208-1","openSUSE-SU-2026:10005-1","openSUSE-SU-2026:11235-1","openSUSE-SU-2026:11248-1","openSUSE-SU-2026:11270-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31047.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://docs.djangoproject.com/en/4.2/releases/security/"},{"type":"WEB","url":"https://groups.google.com/forum/#%21forum/django-announce"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31047.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHW/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DNEHD6N435OE2XUFGDAAVAXSYWLCUBFD/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31047"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230609-0008/"},{"type":"ARTICLE","url":"https://www.djangoproject.com/weblog/2023/may/03/security-releases/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/django/django","events":[{"introduced":"b6475d7d7940f3ce575e0b0f2d83e517f899b4cf"},{"fixed":"fc42edd2e63e89a80e7ca81486291f74359ef8be"},{"introduced":"ef62a3a68c9d558486145a42c0d71ea9a76add9e"},{"fixed":"dceb634ba42d3a182ea653dce31a529017f75a95"},{"introduced":"97aa3b7f08f51669e118f3af5ca91026e39664c3"},{"last_affected":"e829b0a239cffdeab5781df450a6b0e0026faa2d"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"3.2"},{"fixed":"3.2.19"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"4.0"},{"fixed":"4.1.9"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"4.2-NA"},{"last_affected":"4.2-NA"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:djangoproject:django:4.2:-:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:djangoproject:django:4.2:b1:*:*:*:*:*:*","range":[{"introduced":"4.2-b1"},{"last_affected":"4.2-b1"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:djangoproject:django:4.2:rc1:*:*:*:*:*:*","range":[{"introduced":"4.2-rc1"},{"last_affected":"4.2-rc1"}]}]}}],"versions":["4.2-NA","4.2-b1","4.2-rc1","3.2.18","3.2.17","3.2.16","3.2.15","3.2.14","3.2.13","3.2.12","3.2.11","3.2.10","3.2.9","3.2.8","3.2.7","3.2.6","3.2.5","3.2.4","3.2.3","3.2.2","3.2.1","3.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-31047.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}