CVEvulnerability

CVE-2024-21543

5.7 MEDIUM Published 2024-12-13 Modified 2026-06-17 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

Weakness · CWE (2)

  • CWE-287 Improper Authentication weakness
  • CWE-295 Improper Certificate Validation weakness

References