Feed
9.8CRITICAL

CVE-2023-31047Django bypasses validation when using one form field to upload multiple files

A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.5% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
1.5%
percentile 74%
Priority
26/100 medium
how it is computed
Fix
Named by a source
CVE published 7 May 2023

Reference

None of the "Needs attention" rules apply right now.

EPSS 1.5% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

Who should check

  • django (PyPI) pkg:pypi/django

    • Affected>= 3.2a1, < 3.2.19Fixed in3.2.19OSV (GHSA-r3xc-prgr-mg9p)
    • Affected>= 4.0a1, < 4.1.9Fixed in4.1.9OSV (GHSA-r3xc-prgr-mg9p)
    • Affected>= 4.2a1, < 4.2.1Fixed in4.2.1OSV (GHSA-r3xc-prgr-mg9p)
    • Affected>= 3.2, < 3.2.19Fixed in3.2.19OSV (PYSEC-2023-61)
    • Affected>= 4.0, < 4.1.9Fixed in4.1.9OSV (PYSEC-2023-61)
    • Affected>= 4.2, < 4.2.1Fixed in4.2.1OSV (PYSEC-2023-61)
    • Affected3.2a1, 3.2b1, 3.2rc1, 4.2a1, 4.2b1, 4.2rc1Fixed innot namedOSV (PYSEC-2023-61)

Confirmed facts

CVSS
9.8 CRITICAL (version 3.1)
Score from
GitHub Advisory Database (GHSA-r3xc-prgr-mg9p)
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Weakness
CWE-20

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)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.

Update history

No events recorded. Our history starts on 1 Jan 2025.

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 27 min ago · osv 27 min ago · nvd 88 min ago · epss 27 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-django-2023-31047, GHSA-r3xc-prgr-mg9p, PYSEC-2023-61