🛡️ CVE-2021-45115 — django
Description
Denial-of-service in Django
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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity none, availability high.
Weakness class
CVE-2021-45115 is classified as CWE-400: Uncontrolled Resource Consumption. A request can consume memory, CPU or storage without limit, exhausting capacity for everyone else.
Affected software
CVE-2021-45115 is recorded against 1 package.
- django (from 4.0 up to 4.0.1)
Timeline and source
Published on 5 January 2022 and last revised on 3 April 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
docs.djangoproject.com (Web)
groups.google.com (Web)
www.djangoproject.com (Article)
github.com (Advisory)
CVE-2021-45115 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| django | 4.0 | 4.0.1 |
References
Similar Threats
- Unknown CLSA-2025-1753747897
- Unknown CLSA-2025-1754352700
- Unknown CLSA-2025-1754352704
- Unknown CLSA-2025-1754352705
- Unknown CLSA-2025-1755821485
Site Security Check
Is django part of your stack?
CVE-2021-45115 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.