Skip to content
Fencer Vulns
high 7.5

CVE-2021-45115 json

Denial-of-service in Django

published 2022-01-04 4 y ago modified 2026-09-08 2 mo ago also BIT-django-2021-45115 , EUVD-2022-0085 , GHSA-53qw-q765-4fww , PYSEC-2022-1

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.6%
EPSS 2.6% chance of exploitation in 30 days, percentile 85%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi django 2.2.26, 3.2.11, 4.0.1
  • bitnami django 2.2.26, 3.2.11, 4.0.1
  • djangoproject django 2.2.26, 3.2.11, 4.0.1
  • python-django Debian 14, Debian 13, Debian 12 2:3.2.11-1

debian advisories DEBIAN-CVE-2021-45115

  • python-django Ubuntu 18.04 LTS 1:1.11.11-1ubuntu1.15
  • python-django Ubuntu 20.04 LTS 2:2.2.12-1ubuntu0.9

ubuntu advisories UBUNTU-CVE-2021-45115

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • foreman satellite utils 6.11, satellite capsule 6.11, satellite 6.11 3.1.1.21-2.el7sat
  • foreman satellite utils 6.11, satellite capsule 6.11, satellite 6.11 3.1.1.21-2.el8sat
  • libsolv satellite capsule 6.11, satellite 6.11 0.7.22-1.el7pc
  • libsolv satellite capsule 6.11, satellite 6.11 0.7.22-1.el8pc
  • candlepin satellite 6.11 4.1.13-1.el7sat
  • candlepin satellite 6.11 4.1.13-1.el8sat
  • satellite satellite utils 6.11, satellite capsule 6.11, satellite 6.11 6.11.0-2.el7sat
  • satellite satellite utils 6.11, satellite capsule 6.11, satellite 6.11 6.11.0-2.el8sat

red hat advisories RHSA-2022:5498

  • python-Django1 OpenStack Cloud Crowbar 9, OpenStack Cloud 9 1.11.29-3.30.1
  • python-Django OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 1.11.29-3.33.1

suse advisories SUSE-SU-2022:0103-1SUSE-SU-2022:0102-1

  • python-Django5 openSUSE Tumbleweed 5.2.16-1.1
  • python-Django4 openSUSE Tumbleweed 4.2.30-4.1
  • python-Django6 openSUSE Tumbleweed 6.0-1.1
  • python-Django openSUSE Tumbleweed 5.1.5-1.1
  • python-Django4 openSUSE Tumbleweed 4.2.14-1.1
  • python-Django openSUSE Tumbleweed 4.0.1-1.1
  • python-Django Package Hub 15 SP3, openSUSE Leap 15.3 2.2.28-bp153.2.3.1

opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:11235-1openSUSE-SU-2026:10005-1openSUSE-SU-2025:14662-1openSUSE-SU-2024:14208-1openSUSE-SU-2024:11725-1

  • libdb Rocky Linux 8 5.3.28-42.el8_4

rocky linux advisories RLSA-2022:5498

  • py3-django Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 3.2.12-r0

alpine advisories ALPINE-CVE-2021-45115

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-45115 updated cvss 7.5

django: Denial-of-service possibility in UserAttributeSimilarityValidator

  • Red Hat Ansible Automation Platform 1.2 python-django Red Hat Ansible Automation Platform 2 python-django Red Hat Ansible Tower 3 django
    affected: no fix available
  • Red Hat Ceph Storage 2 python-django, calamari-server, python-django-bash-completion Red Hat Ceph Storage 3 python-django, python-django-bash-completion Red Hat OpenStack Platform 13 (Queens) python-django, python2-django, python-django-bash-completion
    affected: no fix planned “Out of support scope”
  • Red Hat OpenStack Platform 16.1 python-django20, python3-django20, python-django20-bash-completion Red Hat OpenStack Platform 16.2 python-django20, python3-django20, python-django20-bash-completion
    affected: no fix planned “Will not fix”
  • Red Hat Satellite 6 python3-django
    affected: no fix available
  • Red Hat Update Infrastructure 3 for Cloud Providers python-django
    affected: no fix planned “Will not fix”
  • Red Hat Update Infrastructure 4 for Cloud Providers python-django
    affected: no fix available
  • Red Hat Satellite 6.11 for RHEL 8 python-django 3.2.13-1.el8pc, python38-django 3.2.13-1.el8pc
    fixed: vendor fix RHSA-2022:5498
  • Red Hat Satellite 6.11 for RHEL 7 tfm 7.0-1.el7sat, gofer 2.12.5-7.el7sat, katello 4.3.0-3.el7sat, libsolv 0.7.22-1.el7pc, libcomps 0.1.18-1.el7pc, libsolv0 0.6.34-4.el7sat, +638 more Red Hat Satellite 6.11 for RHEL 8 libdb 5.3.28-42.el8_4, katello 4.3.0-3.el8sat, libsolv 0.7.22-1.el8pc, libcomps 0.1.18-1.el8pc, python-idna 3.3-1.el8pc, python-pbr 5.6.0-1.el8pc, +627 more Red Hat Storage 3 python-django, python2-django, python-django-bash-completion
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.60% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
pypi django
>=2.2a1, <2.2.26
>=3.2a1, <3.2.11
>=4.0a1, <4.0.1
>=2.2, <2.2.26
>=3.2, <3.2.11
>=4.0, <4.0.1
2.2.26
3.2.11
4.0.1
bitnami django
>=2.2.0, <2.2.26
>=3.2.0, <3.2.11
>=4.0.0, <4.0.1
2.2.26
3.2.11
4.0.1

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.