Live threats

All CVEs / Djangoproject

CVE-2021-45115Djangoproject Django

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.2%
probability of exploitation in 30 days · percentile 83
Auth required
No
Published
Jan 5, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 2.2a1 < 2.2.26 2.2.26 pip install "django>=2.2.26"
PyPI django ≥ 3.2a1 < 3.2.11 3.2.11 pip install "django>=3.2.11"
PyPI django ≥ 4.0a1 < 4.0.1 4.0.1 pip install "django>=4.0.1"
PyPI django ≥ 2.2 < 2.2.26 2.2.26 pip install "django>=2.2.26"
PyPI django ≥ 3.2 < 3.2.11 3.2.11 pip install "django>=3.2.11"
PyPI django ≥ 4.0 < 4.0.1 4.0.1 pip install "django>=4.0.1"

Per OSV / GitHub Advisories (GHSA-53qw-q765-4fww, PYSEC-2022-1). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 2.2 < 2.2.26
djangoprojectdjango≥ 3.2 < 3.2.11
djangoprojectdjango≥ 4.0 < 4.0.1
fedoraprojectfedora35

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.