CVEvulnerability
CVE-2024-21543
5.7 MEDIUM
Official page ↗
- Status
- Deferred
- Published
- 2024-12-13
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 4.0 ([email protected])
- 5.7 MEDIUM — CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CVSS 3.1 ([email protected])
- 7.1 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
- Weaknesses
- CWE-287, CWE-295
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
References
- https://github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d github.com
- https://github.com/sunscrapers/djoser/issues/795 github.com
- https://github.com/sunscrapers/djoser/pull/819 github.com
- https://github.com/sunscrapers/djoser/releases/tag/2.3.0 github.com
- https://security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540 security.snyk.io
- https://lists.debian.org/debian-lts-announce/2025/02/msg00023.html lists.debian.org