# CVE-2024-21543: djoser Authentication Bypass

- Severity: Medium 5.7 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2024-12-13T05:00:16.747Z
- Modified: 2026-06-17T07:09:42.663Z
- Also known as: GHSA-v49p-m6gh-747c, PYSEC-2024-158
- Weaknesses: CWE-287, CWE-295
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- djoser: before 2.3.0
- djoser (PyPI): before 2.3.0; before d33c3993c0c735f23cbedc60fa59fce69354f19d

## Every score

- snyk: CVSS:4.0 5.7 Medium `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`
- snyk: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N/E:P`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:4.0 High `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`

## References

- <https://security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540> (web)
- <https://github.com/sunscrapers/djoser/releases/tag/2.3.0> (web)
- <https://github.com/sunscrapers/djoser/issues/795> (report, web)
- <https://github.com/sunscrapers/djoser/pull/819> (web)
- <https://github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d> (fix, 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)

## Sources

- CVE List: [CVE-2024-21543](https://www.cve.org/CVERecord?id=CVE-2024-21543), CVE Terms of Use, modified 2025-02-20
- GitHub Advisory Database: [GHSA-v49p-m6gh-747c](https://github.com/advisories/GHSA-v49p-m6gh-747c), CC-BY-4.0, modified 2025-02-21
- NVD: [CVE-2024-21543](https://nvd.nist.gov/vuln/detail/CVE-2024-21543), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-158](https://osv.dev/vulnerability/PYSEC-2024-158), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-21543 · Whole record: https://cve.day/CVE-2024-21543.json · Rebuilt by cve.day 2026-11-25T22:58:50.075Z
