Advisory

GHSA-53qw-q765-4fww

Also known as: BIT-django-2021-45115, CVE-2021-45115, PYSEC-2022-1

Summary

Denial-of-service in Django

Details

An issue was discovered in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1. UserAttributeSimilarityValidator incurred significant overhead in evaluating a submitted password that was artificially large in relation to the comparison values. In a situation where access to user registration was unrestricted, this provided a potential vector for a denial-of-service attack.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-01-12 19:20 UTC
Modified
2024-09-20 16:09 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2a1, fixed 2.2.26 (ecosystem)

Fixed versions

2.2.26

Fix

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

django

PyPI · All systems

Affected

  • introduced 3.2a1, fixed 3.2.11 (ecosystem)

Fixed versions

3.2.11

Fix

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

django

PyPI · All systems

Affected

  • introduced 4.0a1, fixed 4.0.1 (ecosystem)

Fixed versions

4.0.1

Fix

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

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