CVE-2021-21416

NameCVE-2021-21416
Descriptiondjango-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).
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs987366

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-django-registration (PTS)jessie1.0+dfsg-2vulnerable
stretch2.2-1vulnerable
buster2.2-2vulnerable
bullseye2.2-5vulnerable
sid, trixie, bookworm3.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-django-registrationsourcejessie(unfixed)end-of-life
python-django-registrationsource(unstable)3.3-1987366

Notes

[bullseye] - python-django-registration <no-dsa> (Minor issue)
[buster] - python-django-registration <no-dsa> (Minor issue)
[stretch] - python-django-registration <no-dsa> (Minor issue)
https://github.com/ubernostrum/django-registration/security/advisories/GHSA-58c7-px5v-82hh
https://github.com/ubernostrum/django-registration/commit/8206af081e239598cfd15d165d4d8ab9849ee23c (3.1.2)

Search for package or bug name: Reporting problems