Skip to content
OpenAdvisories
Medium · 5.3 CVE-2024-45231 BIT-django-2024-45231EUVD-2024-3135GHSA-rrqc-c2jx-6jgvPYSEC-2026-1297

Django allows enumeration of user e-mail addresses

Published Oct 8, 2024 · Updated Mar 17, 2025 · Assigned by mitre

Description

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 in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-django 3:4.2.16-1 —
Debian 13 python-django 3:4.2.16-1 —
Debian 12 python-django 3:3.2.25-0+deb12u1 DSA-6136-1
Debian 11 python-django 2:2.2.28-1~deb11u11 DLA-4458-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS python-django 3:4.2.11-1ubuntu1.3 USN-6987-1
Ubuntu 22.04 LTS python-django 2:3.2.12-2ubuntu1.14 USN-6987-1
Ubuntu 20.04 LTS python-django 2:2.2.12-1ubuntu0.25 USN-6987-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS python-django 1:1.11.11-1ubuntu1.21+esm7 USN-6987-1
Ubuntu Pro 16.04 LTS python-django No fix yet —
Ubuntu Pro 14.04 LTS python-django No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-Django 4.2.11-150600.3.9.1 SUSE-SU-2024:3161-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 python-Django 2.2.28-bp155.7.18.1 openSUSE-SU-2024:0282-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Django 5.1.1-1.1 openSUSE-SU-2026:11248-1, openSUSE-SU-2024:14318-1
openSUSE Tumbleweed python-Django4 4.2.16-1.1 openSUSE-SU-2026:11235-1, openSUSE-SU-2024:14310-1
openSUSE Tumbleweed python-Django5 5.2.16-1.1 openSUSE-SU-2026:11270-1
openSUSE Tumbleweed python-Django6 6.0-1.1 openSUSE-SU-2026:10005-1
openSUSE Leap 15.6 python-Django 4.2.11-150600.3.9.1 SUSE-SU-2024:3161-1
openSUSE Leap 15.5 python-Django 2.0.7-150000.1.33.1 openSUSE-SU-2024:0282-1, SUSE-SU-2024:3139-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-django 4.2.16-r0 —
Alpine v3.23 py3-django 4.2.16-r0 —
Alpine v3.22 py3-django 4.2.16-r0 —
Alpine v3.21 py3-django 4.2.16-r0 —
Alpine v3.20 py3-django 4.2.16-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django >= 5.1, < 5.1.1 5.1.1 GHSA-rrqc-c2jx-6jgv
PyPI django >= 5.0, < 5.0.9 5.0.9 GHSA-rrqc-c2jx-6jgv
PyPI django < 4.2.16 4.2.16 GHSA-rrqc-c2jx-6jgv
PyPI django < 4.2.16 · >= 5.0, < 5.0.9 · >= 5.1, < 5.1.1 4.2.16, 5.0.9, 5.1.1 PYSEC-2026-1297

Advisories 13

References