6.3medium
Potential denial-of-service vulnerability in ASGI requests via file upload limit bypass
- Severity
- 6.3medium CVSS:4.0 by DSF
- Exploit likelihood
- 0.42% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- DSF
- Also known as
- GHSA-w26r-rmm8-9c29BIT-DJANGO-2026-5766PYSEC-2026-54
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| django | from 6.0 before 6.0.5, from 5.2 before 5.2.14 Not affected: 6.0.5, 5.2.14 | CVE List |
| django (PyPI) | from 6.0 before 6.0.5, from 5.2 before 5.2.14 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 5.2 before 5.2.14, from 6.0 before 6.0.5 | NVD |
| django (Bitnami) | from 5.2.0 before 5.2.14, from 6.0.0 before 6.0.5 | Bitnami Vulnerability Database |
All scores
| DSF | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| DSF | 6.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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 thanks Kyle Agronick for reporting this issue.
NVD (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.
References
| https://docs.djangoproject.com/en/dev/releases/security/ | advisory, vendor-advisory | |
| https://groups.google.com/g/django-announce | advisory, mailing-list, third-party-advisory, web | |
| https://www.djangoproject.com/weblog/2026/may/05/security-releases/ | advisory, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-5766 | advisory, web | |
| https://docs.djangoproject.com/en/dev/releases/security | web | |
| https://github.com/django/django | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-54.yaml | web | |
| https://www.djangoproject.com/weblog/2026/may/05/security-releases | web | |
| https://github.com/advisories/GHSA-w26r-rmm8-9c29 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-5766 changed 2026-05-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w26r-rmm8-9c29 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-5766 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-54 changed 2026-06-10 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2026-5766 changed 2026-09-08 | Apache-2.0 |