CVE-2021-21416 Potential sensitive information disclosed in error reports
Attackers can view sensitive user credentials in error reports if detailed error logging is enabled during registration failures.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-21416?
CVE-2021-21416 is a low-severity vulnerability in ubernostrum django-registration, published on 1 Apr 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
django-registration is a user registration package for Django. The django-registration package provides tools for implementing user-account registration flows in the Django web framework. In django-registration prior to 3.1.2, the base user-account registration view did not properly apply filters to sensitive data, with the result that sensitive data could be included in error reports rather than removed automatically by Django. Triggering this requires: A site is using django-registration < 3.1.2, The site has detailed error reports (such as Django's emailed error reports to site staff/developers) enabled and a server-side error (HTTP 5xx) occurs during an attempt by a user to register an account. Under these conditions, recipients of the detailed error report will see all submitted data from the account-registration attempt, which may include the user's proposed credentials (such as a password).
Weakness: CWE-209
Which versions are affected by CVE-2021-21416?
3 open source packages ship an affected version, including django-registration. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
django-registration PyPI | All versions | 3.1.2 |
django-registration PyPI | All versions | 3.1.2 |
django-registration PyPI | All versions | 3.1.2 |
Linux distribution packages (4)
python-django-registration SUSE:Package Hub 15 SP2 | All versions | 3.1.2-bp152.3.3.1 |
python-django-registration openSUSE:Leap 15.2 | All versions | 3.1.2-lp152.3.3.1 |
python-django-registration openSUSE:Tumbleweed | All versions | 3.3-2.2 |
python-django-registration openSUSE:Tumbleweed | All versions | 5.2.1-1.3 |
Products include Django-Registration Project Django-Registration.
How do I fix CVE-2021-21416?
Upgrade django-registration to 3.1.2 or later.
Is CVE-2021-21416 being exploited?
There is no known exploitation of CVE-2021-21416 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2021-21416, GHSA-58c7-px5v-82hh, MGASA-2022-0178, PYSEC-2021-11, UBUNTU-CVE-2021-21416, openSUSE-SU-2021:0588-1 and 4 more.