GHSA-rrqc-c2jx-6jgv
MODERATE
Django allows enumeration of user e-mail addresses
Published October 8, 2024Updated October 30, 2024Source: osv
Details
An issue was discovered in Django v5.1.1, v5.0.9, and v4.2.16. The django.contrib.auth.forms.PasswordResetForm class, when used in a view implementing password reset flows, allows remote attackers to enumerate user e-mail addresses by sending password reset requests and observing the outcome (only when e-mail sending is consistently failing).
Remediation
Upgrade to the fixed version using your package manager.
pip
Update django to 4.2.16 or laterpip install "django>=4.2.16"
pip
Update django to 5.0.9 or laterpip install "django>=5.0.9"
pip
Update django to 5.1.1 or laterpip install "django>=5.1.1"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-203
- CWE-204
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 3.1 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45231ADVISORY
- https://github.com/django/django/commit/3c733c78d6f8e50296d6e248968b6516c92a53caWEB
- https://github.com/django/django/commit/96d84047715ea1715b4bd1594e46122b8a77b9e2WEB
- https://github.com/django/django/commit/bf4888d317ba4506d091eeac6e8b4f1fcc731199WEB
- https://docs.djangoproject.com/en/dev/releases/securityWEB
- https://github.com/django/djangoPACKAGE
- https://groups.google.com/forum/#%21forum/django-announceWEB
- https://www.djangoproject.com/weblog/2024/sep/03/security-releasesWEB
Risk Assessment
CVSS Score
3.1
Exploitation is difficult or impact is minor. Address in your next planned update.
EPSS Score (30-day exploit probability)
0.16%
Higher than 37% of vulnerabilities
Also Known As
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies