{"cve":"CVE-2024-21543","nvd":{"published":"2024-12-13T05:15:07.653","modified":"2026-06-17T07:09:42.663","status":"Deferred","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.","cvss_v4":{"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","score":5.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1},"cwes":["CWE-287","CWE-295"],"references":["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://security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:57:36.180738747+00:00"},"epss":{"cve":"CVE-2024-21543","score":0.00546,"percentile":0.45815,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v49p-m6gh-747c","url":"https://osv.dev/vulnerability/GHSA-v49p-m6gh-747c","summary":"djoser Authentication Bypass","modified":"2025-02-21T16:41:32.920740Z","packages":[{"ecosystem":"PyPI","name":"djoser","purl":"pkg:pypi/djoser","ranges":["<2.3.0"],"fixed":["2.3.0"]}]},{"id":"PYSEC-2024-158","url":"https://osv.dev/vulnerability/PYSEC-2024-158","summary":"","modified":"2026-06-10T17:01:12.156461162Z","packages":[{"ecosystem":"PyPI","name":"djoser","purl":"pkg:pypi/djoser","ranges":["<2.3.0"],"fixed":["2.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}