CVE-2024-21543 Affecting djoser package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-DJOSER-8501912
  • published6 Mar 2025
  • disclosed13 Dec 2024

Introduced: 13 Dec 2024

CVE-2024-21543  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:20.04 djoser.

NVD Description

Note: Versions mentioned in the description apply only to the upstream djoser package and not the djoser package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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.