Advisory

GHSA-qmf9-6jqf-j8fq

Also known as: BIT-django-2023-46695, CVE-2023-46695, PYSEC-2023-222

Summary

Django potential denial of service vulnerability in UsernameField on Windows

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

High Basis: The source's own band: HIGH

Dates

Published
2023-11-02 06:30 UTC
Modified
2024-09-20 16:07 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 3.2a1, fixed 3.2.23 (ecosystem)

Fixed versions

3.2.23

Fix

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

django

PyPI · All systems

Affected

  • introduced 4.1a1, fixed 4.1.13 (ecosystem)

Fixed versions

4.1.13

Fix

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

django

PyPI · All systems

Affected

  • introduced 4.2a1, fixed 4.2.7 (ecosystem)

Fixed versions

4.2.7

Fix

  • 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences