CVE-2026-5766
JSON

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 packageVersionsReported by
djangofrom 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.14GitHub Advisory Database, PyPA Advisory Database
djangoproject djangofrom 5.2 before 5.2.14, from 6.0 before 6.0.5NVD
django (Bitnami)from 5.2.0 before 5.2.14, from 6.0.0 before 6.0.5Bitnami Vulnerability Database

All scores

DSF5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
DSF6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHubmedium CVSS:4.0CVSS: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 DatabaseNot scored CVSS:4.0CVSS: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 Databasemedium rating

Classification

CWE-130

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

Sources

SourceRecordLicence
CVE ListCVE-2026-5766 changed 2026-05-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-w26r-rmm8-9c29 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-5766 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-54 changed 2026-06-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2026-5766 changed 2026-09-08Apache-2.0