Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-5766: CWE-130: Improper Handling of Length Parameter Inconsistency in djangoproject Django

0
Medium
VulnerabilityCVE-2026-5766cvecve-2026-5766cwe-130
Published: Tue May 05 2026 (05/05/2026, 14:49:19 UTC)
Source: CVE Database V5
Vendor/Project: djangoproject
Product: 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

AILast updated: 05/05/2026, 16:37:57 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses