Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2023-46695

CVE-2023-46695: Django potential denial of service vulnerability in UsernameField on Windows

November 2, 2023 (updated September 20, 2024)

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

  • docs.djangoproject.com/en/4.2/releases/security
  • github.com/advisories/GHSA-qmf9-6jqf-j8fq
  • github.com/django/django
  • github.com/django/django/commit/048a9ebb6ea468426cb4e57c71572cbbd975517f
  • github.com/django/django/commit/4965bfdde2e5a5c883685019e57d123a3368a75e
  • github.com/django/django/commit/f9a7fb8466a7ba4857eaf930099b5258f3eafb2b
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-222.yaml
  • groups.google.com/forum/
  • groups.google.com/forum/
  • nvd.nist.gov/vuln/detail/CVE-2023-46695
  • security.netapp.com/advisory/ntap-20231214-0001
  • www.djangoproject.com/weblog/2023/nov/01/security-releases

Code Behaviors & Features

Detect and mitigate CVE-2023-46695 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.2a1 before 3.2.23, all versions starting from 4.1a1 before 4.1.13, all versions starting from 4.2a1 before 4.2.7

Fixed versions

  • 3.2.23
  • 4.1.13
  • 4.2.7

Solution

Upgrade to versions 3.2.23, 4.1.13, 4.2.7 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/Django/CVE-2023-46695.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:58 +0000.