Live threats

All CVEs

CVE-2024-21543

Medium 5.7

Priority
34
CVSS 4.0
5.7
EPSS
0.9%
probability of exploitation in 30 days · percentile 58
Auth required
Yes
Published
Dec 13, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287, CWE-295
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Check whether you run any of the affected products and follow the vendor advisory.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI djoser < 2.3.0 2.3.0 pip install "djoser>=2.3.0"
PyPI djoser < 2.3.0 2.3.0 pip install "djoser>=2.3.0"

Per OSV / GitHub Advisories (GHSA-v49p-m6gh-747c, PYSEC-2024-158). Check the version in your lockfile before upgrading.

Official sources

References

Links published by the sources. Open them with care.