Skip to content
OpenAdvisories
High · 7.1 CVE-2024-21543 EUVD-2024-0205GHSA-v49p-m6gh-747cPYSEC-2024-158

djoser Authentication Bypass

Published Dec 13, 2024 · Updated Feb 20, 2025 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— djoser < 2.3.0 2.3.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 djoser 2.3.1-1 —
Debian 13 djoser 2.3.1-1 —
Debian 12 djoser 2.1.0-1+deb12u1 —
Debian 11 djoser 2.1.0-1+deb11u1 DLA-4060-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS djoser 2.1.0-1ubuntu0.24.04.1 USN-7354-1
Ubuntu 22.04 LTS djoser 2.1.0-1ubuntu0.22.04.1 USN-7354-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS djoser 2.0.3-1ubuntu0.1~esm1 USN-7354-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI djoser < 2.3.0 2.3.0 GHSA-v49p-m6gh-747c

Advisories 2

References