Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2024-45231

CVE-2024-45231: Django allows enumeration of user e-mail addresses

October 8, 2024 (updated October 30, 2024)

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).

References

  • docs.djangoproject.com/en/dev/releases/security
  • github.com/advisories/GHSA-rrqc-c2jx-6jgv
  • github.com/django/django
  • github.com/django/django/commit/3c733c78d6f8e50296d6e248968b6516c92a53ca
  • github.com/django/django/commit/96d84047715ea1715b4bd1594e46122b8a77b9e2
  • github.com/django/django/commit/bf4888d317ba4506d091eeac6e8b4f1fcc731199
  • groups.google.com/forum/
  • nvd.nist.gov/vuln/detail/CVE-2024-45231
  • www.djangoproject.com/weblog/2024/sep/03/security-releases

Code Behaviors & Features

Detect and mitigate CVE-2024-45231 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.2.16, all versions starting from 5.0 before 5.0.9, all versions starting from 5.1 before 5.1.1

Fixed versions

  • 5.1.1
  • 5.0.9
  • 4.2.16

Solution

Upgrade to versions 4.2.16, 5.0.9, 5.1.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-203: Observable Discrepancy
  • CWE-204: Observable Response Discrepancy

Source file

pypi/Django/CVE-2024-45231.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:21 +0000.