Skip to content
OpenAdvisories
Critical · 9.8 CVE-2023-31047 BIT-django-2023-31047EUVD-2023-0071GHSA-r3xc-prgr-mg9pPYSEC-2023-61

Django bypasses validation when using one form field to upload multiple files

Published May 7, 2023 · Updated Jan 29, 2025 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-django 3:3.2.19-1 —
Debian 13 python-django 3:3.2.19-1 —
Debian 12 python-django 3:3.2.19-1 —
Debian 10 python-django 1:1.11.29-1+deb10u8 DLA-3415-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS python-django 2:3.2.12-2ubuntu1.6 USN-6054-1
Ubuntu 20.04 LTS python-django 2:2.2.12-1ubuntu0.17 USN-6054-1
Ubuntu 18.04 LTS python-django 1:1.11.11-1ubuntu1.21 USN-6054-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS python-django 1.8.7-1ubuntu5.15+esm7 USN-6054-2
Ubuntu Pro 14.04 LTS python-django 1.6.11-0ubuntu1.3+esm6 USN-6054-2
ReleasePackageFixed inAdvisory
Red Hat Satellite Utils 6 foreman +1 3.5.1.23-1.el8sat RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite Capsule 6 foreman +1 3.5.1.23-1.el8sat RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite Capsule 6 puppet-agent 7.26.0-3.el8sat RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite Capsule 6 puppetserver 7.11.0-1.el8sat RHSA-2023:6818
Red Hat Satellite Capsule 6 python-django +1 3.2.21-1.el8pc RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite Capsule 6 python-future +1 0.18.3-1.el8pc RHSA-2023:6818
Red Hat Satellite Capsule 6 python-gitpython +1 3.1.32-1.el8pc RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite Capsule 6 python-pulp-ansible +1 1:0.16.0-1.el8pc RHSA-2023:6818
Red Hat Satellite Capsule 6 python-requests +1 2.31.0-1.el8pc RHSA-2023:6818
Red Hat Satellite Capsule 6 python-sqlparse +1 0.4.4-1.el8pc RHSA-2023:6818
Red Hat Satellite Capsule 6 rubygem-rack 2.2.7-1.el8sat RHSA-2023:6818
Red Hat Satellite 6 foreman +12 3.5.1.23-1.el8sat RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite 6 foreman-redis 3.7.0.9-1.el8sat RHSA-2023:6818
Red Hat Satellite 6 puppet-agent 7.26.0-3.el8sat RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite 6 puppetserver 7.11.0-1.el8sat RHSA-2023:6818
Red Hat Satellite 6 python-django +1 3.2.21-1.el8pc RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite 6 python-future +1 0.18.3-1.el8pc RHSA-2023:6818
Red Hat Satellite 6 python-gitpython +1 3.1.32-1.el8pc RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite 6 python-pulp-ansible +1 1:0.16.0-1.el8pc RHSA-2023:6818
Red Hat Satellite 6 python-requests +1 2.31.0-1.el8pc RHSA-2023:6818
Red Hat Satellite 6 python-sqlparse +1 0.4.4-1.el8pc RHSA-2023:6818
Red Hat Satellite 6 rubygem-actionpack +2 6.1.7.3-1.el8sat RHSA-2023:6818
Red Hat Satellite 6 rubygem-git 1.18.0-1.el8sat RHSA-2023:6818, RHSA-2023:5931
Red Hat Satellite 6 rubygem-globalid 1.1.0-1.el8sat RHSA-2023:6818
Red Hat Satellite 6 rubygem-kubeclient 4.10.1-1.el8sat RHSA-2023:6818
Red Hat Satellite 6 rubygem-rack 2.2.7-1.el8sat RHSA-2023:6818
Red Hat Satellite 6 yggdrasil-worker-forwarder 0.0.3-1.el8sat RHSA-2023:6818, RHSA-2023:5931
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhui 4 python-django +1 3.2.19-1.0.1.el8ui RHSA-2023:4591
Red Hat Rhui 4 python-sqlparse +1 0.4.4-1.0.1.el8ui RHSA-2023:4591
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Django 4.2.1-1.1 openSUSE-SU-2026:11248-1, openSUSE-SU-2024:12943-1
openSUSE Tumbleweed python-Django4 4.2.14-1.1 openSUSE-SU-2026:11235-1, openSUSE-SU-2024:14208-1
openSUSE Tumbleweed python-Django5 5.2.16-1.1 openSUSE-SU-2026:11270-1
openSUSE Tumbleweed python-Django6 6.0-1.1 openSUSE-SU-2026:10005-1
openSUSE Leap 15.5 python-Django 2.0.7-150000.1.11.1 SUSE-SU-2023:2839-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django >= 3.2a1, < 3.2.19 3.2.19 GHSA-r3xc-prgr-mg9p
PyPI django >= 4.0a1, < 4.1.9 4.1.9 GHSA-r3xc-prgr-mg9p
PyPI django >= 4.2a1, < 4.2.1 4.2.1 GHSA-r3xc-prgr-mg9p
PyPI django >= 3.2, < 3.2.19 · >= 4.0, < 4.1.9 · >= 4.2, < 4.2.1 3.2.19, 4.1.9, 4.2.1 PYSEC-2023-61

Advisories 15

References