The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5766

CVE-2026-5766: Djangoproject Django DOS Vulnerability

CVE-2026-5766 is a denial of service vulnerability in Djangoproject Django affecting ASGI requests with missing Content-Length headers that bypass memory limits. This article covers technical details, affected versions, and mitigations.

Published: May 7, 2026

CVE-2026-5766 Overview

CVE-2026-5766 is a denial of service vulnerability in the Django web framework affecting versions 6.0 before 6.0.5 and 5.2 before 5.2.14. The flaw allows ASGI requests with a missing or understated Content-Length header to bypass the FILE_UPLOAD_MAX_MEMORY_SIZE limit. Attackers can submit oversized file uploads that load into memory, causing service degradation. The vulnerability is tracked under [CWE-130: Improper Handling of Length Parameter Inconsistency]. Django credits Kyle Agronick for reporting the issue. Earlier unsupported series including 5.0.x, 4.1.x, and 3.2.x were not evaluated and may also be affected.

Critical Impact

Remote unauthenticated attackers can exhaust server memory by sending crafted ASGI uploads, leading to denial of service against Django applications.

Affected Products

  • Django 6.0 before 6.0.5
  • Django 5.2 before 5.2.14
  • Earlier unsupported series (5.0.x, 4.1.x, 3.2.x) potentially affected

Discovery Timeline

  • 2026-05-05 - Django releases security patch and publishes advisory
  • 2026-05-05 - CVE-2026-5766 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-5766

Vulnerability Analysis

The vulnerability resides in Django's ASGI request handling path for multipart file uploads. Django enforces FILE_UPLOAD_MAX_MEMORY_SIZE to determine when an upload is buffered in memory versus written to disk. Under ASGI, when a client omits the Content-Length header or sends a value smaller than the actual body size, Django fails to apply the in-memory limit correctly. The framework continues reading streamed body chunks into memory beyond the configured threshold.

This behavior maps to [CWE-130: Improper Handling of Length Parameter Inconsistency]. An attacker exploits the mismatch between the declared and actual transfer length to force the application server to allocate large amounts of memory per request. Repeated requests can exhaust available memory and degrade or crash the worker process.

Root Cause

The root cause is incomplete validation of the request body size in the ASGI handler. Django relied on Content-Length to gate memory buffering against FILE_UPLOAD_MAX_MEMORY_SIZE. When the header is missing or understated, the size check is bypassed during chunked or streamed reads. The Django security team reiterates that operators should also configure request size limits at the web server or reverse proxy layer.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker sends an HTTP POST request to any Django endpoint that accepts file uploads while running under an ASGI server such as Daphne or Uvicorn. The request omits Content-Length or provides a falsely low value, then streams a large multipart body. The Django ASGI handler buffers the data in memory, bypassing the configured upload size limit. Refer to the Django Weblog Security Releases for technical details.

Detection Methods for CVE-2026-5766

Indicators of Compromise

  • ASGI access logs showing POST requests with missing Content-Length headers and unusually long processing times.
  • Worker processes consuming memory significantly above baseline during multipart uploads.
  • Repeated 5xx errors or worker restarts correlated with upload endpoints.
  • Spikes in chunked transfer-encoded POST requests targeting upload-handling views.

Detection Strategies

  • Inspect reverse proxy and application logs for requests lacking Content-Length or using Transfer-Encoding: chunked against Django upload routes.
  • Monitor Python process memory growth per request using application performance monitoring agents.
  • Alert on Django worker OOM kills or systemd restarts on hosts running Daphne, Uvicorn, or Hypercorn.

Monitoring Recommendations

  • Track request body sizes at the WAF or reverse proxy level and flag mismatches with declared Content-Length.
  • Establish a baseline for memory consumption of ASGI workers and trigger alerts on sustained deviation.
  • Forward web server and Django logs to a centralized analytics platform for correlation against CVE-2026-5766 patterns.

How to Mitigate CVE-2026-5766

Immediate Actions Required

  • Upgrade Django to version 6.0.5 or 5.2.14 in all production environments.
  • Audit deployments running unsupported Django series (5.0.x, 4.1.x, 3.2.x) and plan upgrades to a supported release.
  • Enforce request body size limits at the web server, reverse proxy, or load balancer layer.
  • Restart ASGI workers after applying the patch to ensure the fix is loaded.

Patch Information

Django released fixed versions 6.0.5 and 5.2.14 on May 5, 2026. Details and download links are available in the Django Security Release Notes and the Django Weblog Security Releases. Apply the upgrade through your dependency manager and redeploy ASGI services.

Workarounds

  • Configure a maximum request body size in the front-end web server (for example, client_max_body_size in nginx) to reject oversized uploads before they reach Django.
  • Place Django ASGI services behind a reverse proxy that validates Content-Length and rejects malformed or chunked requests where not required.
  • Restrict access to upload endpoints with authentication or rate limiting until patched versions are deployed.
bash
# Example nginx configuration to enforce a request size limit
http {
    client_max_body_size 10m;

    server {
        listen 443 ssl;
        server_name app.example.com;

        location / {
            proxy_pass http://django_asgi_upstream;
            proxy_set_header Host $host;
            proxy_request_buffering on;
        }
    }
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechDjangoproject Django

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS: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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-130
  • Technical References
  • Django Announcement Group
  • Vendor Resources
  • Django Security Release Notes

  • Django Weblog Security Releases
  • Related CVEs
  • CVE-2026-25673: Djangoproject Django DoS Vulnerability

  • CVE-2025-64460: Django XML Deserializer DOS Vulnerability

  • CVE-2024-24680: Django intcomma Filter DoS Vulnerability

  • CVE-2024-38875: Django DoS Vulnerability in urlize Functions
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English