Vulnerability · Published Oct 8, 2024 · Assigned by mitre
CVE-2024-45231
Medium 5.3
In plain English
A medium-severity security flaw in the py3-django package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-django | 4.2.16-r0 | ALPINE-CVE-2024-45231 |
| Alpine:v3.21 | py3-django | 4.2.16-r0 | ALPINE-CVE-2024-45231 |
| Alpine:v3.22 | py3-django | 4.2.16-r0 | ALPINE-CVE-2024-45231 |
| Alpine:v3.23 | py3-django | 4.2.16-r0 | ALPINE-CVE-2024-45231 |
| Alpine:v3.24 | py3-django | 4.2.16-r0 | ALPINE-CVE-2024-45231 |
| Debian:12 | python-django | 3:3.2.25-0+deb12u1 | DSA-6136-1 |
| Debian:12 | python-django | 3:3.2.25-0+deb12u1 | DEBIAN-CVE-2024-45231 |
| Debian:13 | python-django | 3:4.2.16-1 | DEBIAN-CVE-2024-45231 |
| Debian:14 | python-django | 3:4.2.16-1 | DEBIAN-CVE-2024-45231 |
| PyPI | django | 5.0.9 | GHSA-rrqc-c2jx-6jgv |
| PyPI | django | 4.2.16 | GHSA-rrqc-c2jx-6jgv |
| PyPI | django | 4.2.16, 5.0.9, 5.1.1 | PYSEC-2026-1297 |
| PyPI | django | 5.1.1 | GHSA-rrqc-c2jx-6jgv |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.14 | USN-6987-1 |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.14 | UBUNTU-CVE-2024-45231 |
| Ubuntu:24.04:LTS | python-django | 3:4.2.11-1ubuntu1.3 | UBUNTU-CVE-2024-45231 |
| Ubuntu:24.04:LTS | python-django | 3:4.2.11-1ubuntu1.3 | USN-6987-1 |
Affected products (as reported)
Weakness: CWE-203 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N