{"id":"CVE-2024-21543","published":"2024-12-13T05:00:16Z","modified":"2025-02-20T22:02:38Z","title":"Versions of the package djoser before 2.3.0 are vulnerable to Authentication Bypass when the authenticate() function…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.009,"percentile":0.57657,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-295","name":"Improper Certificate Validation"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540","tags":[]},{"url":"https://github.com/sunscrapers/djoser/releases/tag/2.3.0","tags":[]},{"url":"https://github.com/sunscrapers/djoser/issues/795","tags":[]},{"url":"https://github.com/sunscrapers/djoser/pull/819","tags":[]},{"url":"https://github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00023.html","tags":[]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":11.53},{"name":"CVSS severity","points":4.97}]},"affectedVersions":[{"vendor":"n/a","product":"djoser","versions":["< 2.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-12-13T19:53:42.470510Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"djoser","vulnerableRanges":["<2.3.0"],"patched":["2.3.0"],"from":["GHSA-v49p-m6gh-747c","PYSEC-2024-158"],"provenance":"source"}],"summary":{"text":"The flaw is in djoser, a Django REST framework authentication package, in versions before 2.3.0, where the authenticate() function's failure path falls back to querying the database directly. An attacker holding valid credentials and network access to the affected service, with low privileges, can gain access that bypasses custom authentication controls such as two-factor authentication, LDAP validation, or checks from configured AUTHENTICATION_BACKENDS, without any user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:20Z"},"euvd":{"id":"EUVD-2024-0205","exploited":false,"provenance":"source"}}