Bug 2037024 (CVE-2021-45115) - CVE-2021-45115 django: Denial-of-service possibility in UserAttributeSimilarityValidator
Summary: CVE-2021-45115 django: Denial-of-service possibility in UserAttributeSimilari...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-45115
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2037170 2037171 2040367 2040368 2040369 2037172 2037173 2037174 2037175 2037753 2037754 2050718 2050745
Blocks: 2037030
TreeView+ depends on / blocked
 
Reported: 2022-01-04 16:46 UTC by Pedro Sampaio
Modified: 2022-07-05 20:10 UTC (History)
59 users (show)

Fixed In Version: Django 4.0.1, Django 3.2.11, Django 2.2.26
Doc Type: If docs needed, set a value
Doc Text:
A resource-consumption flaw was found in django's UserAttributeSimilarityValidator, where it incurred significant overhead evaluating any submitted password that was artificially large relative to comparison values. A network attacker could exploit this flaw to cause a denial of service.
Clone Of:
Environment:
Last Closed: 2022-07-05 20:10:52 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:27:33 UTC

Description Pedro Sampaio 2022-01-04 16:46:18 UTC
:class:`.UserAttributeSimilarityValidator` incurred significant overhead
evaluating submitted password that were artificially large in relative to the
comparison values. On the assumption that access to user registration was
unrestricted this provided a potential vector for a denial-of-service attack.

References:

https://www.djangoproject.com/weblog/2022/jan/04/security-releases/

Comment 1 Summer Long 2022-01-05 06:57:26 UTC
Created django:1.6/python-django tracking bugs for this issue:

Affects: fedora-all [bug 2037170]


Created python-django tracking bugs for this issue:

Affects: epel-all [bug 2037171]
Affects: fedora-all [bug 2037174]
Affects: openstack-rdo [bug 2037172]

Comment 9 errata-xmlrpc 2022-07-05 14:27:29 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.11 for RHEL 7
  Red Hat Satellite 6.11 for RHEL 8

Via RHSA-2022:5498 https://access.redhat.com/errata/RHSA-2022:5498

Comment 10 Product Security DevOps Team 2022-07-05 20:10:47 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-45115


Note You need to log in before you can comment on or make changes to this bug.