ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2024-21543

Details

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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:20.04:LTSdjoser
All versions before 2.0.3-1ubuntu0.1~esm1 (fixed in 2.0.3-1ubuntu0.1~esm1)
Ubuntu:22.04:LTSdjoser
All versions before 2.1.0-1ubuntu0.22.04.1 (fixed in 2.1.0-1ubuntu0.22.04.1)
Ubuntu:24.04:LTSdjoser
All versions before 2.1.0-1ubuntu0.24.04.1 (fixed in 2.1.0-1ubuntu0.24.04.1)

References