# CVE-2026-5766: Potential denial-of-service vulnerability in ASGI requests via file upload limit bypass

- Severity: Medium 6.3 (CVSS:4.0, scored by DSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-05-05T14:49:19.715Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-w26r-rmm8-9c29, BIT-DJANGO-2026-5766, PYSEC-2026-54
- Weaknesses: CWE-130
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: DSF

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

(As written by CVE List.)

## Affected

- django: from 6.0 before 6.0.5; from 5.2 before 5.2.14 (not affected: 6.0.5; 5.2.14)
- django (PyPI): from 6.0 before 6.0.5; from 5.2 before 5.2.14
- djangoproject django: from 5.2 before 5.2.14; from 6.0 before 6.0.5
- django (Bitnami): from 5.2.0 before 5.2.14; from 6.0.0 before 6.0.5

## Every score

- DSF: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- DSF: CVSS:4.0 6.3 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `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: 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: rating Medium

## 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

- CVE List: [CVE-2026-5766](https://www.cve.org/CVERecord?id=CVE-2026-5766), CVE Terms of Use, modified 2026-05-06
- GitHub Advisory Database: [GHSA-w26r-rmm8-9c29](https://github.com/advisories/GHSA-w26r-rmm8-9c29), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-5766](https://nvd.nist.gov/vuln/detail/CVE-2026-5766), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-54](https://osv.dev/vulnerability/PYSEC-2026-54), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2026-5766](https://osv.dev/vulnerability/BIT-DJANGO-2026-5766), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-5766 · Whole record: https://cve.day/CVE-2026-5766.json · Rebuilt by cve.day 2026-11-25T22:59:20.619Z
