Live threats

All CVEs / Djangoproject

CVE-2023-31047Djangoproject Django

Critical 9.8 No auth needed

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
Weakness (CWE)
CWE-20, CWE-862
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
djangoprojectdjango≥ 3.2 < 3.2.19
djangoprojectdjango≥ 4.0 < 4.1.9
djangoprojectdjango4.2
djangoprojectdjango4.2
djangoprojectdjango4.2
fedoraprojectfedora38

Official advisories

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.