Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. djoser
  4. ›
  5. CVE-2024-21543

CVE-2024-21543: djoser Authentication Bypass

December 13, 2024 (updated February 21, 2025)

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.

References

  • github.com/advisories/GHSA-v49p-m6gh-747c
  • github.com/pypa/advisory-database/tree/main/vulns/djoser/PYSEC-2024-158.yaml
  • github.com/sunscrapers/djoser
  • github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d
  • github.com/sunscrapers/djoser/issues/795
  • github.com/sunscrapers/djoser/pull/819
  • github.com/sunscrapers/djoser/releases/tag/2.3.0
  • lists.debian.org/debian-lts-announce/2025/02/msg00023.html
  • nvd.nist.gov/vuln/detail/CVE-2024-21543
  • security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540

Code Behaviors & Features

Detect and mitigate CVE-2024-21543 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.0

Fixed versions

  • 2.3.0

Solution

Upgrade to version 2.3.0 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication
  • CWE-295: Improper Certificate Validation

Source file

pypi/djoser/CVE-2024-21543.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.