Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-45115
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:34 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-45115
Complete source record
{
"id": "6cb66f669e4233e5e6787c62ed522ed863015cda34ff48bca380ee2f4332690c",
"url": "https://osv.dev/vulnerability/CVE-2021-45115",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-45115",
"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.",
"evidence": "osv:CVE-2021-45115",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-45115",
"aliases": [
"BIT-django-2021-45115",
"CVE-2021-45115",
"GHSA-53qw-q765-4fww",
"PYSEC-2022-1"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/django/django",
"type": "GIT",
"events": [
{
"introduced": "2a62cdcfec85938f40abb2e9e6a9ff497e02afe8"
},
{
"fixed": "44e7cca62382f2535ed0f5d2842b433f0bd23a57"
},
{
"introduced": "3591e1c1acbd7c13174275367c3fdf012cb0413b"
},
{
"fixed": "6e499a28ac6ec10c2f0f77b92cab49fb8f8df419"
},
{
"introduced": "ef62a3a68c9d558486145a42c0d71ea9a76add9e"
},
{
"fixed": "27a64da8213f27787ae1c48041a70f197cdcfd6f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.2"
},
{
"fixed": "2.2.26"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.2"
},
{
"fixed": "3.2.11"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0"
},
{
"fixed": "4.0.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45115.json"
}
}
],
"modified": "2026-10-24T10:30:41.436575486Z",
"provider": "osv",
"references": [
"https://groups.google.com/forum/#%21forum/django-announce",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/",
"https://security.netapp.com/advisory/ntap-20220121-0005/",
"https://docs.djangoproject.com/en/4.0/releases/security/",
"https://www.djangoproject.com/weblog/2022/jan/04/security-releases/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "35"
},
{
"last_affected": "35"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-45115",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 435149,
"published_at": "2022-01-05T00:15:07.907+00:00"
}