Advisory

GHSA-v49p-m6gh-747c

Also known as: CVE-2024-21543, PYSEC-2024-158

Summary

djoser Authentication Bypass

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-12-13 06:30 UTC
Modified
2025-02-21 16:41 UTC

Affected packages and fixes

djoser

PyPI · All systems

Affected

  • introduced 0, fixed 2.3.0 (ecosystem)

Fixed versions

2.3.0

Fix

  • Fixed version 2.3.0
    pip install --upgrade djoser==2.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences