Skip to content

Denial-of-service in Django

High severity GitHub Reviewed Published Jan 12, 2022 to the GitHub Advisory Database • Updated Mar 7, 2024

Package

pip Django (pip)

Affected versions

>= 2.2.0, < 2.2.26
>= 3.2.0, < 3.2.11
>= 4.0.0, < 4.0.1

Patched versions

2.2.26
3.2.11
4.0.1

Description

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.

References

Published by the National Vulnerability Database Jan 5, 2022
Reviewed Jan 12, 2022
Published to the GitHub Advisory Database Jan 12, 2022
Last updated Mar 7, 2024

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2021-45115

GHSA ID

GHSA-53qw-q765-4fww

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.