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
    • 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-2022-41323

CVE-2022-41323: Django DOS Vulnerability via Locale Parameter

CVE-2022-41323 is a denial of service vulnerability in Django affecting internationalized URLs through the locale parameter treated as a regex. This article covers technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-41323 Overview

A denial of service vulnerability exists in Django's internationalized URLs functionality where the locale parameter is processed as a regular expression without proper escaping. This allows attackers to craft malicious locale values that trigger catastrophic backtracking in the regex engine, leading to resource exhaustion and service unavailability.

Critical Impact

Remote attackers can cause complete denial of service on Django applications using internationalized URLs by submitting specially crafted locale parameters that exploit regex complexity vulnerabilities.

Affected Products

  • Django 3.2 before 3.2.16
  • Django 4.0 before 4.0.8
  • Django 4.1 before 4.1.2

Discovery Timeline

  • 2022-10-04 - Django Project releases security patch
  • 2022-10-16 - CVE-2022-41323 published to NVD
  • 2025-05-14 - Last updated in NVD database

Technical Details for CVE-2022-41323

Vulnerability Analysis

This vulnerability is classified as CWE-1333 (Inefficient Regular Expression Complexity), commonly known as ReDoS (Regular Expression Denial of Service). The core issue lies in Django's URL resolver handling of internationalized URLs, where the language_prefix property value is passed directly to re.compile() without sanitization.

When Django processes internationalized URLs, it constructs a regular expression pattern using the locale parameter. An attacker can supply a specially crafted locale value containing regex metacharacters that cause exponential time complexity during pattern matching. This results in the regex engine entering a state of catastrophic backtracking, consuming excessive CPU resources and blocking the application from serving legitimate requests.

The vulnerability is remotely exploitable without authentication, requiring only network access to the affected Django application. The attack exclusively impacts availability—no data confidentiality or integrity compromise occurs.

Root Cause

The vulnerability stems from the LocalePrefixPattern class in django/urls/resolvers.py. The regex property method passes the language_prefix value directly to Python's re.compile() function without escaping regex special characters. This design flaw allows user-controllable input to be interpreted as a regular expression pattern rather than a literal string.

Attack Vector

An attacker can exploit this vulnerability by sending HTTP requests containing malicious locale parameters designed to trigger ReDoS. The attack does not require user interaction or authentication, making it straightforward to execute from any network location with access to the vulnerable application.

python
# Vulnerable code in django/urls/resolvers.py
     @property
     def regex(self):
         # This is only used by reverse() and cached in _reverse_dict.
-        return re.compile(self.language_prefix)
+        return re.compile(re.escape(self.language_prefix))

     @property
     def language_prefix:

Source: GitHub Django Commit Details

The fix applies re.escape() to the language_prefix value before passing it to re.compile(), ensuring all regex metacharacters are treated as literal characters.

Detection Methods for CVE-2022-41323

Indicators of Compromise

  • Unusual CPU spikes correlated with incoming HTTP requests containing abnormal locale parameters
  • Web server logs showing requests with exceptionally long or complex locale values in internationalized URL paths
  • Application timeouts or unresponsive behavior during request processing
  • Elevated memory consumption in Python/Django worker processes

Detection Strategies

  • Monitor web application firewalls (WAF) for requests containing regex metacharacters in locale-related URL segments
  • Implement request timeout thresholds to detect and terminate long-running regex operations
  • Analyze server logs for patterns of requests targeting internationalized URL endpoints with unusual parameter values
  • Deploy application performance monitoring (APM) to detect anomalous CPU utilization during URL resolution

Monitoring Recommendations

  • Configure alerting for sustained high CPU usage in Django application workers
  • Implement rate limiting on endpoints that process internationalized URLs
  • Enable detailed request logging to capture locale parameter values for forensic analysis
  • Monitor for patterns of repeated requests from single sources targeting i18n URL paths

How to Mitigate CVE-2022-41323

Immediate Actions Required

  • Upgrade Django to version 3.2.16, 4.0.8, or 4.1.2 or later immediately
  • Review application logs for evidence of exploitation attempts
  • Implement request timeouts at the web server or reverse proxy level
  • Consider temporarily disabling internationalized URLs if patching cannot be performed immediately

Patch Information

The Django Project released security patches on October 4, 2022, addressing this vulnerability across all supported release branches. The fix involves wrapping the language_prefix value with re.escape() before regex compilation.

Patched versions:

  • Django 3.2.16 for the 3.2.x LTS branch
  • Django 4.0.8 for the 4.0.x branch
  • Django 4.1.2 for the 4.1.x branch

For detailed information, see the Django Weblog Security Releases and Django Security Releases Documentation.

Workarounds

  • Deploy a web application firewall (WAF) with rules to sanitize or block requests containing regex metacharacters in locale parameters
  • Implement request timeout limits at the reverse proxy or load balancer level to prevent long-running regex operations
  • Restrict access to internationalized URL endpoints to trusted networks if public access is not required
  • Use input validation middleware to limit locale parameter length and character set
bash
# Configuration example - nginx timeout settings
location / {
    proxy_pass http://django_app;
    proxy_connect_timeout 10s;
    proxy_send_timeout 30s;
    proxy_read_timeout 30s;
}

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechDjango

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability8.11%

  • 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-Other

  • CWE-1333
  • Technical References
  • Django Announcement Forum

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20221124-0001
  • Vendor Resources
  • Django Security Releases Documentation

  • GitHub Django Commit Details

  • Django Weblog Security Releases
  • Related CVEs
  • CVE-2026-33034: Django DOS Vulnerability

  • CVE-2026-33033: Django MultiPartParser DOS Vulnerability

  • CVE-2025-14550: Django ASGIRequest DOS Vulnerability

  • CVE-2026-1285: Djangoproject Django 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