What’s Vulnerable › Vulnerabilities
CVE-2023-46695: Django potential denial of service vulnerability in UsernameField on Windows
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 49.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-11-02 · updated 2026-06-17
- Weakness: CWE-770
Description
An issue was discovered in Django 3.2 before 3.2.23, 4.1 before 4.1.13, and 4.2 before 4.2.7. The NFKC normalization is slow on Windows. As a consequence, django.contrib.auth.forms.UsernameField is subject to a potential DoS (denial of service) attack via certain inputs with a very large number of Unicode characters.
Affected products
- Django: from 3.2 before 3.2.23; from 4.1 before 4.1.13; from 4.2. before 4.2.7 — fixed in 3.2.23, 4.1.13, 4.2.7
- Pypi Django: from 3.2 before 3.2.23; from 4.1 before 4.1.13; from 4.2 before 4.2.7; 3.2, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.13 (+37) — fixed in 3.2.23, 4.1.13, 4.2.7
How to fix
Upgrade to a fixed version: Django 3.2.23, 4.1.13, 4.2.7; Pypi Django 3.2.23, 4.1.13, 4.2.7. Check the vendor advisory for mitigations.
References
- https://docs.djangoproject.com/en/4.2/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- https://security.netapp.com/advisory/ntap-20231214-0001/
- https://www.djangoproject.com/weblog/2023/nov/01/security-releases/
- https://docs.djangoproject.com/en/4.2/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- https://security.netapp.com/advisory/ntap-20231214-0001/
- https://www.djangoproject.com/weblog/2023/nov/01/security-releases/
Get alerted when CVE-2023-46695 or the next vulnerability affects your stack