CVE-2024-45231
Django allows enumeration of user e-mail addresses
Reported by mitre · Published October 8, 2024
Django is fixed in 5.1.1, 5.0.9 and 4.2.16 (PyPI)
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).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Django | PyPI | 5.1.1, 5.0.9, 4.2.16 |
| django | djangoproject | 5.1.1, 5.0.9, 4.2.16 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | Django | 0, 5.0, 5.1 |
| djangoproject | django | |
| n/a | n/a | * |
| alpine | py3-django | 0 |
| djangoproject | django | 5.1, 4.2, 5.0 |
Timeline
- Sep 3, 2024 CVE Published
- Oct 8, 2024 PoC Published (2 in total, the first dated here)
- Oct 9, 2024 EPSS Score (30 in total, the first dated here)
- Oct 14, 2024 Coalition ESS Score (14 in total, the first dated here)
- Mar 17, 2025 CVE Updated
- Mar 10, 2026 Security Advisory (10 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-45231
vulnetix vdb fixes CVE-2024-45231
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-45231/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45231 advisory
- https://github.com/advisories/GHSA-rrqc-c2jx-6jgv advisory
- https://github.com/django/django/commit/3c733c78d6f8e50296d6e248968b6516c92a53ca patch
- https://github.com/django/django/commit/96d84047715ea1715b4bd1594e46122b8a77b9e2 patch
- https://github.com/django/django/commit/bf4888d317ba4506d091eeac6e8b4f1fcc731199 patch
- https://docs.djangoproject.com/en/dev/releases/security url
- https://github.com/django/django url
- https://www.djangoproject.com/weblog/2024/sep/03/security-releases url