VDB

CVE-2023-31047

CVE-2023-31047 PUBLISHED CVSS 9.8 CRITICAL

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

Reported by mitre · Published May 7, 2023

Django is fixed in 4.2.1, 4.1.9 and 3.2.19 (PyPI)

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 versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
DjangoPyPI4.2.1, 4.1.9, 3.2.19

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
PyPIDjango3.2a1, 4.0a1, 4.2a1
n/an/a*

Timeline

  • May 3, 2023 CVE Published
  • May 7, 2023 EPSS Score (30 in total, the first dated here)
  • May 7, 2023 PoC Published (2 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (8 in total, the first dated here)
  • Jun 17, 2026 CVE Updated
  • Oct 13, 2026 Distribution Patch (3 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-31047
vulnetix vdb fixes CVE-2023-31047

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-31047/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›