Vulnerability · Published May 7, 2023 · Assigned by mitre
CVE-2023-31047
Critical 9.8
In plain English
A critical-severity missing authorization in the python-django package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-django | 3:3.2.19-1 | DEBIAN-CVE-2023-31047 |
| Debian:13 | python-django | 3:3.2.19-1 | DEBIAN-CVE-2023-31047 |
| Debian:14 | python-django | 3:3.2.19-1 | DEBIAN-CVE-2023-31047 |
| PyPI | django | 3.2.19, 4.1.9, 4.2.1 | PYSEC-2023-61 |
| PyPI | django | 4.2.1 | GHSA-r3xc-prgr-mg9p |
| PyPI | django | 3.2.19 | GHSA-r3xc-prgr-mg9p |
| PyPI | django | 4.1.9 | GHSA-r3xc-prgr-mg9p |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.6 | UBUNTU-CVE-2023-31047 |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.6 | USN-6054-1 |
Affected products (as reported)
Weakness: CWE-862 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/4.2/releases/security/
- https://www.djangoproject.com/weblog/2023/may/03/security-releases/
- FEDORA-2023-0d20d09f2d vendor-advisory
- FEDORA-2023-8f9d949dbc vendor-advisory
- https://security.netapp.com/advisory/ntap-20230609-0008/