{"id":"CVE-2024-21543","aliases":["DEBIAN-CVE-2024-21543","DLA-4060-1","EUVD-2024-0205","GHSA-v49p-m6gh-747c","PYSEC-2024-158","UBUNTU-CVE-2024-21543","USN-7354-1"],"status":"published","title":"djoser Authentication Bypass","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.","severity":{"version":"4.0","score":5.7,"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00546,"percentile":0.46257,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-287","CWE-295"],"published":"2024-12-13T05:00:16Z","modified":"2026-11-02T12:00:43Z","fixes":[{"ecosystem":"PyPI","package":"djoser","fixed_in":["2.3.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"djoser","fixed_in":["2.1.0-1+deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"djoser","fixed_in":["2.3.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"djoser","fixed_in":["2.3.1-1"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"djoser","fixed_in":["2.1.0-1+deb11u1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"djoser","fixed_in":["2.0.3-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"djoser","fixed_in":["2.1.0-1ubuntu0.22.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:24.04:LTS","package":"djoser","fixed_in":["2.1.0-1ubuntu0.24.04.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1+deb12u1"}]}],"versions":["2.1.0-1"]},{"source":"osv","ecosystem":"Debian:13","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.1-1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1+deb11u1"}]}],"versions":["2.1.0-1"]},{"source":"osv","ecosystem":"PyPI","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.1.0","0.2.0","0.2.1","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.4.3","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.6.0","0.7.0","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.2.2","1.3.3","1.4.1","1.5.1","1.6.0","1.7.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.1.0","2.2.0","2.2.0a0","2.2.1","2.2.2","2.2.3"]},{"source":"osv","ecosystem":"PyPI","package":"djoser","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"d33c3993c0c735f23cbedc60fa59fce69354f19d"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.1.0","0.2.0","0.2.1","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.4.3","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.6.0","0.7.0","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.2.2","1.3.3","1.4.1","1.5.1","1.6.0","1.7.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.1.0","2.2.0","2.2.0a0","2.2.1","2.2.2","2.2.3","1.4.0","1.3.2","1.2.1","1.5.0","1.3.1","1.3.0"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.3-1ubuntu0.1~esm1"}]}],"versions":["2.0.1-2","2.0.3-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1ubuntu0.22.04.1"}]}],"versions":["2.1.0-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1ubuntu0.24.04.1"}]}],"versions":["2.1.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.3-1ubuntu0.1~esm1"}]}],"versions":["2.0.1-2","2.0.3-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1ubuntu0.22.04.1"}]}],"versions":["2.1.0-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"djoser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-1ubuntu0.24.04.1"}]}],"versions":["2.1.0-1"]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540","tags":["web","report"]},{"url":"https://github.com/sunscrapers/djoser/releases/tag/2.3.0","tags":["web","report"]},{"url":"https://github.com/sunscrapers/djoser/issues/795","tags":["report","web"]},{"url":"https://github.com/sunscrapers/djoser/pull/819","tags":["fix","web","report"]},{"url":"https://github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d","tags":["fix","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00023.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21543","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/djoser/PYSEC-2024-158.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-v49p-m6gh-747c","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21543.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-21543","tags":["advisory"]},{"url":"https://github.com/sunscrapers/djoser","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-21543","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-21543","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7354-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2024-21543","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.","status":"published","published":"2024-12-13T05:00:16.747Z","modified":"2025-02-20T22:02:38.155Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium","assessor":"cna"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N/E:P","level":"high","assessor":"cna"}],"cwes":["CWE-287","CWE-295"],"updated_at":"2026-11-02T14:34:04.681315Z"}],"euvd":[{"id":"EUVD-2024-0205","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.","status":"published","published":"2024-12-13T05:00:16Z","modified":"2025-02-20T22:02:38Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"}],"updated_at":"2026-11-02T20:53:26.353093Z"}],"ghsa":[{"id":"GHSA-v49p-m6gh-747c","title":"djoser Authentication Bypass","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.","status":"published","published":"2024-12-13T06:30:58Z","modified":"2025-02-21T16:08:48Z","cvss":[{"version":"4.0","score":7.1,"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","level":"high"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"cwes":["CWE-287","CWE-295"],"updated_at":"2026-11-02T14:38:32.275316Z"}],"nvd":[{"id":"CVE-2024-21543","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.","status":"published","published":"2024-12-13T05:15:07.653Z","modified":"2026-06-17T07:09:42.663Z","cvss":[{"version":"4.0","score":5.7,"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/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","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-287","CWE-295"],"updated_at":"2026-11-02T14:10:40.137849Z"}],"osv":[{"id":"CVE-2024-21543","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.","status":"published","published":"2024-12-13T05:00:16.747Z","modified":"2026-10-28T02:30:38.130967354Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T15:44:38.577405Z"},{"id":"DEBIAN-CVE-2024-21543","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.","status":"published","published":"2024-12-13T05:15:07.653Z","modified":"2026-11-02T12:00:43.324973195Z","cvss":[{"version":"4.0","score":5.7,"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/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","level":"medium"}],"updated_at":"2026-11-02T15:45:41.849198Z"},{"id":"GHSA-v49p-m6gh-747c","title":"djoser Authentication Bypass","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.","status":"published","published":"2024-12-13T06:30:58Z","modified":"2025-02-21T16:41:32.92074Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","level":"high"},{"version":"4.0","score":7.1,"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","level":"high"}],"cwes":["CWE-287","CWE-295"],"updated_at":"2026-11-02T15:46:56.639206Z"},{"id":"UBUNTU-CVE-2024-21543","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.","status":"published","published":"2024-12-13T05:15:00Z","modified":"2026-02-04T04:36:11.953642Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","level":"high"},{"version":"4.0","score":5.7,"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","level":"medium"}],"updated_at":"2026-11-02T16:54:42.68848Z"},{"id":"DLA-4060-1","title":"djoser - security update","status":"published","published":"2025-02-20T00:00:00Z","modified":"2026-03-09T01:22:50.393208Z","updated_at":"2026-11-02T15:46:12.7027Z"},{"id":"PYSEC-2024-158","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.","status":"published","published":"2024-12-13T05:15:07Z","modified":"2026-06-10T17:01:12.156461162Z","updated_at":"2026-11-02T15:52:53.837392Z"},{"id":"USN-7354-1","title":"djoser vulnerability","description":"Diego Cebrián discovered that djoser did not properly handle user\nauthentication. An attacker with valid credentials could possibly\nuse this to bypass authentication checks, such as two-factor\nauthentication, to gain unintended access.\n","status":"published","published":"2025-03-17T21:07:18Z","modified":"2026-02-10T04:47:18Z","updated_at":"2026-11-02T16:58:19.988474Z"}]}}
