CVE-2024-45231 — Vulnerability in django — CVE Details
Django allows enumeration of user e-mail addresses
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.09%). Schedule for your next planned update.
Does your project use an affected django version?
Paste your requirements.txt to check it for CVE-2024-45231 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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).
Advisory Timeline
- First published October 8, 2024 (779 days ago).
- Last revised July 7, 2026 — 637 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "django>=4.2.16"
pip install "django>=5.0.9"
pip install "django>=5.1.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: PyPI (1).
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.7 score means for each attack dimension.
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
Frequently Asked Questions
- What is CVE-2024-45231?
- Django allows enumeration of user e-mail addresses. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 3.7/10).
- How do I check if my project is affected by CVE-2024-45231?
- CVE-2024-45231 affects django. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-45231 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is difficult, or the impact is minor.
This is an above-median EPSS score — 65% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2020-24583HIGH
Django Incorrect Default Permissions
- CVE-2026-15307HIGH
Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing
- CVE-2026-53878MEDIUM
- CVE-2024-45230MEDIUM
Django vulnerable to denial-of-service attack via the urlize() and urlizetrunc() template filters
- CVE-2026-33033MEDIUM
Django has potential DoS via MultiPartParser through crafted multipart uploads
- CVE-2021-45452MEDIUM
Directory-traversal in Django
- CVE-2024-45230
- CVE-2024-53907