CVEfocus › CVE database › CVE-2024-21543

CVE-2024-21543

CVSS 7.1 HighEPSS 0.9% (higher than 58% of CVEs)Published 2024-12-13Updated 2025-02-20Assigner: snyk

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.

CWE-287CWE-295

What to do

Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04djoserFixed2.1.0-1ubuntu0.24.04.1UBUNTU-CVE-2024-21543
Ubuntu 22.04djoserFixed2.1.0-1ubuntu0.22.04.1UBUNTU-CVE-2024-21543
Ubuntu 20.04djoserFix pending2.0.3-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-21543
Debian 14djoserFixed2.3.1-1DEBIAN-CVE-2024-21543
Debian 13djoserFixed2.3.1-1DEBIAN-CVE-2024-21543
Debian 12djoserFixed2.1.0-1+deb12u1DEBIAN-CVE-2024-21543
PyPI librarydjoserFixed2.3.0PYSEC-2024-158

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.