Vulnerability
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.
34 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALPINE-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…
- ALPINE-EDGE-CVE-2026-5766
- CGA-2jff-342m-mmr4
- CGA-48f5-fgg4-xm37
- CGA-4r56-6322-6vc5
- CGA-547q-qj4g-wqxm
- CGA-58vx-g7wr-2p47
- CGA-6r9m-2fp6-58pw
- CGA-87w4-x3c3-g79w
- CGA-8mvr-g6h5-r2gm
- CGA-cp56-83pm-w54p
- CGA-f25j-xg2g-wx82
- CGA-f3w9-6f4p-vvjp
- CGA-fhx6-pph5-6x62
- CGA-g855-577q-xfj5
- CGA-gw2q-rc5c-j3vh
- CGA-pvxj-8q2g-5jhm
- CGA-qrp5-5f4p-56v2
- CGA-w4xg-6r39-6jm7
- CGA-x85r-8p7w-6x78
-
DEBIAN-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…
-
GHSA-w26r-rmm8-9c29
Django has an Improper Handling of Length Parameter Inconsistency
-
OESA-2026-2217
python-django security update
-
OESA-2026-2218
python-django security update
-
OESA-2026-2219
python-django security update
-
OESA-2026-2220
python-django security update
-
OESA-2026-3074
python-django security update
-
PYSEC-2026-54
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…
-
UBUNTU-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…
-
USN-8232-1
python-django vulnerabilities
-
openSUSE-SU-2026:10708-1
python311-Django4-4.2.30-2.1 on GA media
-
openSUSE-SU-2026:10709-1
python313-Django6-6.0.5-1.1 on GA media
-
openSUSE-SU-2026:10718-1
python311-Django-5.2.14-1.1 on GA media
-
openSUSE-SU-2026:11270-1
python313-Django5-5.2.16-1.1 on GA media