CVE-2026-5766: CWE-130: Improper Handling of Length Parameter Inconsistency in djangoproject Django
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.
AI Analysis
Technical Summary
This vulnerability (CWE-130) affects Django web framework versions 6.0 prior to 6.0.5 and 5.2 prior to 5.2.14. When processing ASGI requests, if the Content-Length header is missing or understated, the FILE_UPLOAD_MAX_MEMORY_SIZE limit can be bypassed, allowing large file uploads to be loaded into memory. This can degrade service availability due to excessive memory consumption. The issue was reported by Kyle Agronick. Earlier unsupported Django versions may also be affected but were not evaluated. Django advises enforcing upload size limits at the web server level rather than relying solely on Django's internal limit.
Potential Impact
The vulnerability allows attackers to bypass Django's internal file upload memory size limit by manipulating the Content-Length header in ASGI requests. This can cause large files to be loaded into memory, leading to potential service degradation or denial of service due to resource exhaustion. There is no indication of confidentiality or integrity impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the official Django vendor advisory for current remediation guidance. Meanwhile, Django recommends configuring file upload size limits at the web server level to mitigate the risk of large uploads consuming excessive memory. Monitor vendor channels for updates and apply official fixes once available.
CVE-2026-5766: CWE-130: Improper Handling of Length Parameter Inconsistency in djangoproject Django
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CWE-130) affects Django web framework versions 6.0 prior to 6.0.5 and 5.2 prior to 5.2.14. When processing ASGI requests, if the Content-Length header is missing or understated, the FILE_UPLOAD_MAX_MEMORY_SIZE limit can be bypassed, allowing large file uploads to be loaded into memory. This can degrade service availability due to excessive memory consumption. The issue was reported by Kyle Agronick. Earlier unsupported Django versions may also be affected but were not evaluated. Django advises enforcing upload size limits at the web server level rather than relying solely on Django's internal limit.
Potential Impact
The vulnerability allows attackers to bypass Django's internal file upload memory size limit by manipulating the Content-Length header in ASGI requests. This can cause large files to be loaded into memory, leading to potential service degradation or denial of service due to resource exhaustion. There is no indication of confidentiality or integrity impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the official Django vendor advisory for current remediation guidance. Meanwhile, Django recommends configuring file upload size limits at the web server level to mitigate the risk of large uploads consuming excessive memory. Monitor vendor channels for updates and apply official fixes once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- DSF
- Date Reserved
- 2026-04-07T19:29:07.042Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fa1920cbff5d86100ff72c
Added to database: 5/5/2026, 4:21:52 PM
Last enriched: 5/5/2026, 4:37:57 PM
Last updated: 5/6/2026, 3:55:04 AM
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.