CVE-2022-41323 Django denial-of-service vulnerability in internationalized URLs
Attackers can cause denial of service in Django applications by exploiting the locale parameter in internationalized URLs, which is treated as a regular expression.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-41323?
CVE-2022-41323 is a high-severity denial of service vulnerability in Djangoproject Django, published on 16 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In Django 3.2 before 3.2.16, 4.0 before 4.0.8, and 4.1 before 4.1.2, internationalized URLs were subject to a potential denial of service attack via the locale parameter, which is treated as a regular expression.
Weakness: CWE-1333
Which versions are affected by CVE-2022-41323?
8 open source packages ship an affected version, including django and Django. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
django Bitnami | From 3.2.0 | 3.2.16, 4.0.8, 4.1.2 |
django PyPI | From 3.2 | 3.2.16, 4.0.8, 4.1.2 |
django PyPI | From 3.2 | 3.2.16 |
django PyPI | From 4.0 | 4.0.8 |
django PyPI | From 4.1 | 4.1.2 |
Django PyPI | From 3.2 | 3.2.16 |
2 more packages
Django PyPI | From 4.0 | 4.0.8 |
Django PyPI | From 4.1 | 4.1.2 |
Linux distribution packages (1)
python-Django openSUSE:Tumbleweed | All versions | 4.1.2-1.1 |
Products include Djangoproject Django.
How do I fix CVE-2022-41323?
Upgrade django to a fixed version for your release line: 3.2.16, 4.0.8 or 4.1.2.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-41323 being exploited?
There is no known exploitation of CVE-2022-41323 in the wild and no public exploit code.
Other vulnerabilities in Djangoproject Django
- CVE-2026-4277 Privilege abuse in GenericInlineModelAdmin
- CVE-2024-53908 Django SQL injection in HasKey(lhs, rhs) on Oracle
- CVE-2024-42005 Django SQL injection vulnerability
- CVE-2023-31047 Django bypasses validation when using one form field to upload multiple files
- CVE-2022-34265 Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection
Sources
Also known as BIT-django-2022-41323, CLSA-2025-1756426301, DEBIAN-CVE-2022-41323, GHSA-qrw5-5h28-6cmg, PYSEC-2022-304, UBUNTU-CVE-2022-41323 and 2 more.