GitHub Advisoryadvisory · PyPI
GHSA-v49p-m6gh-747c djoser Authentication Bypass
HIGH
Official page ↗
- Aliases
- CVE-2024-21543
- Ecosystem
- PyPI
- Packages
- djoser
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
- Weaknesses
- CWE-287, CWE-295
- Reviewed
- 2024-12-13
Affected packages
• PyPI djoser: < 2.3.0 → fixed in 2.3.0
Description
Versions of the package djoser before 2.3.0 are vulnerable to Authentication Bypass when the authenticate() function fails. This is because the system falls back to querying the database directly, granting access to users with valid credentials, and eventually bypassing custom authentication checks such as two-factor authentication, LDAP validations, or requirements from configured AUTHENTICATION_BACKENDS.
Related
Alias · CVE (1)
- CVE-2024-21543 Versions of the package djoser before 2.3.0 are vulnerable to Authentication Bypass when the authenticate() function fails. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21543 advisory
- https://github.com/sunscrapers/djoser/issues/795 web
- https://github.com/sunscrapers/djoser/pull/819 web
- https://github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d web
- https://github.com/pypa/advisory-database/tree/main/vulns/djoser/PYSEC-2024-158.yaml web
- https://github.com/sunscrapers/djoser package
- https://github.com/sunscrapers/djoser/releases/tag/2.3.0 web
- https://lists.debian.org/debian-lts-announce/2025/02/msg00023.html web
- https://security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540 web