Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-38875

CVE-2024-38875: Django DoS Vulnerability in urlize Functions

CVE-2024-38875 is a denial of service vulnerability in Django's urlize and urlizetrunc functions that can be exploited with inputs containing excessive brackets. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-38875 Overview

An issue was discovered in Django 4.2 before 4.2.14 and 5.0 before 5.0.7. The urlize and urlizetrunc template filters were subject to a potential denial of service attack via certain inputs with a very large number of brackets. This vulnerability allows remote attackers to cause resource exhaustion by sending specially crafted input strings that exploit the inefficient parsing behavior of these template filters.

Critical Impact

Remote attackers can cause denial of service by exploiting inefficient bracket parsing in Django's urlize and urlizetrunc template filters, potentially rendering affected web applications unavailable.

Affected Products

  • Django versions 4.2 before 4.2.14
  • Django versions 5.0 before 5.0.7
  • Applications using urlize or urlizetrunc template filters with user-controlled input

Discovery Timeline

  • July 9, 2024 - Django Project releases security advisory and patches
  • July 10, 2024 - CVE-2024-38875 published to NVD
  • November 4, 2025 - Last updated in NVD database

Technical Details for CVE-2024-38875

Vulnerability Analysis

This vulnerability is classified as an Algorithmic Complexity Attack (CWE-130: Improper Handling of Length Parameter Inconsistency). The urlize and urlizetrunc template filters in Django are designed to convert URLs in plain text into clickable links. However, the parsing algorithm used to process brackets in user input exhibits poor computational complexity when handling strings with an extremely large number of brackets.

When a malicious input containing thousands or millions of nested or sequential brackets is processed, the algorithm's time complexity grows exponentially, consuming excessive CPU resources. This can lead to application hangs, timeouts, and ultimately denial of service for legitimate users.

Root Cause

The root cause lies in the inefficient handling of bracket characters within the URL parsing logic of urlize and urlizetrunc functions. The algorithm fails to implement proper limits or optimizations when encountering large quantities of bracket characters, leading to excessive processing time and resource consumption. This is a classic example of an algorithmic complexity vulnerability where specially crafted input can trigger worst-case algorithmic behavior.

Attack Vector

The attack can be executed remotely over the network without authentication. An attacker needs to identify an endpoint where user input is processed through urlize or urlizetrunc template filters and then submit crafted payloads containing a very large number of bracket characters. Common attack scenarios include:

  • Comment forms that render user input using urlize
  • User profile descriptions processed with urlizetrunc
  • Forum posts or chat messages that auto-link URLs
  • Any template rendering user-controlled content with these filters

The attack requires no special privileges and exploits the web application's normal functionality, making it difficult to distinguish from legitimate traffic without specific monitoring.

Detection Methods for CVE-2024-38875

Indicators of Compromise

  • Unusual CPU spikes on web application servers during request processing
  • Web server timeouts or slow response times correlating with specific request patterns
  • Request payloads containing abnormally large numbers of bracket characters ((, ), [, ], {, })
  • Error logs showing template rendering timeouts or memory exhaustion

Detection Strategies

  • Monitor request payloads for strings containing excessive bracket characters (threshold: >1000 brackets)
  • Implement request timeout monitoring to detect abnormally long template rendering times
  • Deploy web application firewall (WAF) rules to flag or block requests with suspicious bracket patterns
  • Review Django application logs for template rendering errors or timeouts

Monitoring Recommendations

  • Enable detailed logging for Django template processing in production environments
  • Set up alerting for CPU utilization anomalies on application servers
  • Monitor response time metrics and establish baselines to detect degradation
  • Track error rates for timeout-related HTTP status codes (504, 503)

How to Mitigate CVE-2024-38875

Immediate Actions Required

  • Upgrade Django to version 4.2.14 or later for Django 4.2.x series
  • Upgrade Django to version 5.0.7 or later for Django 5.0.x series
  • Audit templates using urlize or urlizetrunc filters with user-controlled input
  • Implement input length limits on fields processed by affected template filters

Patch Information

The Django Project has released security patches addressing this vulnerability. Patched versions include Django 4.2.14 and Django 5.0.7 or later. Detailed patch information and security release notes are available through the Django Security Release Notes and the Django Blog Security Releases. NetApp has also issued a related advisory at NetApp Security Advisory NTAP-20240808-0005.

Workarounds

  • Implement input validation to limit the number of bracket characters in user-submitted content before template processing
  • Use custom template filters that sanitize or truncate bracket sequences before calling urlize or urlizetrunc
  • Deploy request size limits and timeouts at the web server or reverse proxy level
  • Consider disabling urlize and urlizetrunc filters for user-controlled content until patches can be applied
bash
# Upgrade Django to patched version
pip install --upgrade Django>=4.2.14

# Or for Django 5.0 series
pip install --upgrade Django>=5.0.7

# Verify installed version
python -c "import django; print(django.VERSION)"

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 Probability0.34%

  • 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
  • CWE-130
  • Technical References
  • Django Announce Google Group

  • NetApp Security Advisory NTAP-20240808-0005
  • Vendor Resources
  • Django Security Release Notes

  • Django Blog 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-56374: Django IPv6 Validation DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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