Advisory

PYSEC-2023-222

Also known as: BIT-django-2023-46695, CVE-2023-46695, GHSA-qmf9-6jqf-j8fq

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2023-11-02 06:15 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 3.2, fixed 3.2.23, introduced 4.1, fixed 4.1.13, introduced 4.2, fixed 4.2.7 (ecosystem)

Fixed versions

3.2.23, 4.1.13, 4.2.7

Fix

  • Fixed version 3.2.23
    pip install --upgrade django==3.2.23
  • Fixed version 4.1.13
    pip install --upgrade django==4.1.13
  • Fixed version 4.2.7
    pip install --upgrade django==4.2.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences