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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-05 · Modified: 2026-05-06
- Aliases: GHSA-w26r-rmm8-9c29, BIT-django-2026-5766, PYSEC-2026-54, UBUNTU-CVE-2026-5766, DEBIAN-CVE-2026-5766, CGA-48f5-fgg4-xm37, CGA-547q-qj4g-wqxm, CGA-87w4-x3c3-g79w, CGA-8mvr-g6h5-r2gm, CGA-f25j-xg2g-wx82, CGA-f3w9-6f4p-vvjp, CGA-fhx6-pph5-6x62, CGA-gw2q-rc5c-j3vh, CGA-qrp5-5f4p-56v2, CGA-w4xg-6r39-6jm7, CGA-2jff-342m-mmr4, CGA-4r56-6322-6vc5, CGA-58vx-g7wr-2p47, CGA-6r9m-2fp6-58pw, CGA-cp56-83pm-w54p, CGA-g855-577q-xfj5, CGA-pvxj-8q2g-5jhm, CGA-x85r-8p7w-6x78, ALPINE-CVE-2026-5766
- Record: https://cvemate.com/vulnerability/CVE-2026-5766 · JSON: https://cvemate.com/vulnerability/CVE-2026-5766/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) 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
- EPSS: 0.439%, percentile 39.952%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine py3-django (Alpine Linux): \< 5.2.14-r0
- chainguard authentik-2025.12 (Chainguard): \< 2025.12.4-r9
- chainguard authentik-2026.2 (Chainguard): \< 2026.2.1-r9
- chainguard authentik-fips-2025.12 (Chainguard): \< 2025.12.4-r7
- chainguard authentik-fips-2026.2 (Chainguard): \< 2026.2.1-r7
- chainguard py3-django (Chainguard): \< 6.0.5-r0
- chainguard py3.12-django (Chainguard): \< 6.0.5-r0
- chainguard py3.13-django (Chainguard): \< 6.0.5-r0
- wolfi py3-django (Wolfi): \< 6.0.5-r0
- wolfi py3.12-django (Wolfi): \< 6.0.5-r0
- wolfi py3.13-django (Wolfi): \< 6.0.5-r0
- debian python-django (Debian): All versions (No fix recorded) \| \< 3:5.2.14-1
- ubuntu python-django (Ubuntu): All versions (No fix recorded) \| \< 2:3.2.12-2ubuntu1.27 \| \< 3:4.2.11-1ubuntu1.16 \| \< 3:5.2.4-1ubuntu2.5 \| \< 3:5.2.9-0ubuntu4.1
- djangoproject django: ≥ 5.2, \< 5.2.14 \| ≥ 6.0, \< 6.0.5
- PyPI django (PyPI): ≥ 5.2, \< 5.2.14 \| ≥ 6.0, \< 6.0.5

## 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/>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-5766>
- <https://docs.djangoproject.com/en/dev/releases/security>
- <https://github.com/django/django>
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-54.yaml>
- <https://www.djangoproject.com/weblog/2026/may/05/security-releases>
- <https://github.com/advisories/GHSA-w26r-rmm8-9c29>
- <https://ubuntu.com/security/CVE-2026-5766>
- <https://www.cve.org/CVERecord?id=CVE-2026-5766>
- <https://ubuntu.com/security/notices/USN-8232-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-5766>
- <https://github.com/django/django/>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5766.json>
- <https://pypi.org/project/Django/>
- <https://security.alpinelinux.org/vuln/CVE-2026-5766>

---

Data as of 2026-12-05T10:02:38.285Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
