CVE-2026-5766

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

Configuration 1 (hide)

OR cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*

History

26 Oct 2026, 19:10

Type Values Removed Values Added
Summary
  • (es) Se descubrió un problema en 6.0 anterior a 6.0.5 y 5.2 anterior a 5.2.14. Las solicitudes ASGI con un encabezado ’Content-Length’ faltante o subestimado pueden eludir el límite de ’FILE_UPLOAD_MAX_MEMORY_SIZE’, cargando potencialmente archivos grandes en la memoria y causando degradación del servicio. Como recordatorio, Django espera que se configure un límite a nivel del servidor web en lugar de depender únicamente de ’FILE_UPLOAD_MAX_MEMORY_SIZE’. Series de Django anteriores y no compatibles (como 5.0.x, 4.1.x y 3.2.x) no fueron evaluadas y también pueden verse afectadas. Django desea agradecer a Kyle Agronick por informar este problema.

07 May 2026, 14:16

Type Values Removed Values Added
References () https://docs.djangoproject.com/en/dev/releases/security/ - () https://docs.djangoproject.com/en/dev/releases/security/ - Vendor Advisory
References () https://groups.google.com/g/django-announce - () https://groups.google.com/g/django-announce - Third Party Advisory
References () https://www.djangoproject.com/weblog/2026/may/05/security-releases/ - () https://www.djangoproject.com/weblog/2026/may/05/security-releases/ - Vendor Advisory
CPE cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
First Time Djangoproject django
Djangoproject

05 May 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-05 16:16

Updated : 2026-10-26 19:10


NVD link : CVE-2026-5766

Mitre link : CVE-2026-5766

CVE.ORG link : CVE-2026-5766


JSON object : View

Products Affected

djangoproject

  • django
CWE
CWE-130

Improper Handling of Length Parameter Inconsistency