CVE-2026-5766
Fixed in a distro release EPSS <1%CVSS 5.3
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.
Products: djangoproject django
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| PyPI | django | 6.0.5 |
| PyPI | django | 5.2.14 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | authentik-2025.12 | 2025.12.4-r9 |
| Chainguard | authentik-2026.2 | 2026.2.1-r9 |
| Chainguard | authentik-fips-2025.12 | 2025.12.4-r7 |
| Chainguard | authentik-fips-2026.2 | 2026.2.1-r7 |
| Chainguard | py3-django | 6.0.5-r0 |
| Chainguard | py3.12-django | 6.0.5-r0 |
| Chainguard | py3.13-django | 6.0.5-r0 |
| Debian 12 | python-django | no fix |
| Debian 13 | python-django | no fix |
| Debian 14 | python-django | 3:5.2.14-1 |
| Ubuntu 22.04 LTS | python-django | 2:3.2.12-2ubuntu1.27 |
| Ubuntu 24.04 LTS | python-django | 3:4.2.11-1ubuntu1.16 |
| Ubuntu 25.10 | python-django | 3:5.2.4-1ubuntu2.5 |
| Ubuntu 26.04 LTS | python-django | 3:5.2.9-0ubuntu4.1 |
| Ubuntu Pro 14.04 LTS | python-django | no fix |
| Ubuntu Pro 16.04 LTS | python-django | no fix |
| Ubuntu Pro 18.04 LTS | python-django | no fix |
| Ubuntu Pro 20.04 LTS | python-django | no fix |
| Wolfi | py3-django | 6.0.5-r0 |
| Wolfi | py3.12-django | 6.0.5-r0 |
| Wolfi | py3.13-django | 6.0.5-r0 |
| openSUSE Tumbleweed | python-Django | 5.2.14-1.1 |
| openSUSE Tumbleweed | python-Django4 | 4.2.30-2.1 |
| openSUSE Tumbleweed | python-Django5 | 5.2.16-1.1 |
| openSUSE Tumbleweed | python-Django6 | 6.0.5-1.1 |