CVE-2023-31047Djangoproject Django
Critical 9.8 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 74
- Auth required
- No
- Published
- May 7, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 3.2a1 < 3.2.19 |
3.2.19 |
pip install "django>=3.2.19" |
| PyPI | django |
≥ 4.0a1 < 4.1.9 |
4.1.9 |
pip install "django>=4.1.9" |
| PyPI | django |
≥ 4.2a1 < 4.2.1 |
4.2.1 |
pip install "django>=4.2.1" |
| PyPI | django |
≥ 3.2 < 3.2.19 |
3.2.19 |
pip install "django>=3.2.19" |
| PyPI | django |
≥ 4.0 < 4.1.9 |
4.1.9 |
pip install "django>=4.1.9" |
| PyPI | django |
≥ 4.2 < 4.2.1 |
4.2.1 |
pip install "django>=4.2.1" |
Per OSV / GitHub Advisories (GHSA-r3xc-prgr-mg9p, PYSEC-2023-61). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 3.2 < 3.2.19 |
| djangoproject | django | ≥ 4.0 < 4.1.9 |
| djangoproject | django | 4.2 |
| djangoproject | django | 4.2 |
| djangoproject | django | 4.2 |
| fedoraproject | fedora | 38 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
- Red Hat Security Advisory: Satellite 6.14 security and bug fix update · Red Hat · RHSA-2023:6818 · Oct 2, 2024 High
- Red Hat Security Advisory: Satellite 6.13.5 Async Security Update · Red Hat · RHSA-2023:5931 · Oct 2, 2024 High
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- docs.djangoproject.com Vendor Advisory
- groups.google.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.netapp.com
- www.djangoproject.com Vendor Advisory