CVE-2024-21543
MEDIUM 5.7CVSS 4.0djoser Authentication Bypass
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.
- Published
- 13 Dec 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-287CWE-295
- Also known as
- GHSA-v49p-m6gh-747cPYSEC-2024-158
- Sources
- NVDJSONOSV GHSA-v49p-m6gh-747cJSONOSV PYSEC-2024-158JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 4.0 | MEDIUM 5.7 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | djoser | < 2.3.0 | 2.3.0 |
References
- https://github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d · WEB, FIX
- https://github.com/sunscrapers/djoser/issues/795 · WEB, REPORT
- https://github.com/sunscrapers/djoser/pull/819 · WEB
- https://github.com/sunscrapers/djoser/releases/tag/2.3.0 · WEB
- https://security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540 · WEB
- https://lists.debian.org/debian-lts-announce/2025/02/msg00023.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21543 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/djoser/PYSEC-2024-158.yaml · WEB
- https://github.com/sunscrapers/djoser · PACKAGE
- https://github.com/advisories/GHSA-v49p-m6gh-747c · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 13 Dec 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Dec 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Dec 2024)