Vulnerability advisory
GHSA-qmf9-6jqf-j8fq
Django potential denial of service vulnerability in UsernameField on Windows
Also known as BIT-django-2023-46695CVE-2023-46695PYSEC-2023-222
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Affected versions
| Affected | Fixed in |
|---|---|
3.2a1 to before 3.2.23 | 3.2.23Advisories → |
4.1a1 to before 4.1.13 | 4.1.13Advisories → |
4.2a1 to before 4.2.7 | 4.2.7Advisories → |
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.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-46695 ↗
- Webgithub.com/django/django/commit/048a9ebb6ea468426cb4e57c71572cbbd975517f ↗
- Webgithub.com/django/django/commit/4965bfdde2e5a5c883685019e57d123a3368a75e ↗
- Webgithub.com/django/django/commit/f9a7fb8466a7ba4857eaf930099b5258f3eafb2b ↗
- Webdocs.djangoproject.com/en/4.2/releases/security ↗
- Packagegithub.com/django/django ↗
- Webgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-222.yaml ↗
- Webgroups.google.com/forum/#!forum/django-announce ↗
- Webgroups.google.com/forum/#%21forum/django-announce ↗
- Websecurity.netapp.com/advisory/ntap-20231214-0001 ↗
- Webwww.djangoproject.com/weblog/2023/nov/01/security-releases ↗