Vulnerabilities / CVE-2023-31047

critical

CVE-2023-31047

python-django: Potential bypass of validation when uploading multiple files using one form field

Published Modified CWE 20, 862
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami. Rated lower by Red Hat (medium), Ubuntu (low).

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 packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasedjango3.2.19, 4.1.9
pip::GitHub Security Advisory pipdjango3.2.19, 4.1.9, 4.2.1
debian 10python-django1:1.11.29-1+deb10u8
debian 11python-django2:2.2.28-1~deb11u2
debian 12python-django3:3.2.19-1
debian 13python-django3:3.2.19-1
debian 14python-django3:3.2.19-1
echopython-django3:3.2.19-1
Red Hatpython-django, python2-djangono fix listed
ubuntu 14.04-ESMpython-django1.6.11-0ubuntu1.3+esm6
ubuntu 16.04-ESMpython-django1.8.7-1ubuntu5.15+esm7
ubuntu 18.04python-django1:1.11.11-1ubuntu1.21
Show all 19 entries from 18 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasedjango3.2.19, 4.1.9
pip::GitHub Security Advisory pipdjango3.2.19, 4.1.9, 4.2.1
debian 10python-django1:1.11.29-1+deb10u8
debian 11python-django2:2.2.28-1~deb11u2
debian 12python-django3:3.2.19-1
debian 13python-django3:3.2.19-1
debian 14python-django3:3.2.19-1
echopython-django3:3.2.19-1
Red Hatpython-djangono fix listed
Red Hatpython2-djangono fix listed
ubuntu 14.04-ESMpython-django1.6.11-0ubuntu1.3+esm6
ubuntu 16.04-ESMpython-django1.8.7-1ubuntu5.15+esm7
ubuntu 18.04python-django1:1.11.11-1ubuntu1.21
ubuntu 18.04-ESMpython-django1:1.11.11-1ubuntu1.21
ubuntu 20.04python-django2:2.2.12-1ubuntu0.17
ubuntu 20.04-ESMpython-django2:2.2.12-1ubuntu0.17
ubuntu 22.04python-django2:3.2.12-2ubuntu1.6
ubuntu 22.10python-django3:3.2.15-1ubuntu1.3
ubuntu 23.04python-django3:3.2.18-1ubuntu0.1

References

All 22 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.