CVE-2024-21543
Medium 5.7
Follow: this CVE We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Check whether you run any of the affected products and follow the vendor advisory.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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.