Wiz Agents & Workflows are here

CVE-2023-31047
Django vulnerability analysis and mitigation

Overview

CVE-2023-31047 affects Django versions 3.2 before 3.2.19, 4.x before 4.1.9, and 4.2 before 4.2.1. The vulnerability was discovered by Moataz Al-Sharida and nawaik, and disclosed on May 3, 2023. The issue involves a potential validation bypass when uploading multiple files using one form field, where forms.FileField or forms.ImageField only validated the last uploaded file despite documentation suggesting otherwise (Django Security).

Technical details

The vulnerability stems from a discrepancy between Django's implementation and documentation regarding multiple file uploads. While Django's forms.FileField and forms.ImageField only validated the last uploaded file, the documentation suggested multiple file upload support was available. The issue has been assigned a CVSS v3.1 base score of 9.8 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) (NVD).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The severity is rated as CRITICAL with a CVSS score of 9.8, indicating the highest level of potential impact (NetApp Advisory).

Mitigation and workarounds

To address this vulnerability, Django implemented changes where ClearableFileInput and FileInput form widgets now raise ValueError when the multiple HTML attribute is set on them. Users can prevent this exception and maintain the old behavior by setting allow_multiple_selected to True. The fix is available in Django versions 3.2.19, 4.1.9, and 4.2.1 (Django Security).

Additional resources


SourceThis report was generated using AI

Related Django vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-25673HIGH7.5
  • DjangoDjango
  • py3-django
NoYesMar 03, 2026
CVE-2026-1285HIGH7.5
  • DjangoDjango
  • label-studio
NoYesFeb 03, 2026
CVE-2026-1312MEDIUM5.4
  • DjangoDjango
  • py3-django
NoYesFeb 03, 2026
CVE-2026-1287MEDIUM5.4
  • DjangoDjango
  • python-django5
NoYesFeb 03, 2026
CVE-2026-25674LOW3.7
  • DjangoDjango
  • django
NoYesMar 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management