Authentication Bypass Affecting djoser package, versions [,2.3.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th 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 Learn

Learn about Authentication Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DJOSER-8366540
  • published12 Dec 2024
  • disclosed9 Nov 2024
  • creditDiego Cebrian

Introduced: 9 Nov 2024

CVE-2024-21543  (opens in a new tab)
CWE-287  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade djoser to version 2.3.0 or higher.

Overview

djoser is a REST implementation of Django authentication system.

Affected versions of this package 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.

CVSS Scores

version 4.0
version 3.1