CVE-2024-21543
published medium CVSS 4.0 · 5.7djoser vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | djoser0 to < 2.3.0 | Affected | Not stated | snyk |
| Debian | bullseye | djoser | Advisory build | 2.1.0-1+deb11u1 | DLA-4060-1 |
| Ubuntu | focal | djoser | Advisory build | 2.0.3-1ubuntu0.1~esm1 | USN-7354-1 |
| Ubuntu | jammy | djoser | Advisory build | 2.1.0-1ubuntu0.22.04.1 | USN-7354-1 |
| Ubuntu | noble | djoser | Advisory build | 2.1.0-1ubuntu0.24.04.1 | USN-7354-1 |
| Ubuntu | focal | python3-djoser | Advisory build | 2.0.3-1ubuntu0.1~esm1 | USN-7354-1 |
| Ubuntu | jammy | python3-djoser | Advisory build | 2.1.0-1ubuntu0.22.04.1 | USN-7354-1 |
| Ubuntu | noble | python3-djoser | Advisory build | 2.1.0-1ubuntu0.24.04.1 | USN-7354-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.7 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.1 | high | snyk · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N/E:P | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | djoser | 0 to < 2.3.0 (affected · semver) | snyk · cna |
Weaknesses
2- CWE-287 Authentication Bypass
- CWE-295 CWE-295 Improper Certificate Validation
References
6- https://github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d
- https://github.com/sunscrapers/djoser/issues/795
- https://github.com/sunscrapers/djoser/pull/819
- https://github.com/sunscrapers/djoser/releases/tag/2.3.0
- https://lists.debian.org/debian-lts-announce/2025/02/msg00023.html
- https://security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540
Provider assertions
3snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 096231271d10b9c178918ecd436003c9db44631227dd6034541dc5c486d1d805
- Ingested
- 23 Sep 2026, 08:19:02 UTC
- Source record
- Official CVE record