CVE catalog

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 l

[CVE catalog]

Severity
Medium · CVSS 6.3CVSS: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
Published
Source
[NVD] · [CVE record]
EPSS
0.42% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-djangosid3:5.2.18-1fixed
Debianpython-djangoforky3:5.2.17-2fixed
Debianpython-djangotrixie3:4.2.28-0+deb13u2vulnerable
Debianpython-djangotrixie-security3:4.2.28-0+deb13u1vulnerable
Debianpython-djangobookworm3:3.2.25-0+deb12u3vulnerable
Debianpython-djangobookworm-security3:3.2.25-0+deb12u6vulnerable
Cpepython-djangoNot reported3:4.2.11-1ubuntu1.16fixed
Cpepython-django-docNot reported3:4.2.11-1ubuntu1.16fixed
Cpepython3-djangoNot reported3:4.2.11-1ubuntu1.16fixed
Cpepython-djangoNot reportedNot reportedvulnerable
CpedjangoNot reported5.2.14fixed
CpedjangoNot reported6.0.5fixed
Ubuntupython-djangopro1:1.11.22-1ubuntu1vulnerable
Ubuntupython-djangopro2:2.2.6-1ubuntu1vulnerable
Ubuntupython-djangopro2:2.2.9-2ubuntu1vulnerable
Ubuntupython-djangopro2:2.2.10-1vulnerable
Ubuntupython-djangopro2:2.2.10-1ubuntu1vulnerable
Ubuntupython-djangopro2:2.2.11-1vulnerable
Ubuntupython-djangopro2:2.2.12-1vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.1vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.2vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.3vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.4vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.5vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.6vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.7vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.8vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.9vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.10vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.11vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.12vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.13vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.14vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.15vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.16vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.17vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.18vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.19vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.20vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.21vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.22vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.23vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.24vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.25vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.26vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.27vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.28vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29+esm1vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29+esm2vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29+esm3vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29+esm4vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29+esm5vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29+esm6vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29+esm7vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29+esm8vulnerable
Ubuntupython-djangopro2:2.2.12-1ubuntu0.29+esm10vulnerable
Ubuntupython-django22.042:2.2.24-1ubuntu1vulnerable
Ubuntupython-django22.042:3.2.12-2vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.1vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.2vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.3vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.4vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.5vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.6vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.7vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.8vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.9vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.10vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.11vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.12vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.13vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.14vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.15vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.16vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.17vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.18vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.19vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.20vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.21vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.22vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.23vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.24vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.25vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.26vulnerable
Ubuntupython-django22.042:3.2.12-2ubuntu1.27fixed
Ubuntupython-django24.043:4.2.4-1ubuntu2vulnerable
Ubuntupython-django24.043:4.2.8-1vulnerable
Ubuntupython-django24.043:4.2.9-1vulnerable
Ubuntupython-django24.043:4.2.11-1vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.1vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.2vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.3vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.4vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.5vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.6vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.7vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.8vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.9vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.10vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.11vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.12vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.13vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.14vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.15vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.16fixed
Ubuntupython-django25.103:4.2.18-1ubuntu1vulnerable
Ubuntupython-django25.103:4.2.18-1ubuntu1.1vulnerable
Ubuntupython-django25.103:5.2.4-1vulnerable
Ubuntupython-django25.103:5.2.4-1ubuntu1vulnerable
Ubuntupython-django25.103:5.2.4-1ubuntu2vulnerable
Ubuntupython-django25.103:5.2.4-1ubuntu2.1vulnerable
Ubuntupython-django25.103:5.2.4-1ubuntu2.2vulnerable
Ubuntupython-django25.103:5.2.4-1ubuntu2.3vulnerable
Ubuntupython-django25.103:5.2.4-1ubuntu2.4vulnerable
Ubuntupython-django25.103:5.2.4-1ubuntu2.5fixed
Ubuntupython-django26.043:5.2.4-1ubuntu2vulnerable
Ubuntupython-django26.043:5.2.4-1ubuntu3vulnerable
Ubuntupython-django26.043:5.2.9-0ubuntu1vulnerable
Ubuntupython-django26.043:5.2.9-0ubuntu2vulnerable
Ubuntupython-django26.043:5.2.9-0ubuntu3vulnerable
Ubuntupython-django26.043:5.2.9-0ubuntu4vulnerable
Ubuntupython-django26.043:5.2.9-0ubuntu4.1fixed
CpedjangoNot reported6.0.5fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-djangosourcesid3:5.2.14-1not yet assignedNot reported[1135755]
Debianpython-djangosourceforky3:5.2.14-1not yet assignedNot reported[1135755]
Debianpython-djangosourcetrixie(unfixed)not yet assignedNot reported[1135755]
Debianpython-djangosourcebookworm(unfixed)not yet assignedNot reported[1135755]
Cpepython-djangocpeNot reported3:4.2.11-1ubuntu1.16Not reportedNot reportedNot reported
Cpepython-django-doccpeNot reported3:4.2.11-1ubuntu1.16Not reportedNot reportedNot reported
Cpepython3-djangocpeNot reported3:4.2.11-1ubuntu1.16Not reportedNot reportedNot reported
CpedjangocpeNot reported5.2.14Not reportedNot reportedNot reported
CpedjangocpeNot reported6.0.5Not reportedNot reportedNot reported
Ubuntupython-djangodeb22.042:3.2.12-2ubuntu1.27Not reportedUBUNTU-CVE-2026-5766Not reported
Ubuntupython-djangodeb24.043:4.2.11-1ubuntu1.16Not reportedUBUNTU-CVE-2026-5766Not reported
Ubuntupython-djangodeb25.103:5.2.4-1ubuntu2.5Not reportedUBUNTU-CVE-2026-5766Not reported
Ubuntupython-djangodeb26.043:5.2.9-0ubuntu4.1Not reportedUBUNTU-CVE-2026-5766Not reported
CpedjangocpeNot reported6.0.5Not reportedNVD-CVE-2026-5766Not reported

[Debian bug #1135755]

Notes

[trixie] python-django: Minor issue [bookworm] python-django: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-django]Affected

    Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

  • Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Affected

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

[Debian 13 (Trixie)]

  • [python3-django]Affected

    Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

  • Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

Observed:

References