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

Published May 5, 2026
·
Updated

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.

Affected Software

3 affected components
Django Django<6.0.5, <5.2.14
djangoproject Django>=5.2<5.2.14
djangoproject Django>=6.0<6.0.5

Event History

May 5, 2026
CVE Published
via MITRE·02:49 PM
Data Sourced
via MITRE·02:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-5766?

CVE-2026-5766 is classified as a potential denial-of-service vulnerability that affects specific versions of Django.

2

How do I fix CVE-2026-5766?

To fix CVE-2026-5766, you should upgrade to Django version 6.0.5 or 5.2.14 or later.

3

What is the impact of CVE-2026-5766?

The impact of CVE-2026-5766 allows attackers to bypass the file upload memory size limit, potentially leading to denial-of-service.

4

Which versions of Django are affected by CVE-2026-5766?

Django versions before 6.0.5 and 5.2 before 5.2.14 are affected by CVE-2026-5766.

5

Is CVE-2026-5766 a zero-day vulnerability?

No, CVE-2026-5766 is not a zero-day vulnerability as it has been publicly disclosed and patches are available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203