A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-41990

CVE-2024-41990: Django Template Filter DoS Vulnerability

CVE-2024-41990 is a denial-of-service vulnerability in Django's urlize() and urlizetrunc() template filters that allows attackers to exhaust resources. This article covers technical details, affected versions, and mitigation.

Published: June 2, 2026

CVE-2024-41990 Overview

CVE-2024-41990 is a denial-of-service vulnerability in the Django web framework. The flaw affects the urlize() and urlizetrunc() template filters, which convert URLs and email addresses in text into clickable links. Attackers can submit very large inputs containing a specific sequence of characters to trigger excessive processing time. The issue impacts Django 5.0 before 5.0.8 and Django 4.2 before 4.2.15.

The vulnerability is categorized under [CWE-130] (Improper Handling of Length Parameter Inconsistency). Exploitation requires no authentication and can be performed remotely over the network against any Django application that renders user-supplied text through the affected filters.

Critical Impact

Remote unauthenticated attackers can cause sustained CPU exhaustion in Django applications, rendering web services unavailable to legitimate users.

Affected Products

  • Django 5.0 versions prior to 5.0.8
  • Django 4.2 versions prior to 4.2.15
  • NetApp products bundling vulnerable Django versions (per NetApp advisory NTAP-20240905-0007)

Discovery Timeline

  • 2024-08-06 - Django project releases security advisory and patched versions
  • 2024-08-07 - CVE-2024-41990 published to the National Vulnerability Database (NVD)
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2024-41990

Vulnerability Analysis

The urlize() and urlizetrunc() template filters scan input text and transform URL-like and email-like substrings into anchor tags. The filters perform multiple passes of regular expression matching and string manipulation on each candidate token. When the input contains very large strings with a specific sequence of characters, processing time grows disproportionately to input size, producing an algorithmic complexity attack.

This is a resource exhaustion flaw that targets CPU rather than memory. The attack does not compromise data confidentiality or integrity but degrades availability of any Django application that exposes templates using urlize on attacker-controlled fields. Common exposure points include comment systems, forum posts, chat messages, and user profile fields rendered with the filter.

Root Cause

The root cause is inefficient string handling within the urlize implementation in django/utils/html.py. The filter tokenizes input and applies repeated transformations to each token. Specific character sequences force the tokenizer into pathological processing paths, causing the per-token cost to scale poorly with input length.

Attack Vector

An attacker submits a crafted payload through any HTTP endpoint that ultimately renders the input through {{ value|urlize }} or {{ value|urlizetrunc:N }}. Typical vectors include form submissions, API request bodies, and message fields. Each request consumes worker process CPU for an extended period, and a small number of concurrent requests can saturate the application server. The vulnerability is described in the Django Weblog Security Update.

No verified public proof-of-concept code is available for this CVE. The Django security team has not published payload details to limit weaponization. Refer to the Django Security Release Notes for additional technical context.

Detection Methods for CVE-2024-41990

Indicators of Compromise

  • Sustained high CPU utilization on Django application workers without corresponding traffic increases
  • HTTP requests containing unusually large text fields submitted to endpoints that render urlize output
  • Worker processes exceeding configured request timeout thresholds on routes that previously responded quickly
  • Request bodies several kilobytes or larger targeting comment, message, or profile endpoints

Detection Strategies

  • Inspect WSGI or ASGI access logs for requests with abnormally large payload sizes against templated views
  • Profile worker process CPU time per request and flag outliers on endpoints that use the urlize or urlizetrunc filters
  • Deploy WAF rules limiting request body size on form and API endpoints that accept free-form text
  • Audit templates with grep -r "urlize" templates/ to enumerate the application's exposure surface

Monitoring Recommendations

  • Alert on application worker CPU saturation paired with elevated request latency on user-content endpoints
  • Track 95th and 99th percentile response times per route and investigate sustained regressions
  • Monitor worker timeouts, restarts, and 502 or 504 responses from upstream proxies fronting Django
  • Log Django version strings from deployment manifests to confirm patch status across environments

How to Mitigate CVE-2024-41990

Immediate Actions Required

  • Upgrade Django to version 5.0.8 or 4.2.15, whichever matches the deployed release series
  • Inventory all templates using urlize or urlizetrunc and identify those rendering untrusted input
  • Enforce strict maximum length limits on form and API fields that flow into affected filters
  • Place a reverse proxy or WAF in front of Django to cap request body size and rate-limit text-heavy endpoints

Patch Information

The Django project addressed CVE-2024-41990 in the 5.0.8 and 4.2.15 releases published on August 6, 2024. Upgrade with pip install --upgrade "Django>=4.2.15,<5.0" for the 4.2 series or pip install --upgrade "Django>=5.0.8" for the 5.0 series. Verify the installed version with python -m django --version. Patch details are documented in the Django Weblog Security Update and the NetApp Security Advisory NTAP-20240905-0007.

Workarounds

  • Remove urlize and urlizetrunc from templates that render untrusted text until patching is complete
  • Truncate user input server-side before it reaches the template layer using model field max_length constraints
  • Apply request body size limits at the web server tier, for example client_max_body_size in nginx
  • Configure per-request CPU timeouts in the WSGI server, such as --timeout 30 for Gunicorn workers
bash
# Upgrade Django to a patched release
pip install --upgrade "Django>=4.2.15,<5.0"   # 4.2 LTS series
pip install --upgrade "Django>=5.0.8"          # 5.0 series

# Verify the installed version
python -m django --version

# Example nginx limit to reduce attack surface
# Add inside the server or location block:
# client_max_body_size 64k;

# Example Gunicorn worker timeout
gunicorn myproject.wsgi --workers 4 --timeout 30

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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.33%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo

  • CWE-130
  • Technical References
  • Django Announcements Forum

  • NetApp Security Advisory NTAP-20240905-0007
  • Vendor Resources
  • Django Security Release Notes

  • Django Weblog Security Update
  • Related CVEs
  • CVE-2026-5766: Djangoproject Django DOS Vulnerability

  • CVE-2026-25673: Djangoproject Django DoS Vulnerability

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

  • CVE-2024-24680: Django intcomma Filter DoS Vulnerability
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