CVE-2026-5766
Published:May 05, 2026
Updated:May 16, 2026
An issue was discovered in 6.0 before 6.0.5 and 5.2 before 5.2.14.
ASGI requests with a missing or understated "Content-Length" header can bypass the "FILE_UPLOAD_MAX_MEMORY_SIZE" limit, potentially loading large files into memory and causing service degradation. As a reminder, Django expects a limit to be configured at the web server level rather than solely relying on "FILE_UPLOAD_MAX_MEMORY_SIZE".
Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.
Django would like to thank Kyle Agronick for reporting this issue.
Affected Packages
django (CONDA):
Affected version(s) >=6.0 <6.0.5Fix Suggestion:
Update to version 6.0.5django (CONDA):
Affected version(s) >=5.2 <5.2.14Fix Suggestion:
Update to version 5.2.14https://github.com/django/django.git (GITHUB):
Affected version(s) >=5.2 <5.2.14Fix Suggestion:
Update to version 5.2.14https://github.com/django/django.git (GITHUB):
Affected version(s) >=6.0 <6.0.5Fix Suggestion:
Update to version 6.0.5django (PYTHON):
Affected version(s) >=5.2 <5.2.14Fix Suggestion:
Update to version 5.2.14django (PYTHON):
Affected version(s) >=6.0 <6.0.5Fix Suggestion:
Update to version 6.0.5Django (PYTHON):
Affected version(s) >=6.0 <6.0.5Fix Suggestion:
Update to version 6.0.5Django (PYTHON):
Affected version(s) >=5.2 <5.2.14Fix Suggestion:
Update to version 5.2.14Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Improper Handling of Length Parameter Inconsistency
EPSS
Base Score:
0.05