CVE-2023-46695
HIGH 7.5CVSS 3.1Django potential denial of service vulnerability in UsernameField on Windows
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.
- Published
- 2 Nov 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-400CWE-770
- Also known as
- BIT-django-2023-46695GHSA-qmf9-6jqf-j8fqPYSEC-2023-222
- Sources
- NVDJSONOSV GHSA-qmf9-6jqf-j8fqJSONOSV PYSEC-2023-222JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 3.2, < 3.2.23 | 3.2.23 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 4.1, < 4.1.13 | 4.1.13 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 4.2., < 4.2.7 | 4.2.7 |
| OSV | PyPI | django | >= 3.2a1, < 3.2.23 | 3.2.23 |
| OSV | PyPI | django | >= 4.1a1, < 4.1.13 | 4.1.13 |
| OSV | PyPI | django | >= 4.2a1, < 4.2.7 | 4.2.7 |
| OSV | PyPI | django | >= 3.2, < 3.2.23; >= 4.1, < 4.1.13; >= 4.2, < 4.2.7 | 3.2.23, 4.1.13, 4.2.7 |
References
- https://docs.djangoproject.com/en/4.2/releases/security/ · Patch, WEB
- https://groups.google.com/forum/#%21forum/django-announce · Permissions Required, WEB
- https://security.netapp.com/advisory/ntap-20231214-0001/ · WEB
- https://www.djangoproject.com/weblog/2023/nov/01/security-releases/ · Patch, Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2023-46695 · ADVISORY
- https://github.com/django/django/commit/048a9ebb6ea468426cb4e57c71572cbbd975517f · WEB
- https://github.com/django/django/commit/4965bfdde2e5a5c883685019e57d123a3368a75e · WEB
- https://github.com/django/django/commit/f9a7fb8466a7ba4857eaf930099b5258f3eafb2b · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-222.yaml · WEB
- https://groups.google.com/forum/#!forum/django-announce · WEB
- https://github.com/advisories/GHSA-qmf9-6jqf-j8fq · ADVISORY
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 2 Nov 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Nov 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Nov 2023)