CVE-2022-41323 Django denial-of-service vulnerability in internationalized URLs

High 7.5 Published Updated

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.

PackageAffectedFixed in
django BitnamiFrom 3.2.03.2.16, 4.0.8, 4.1.2
django PyPIFrom 3.23.2.16, 4.0.8, 4.1.2
django PyPIFrom 3.23.2.16
django PyPIFrom 4.04.0.8
django PyPIFrom 4.14.1.2
Django PyPIFrom 3.23.2.16
2 more packages
Django PyPIFrom 4.04.0.8
Django PyPIFrom 4.14.1.2
Linux distribution packages (1)
python-Django openSUSE:TumbleweedAll versions4.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.

All Djangoproject Django vulnerabilities

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.

Is CVE-2022-41323 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free