What’s Vulnerable › Vulnerabilities
CVE-2022-41323: Django denial-of-service vulnerability in internationalized URLs
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-10-16 · updated 2026-06-17
- Weakness: CWE-1333
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.
Affected products
- Django: from 3.2 before 3.2.16; from 4.0 before 4.0.8; from 4.1 before 4.1.2 — fixed in 3.2.16, 4.0.8, 4.1.2
- Pypi Django: from 3.2 before 3.2.16; from 4.0 before 4.0.8; from 4.1 before 4.1.2; 3.2, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.13 (+30) — fixed in 3.2.16, 4.0.8, 4.1.2
How to fix
Upgrade to a fixed version: Django 3.2.16, 4.0.8, 4.1.2; Pypi Django 3.2.16, 4.0.8, 4.1.2. Check the vendor advisory for mitigations.
References
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://github.com/django/django/commit/5b6b257fa7ec37ff27965358800c67e2dd11c924
- https://groups.google.com/forum/#%21forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FKYVMMR7RPM6AHJ2SBVM2LO6D3NGFY7B/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZS4G6NSZWPTVXMMZHJOJVQEPL3QTO77/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YJB6FUBBLVKKG655UMTLQNN6UQ6EDLSP/
- https://security.netapp.com/advisory/ntap-20221124-0001/
- https://www.djangoproject.com/weblog/2022/oct/04/security-releases/
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://github.com/django/django/commit/5b6b257fa7ec37ff27965358800c67e2dd11c924
Get alerted when CVE-2022-41323 or the next vulnerability affects your stack