Auth bypass in Djoser
CVE-2024-21543
- CVSS v3
- 7.1 High
- Public exploits
- None known
- EPSS
- 0.005 · 46.6th percentile
- Published
- 2024-12-13
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.
Vulnerability class: Broken Authentication
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- Low
I:L - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.005, 46.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Djoser — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540
- github.com/sunscrapers/djoser/releases/tag/2.3.0
- github.com/sunscrapers/djoser/issues/795
- github.com/sunscrapers/djoser/pull/819
- github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d
- lists.debian.org/debian-lts-announce/2025/02/msg00023.html