GHSA-v49p-m6gh-747c

Suggest an improvement
Source
https://github.com/advisories/GHSA-v49p-m6gh-747c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-v49p-m6gh-747c/GHSA-v49p-m6gh-747c.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-v49p-m6gh-747c
Aliases
Published
2024-12-13T06:30:58Z
Modified
2025-01-14T17:02:54.452645Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N CVSS Calculator
  • 7.1 (High) CVSS_V4 - 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 CVSS Calculator
Summary
djoser Authentication Bypass
Details

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.

Database specific
{
    "nvd_published_at": "2024-12-13T05:15:07Z",
    "cwe_ids": [
        "CWE-287",
        "CWE-295"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-13T20:37:27Z"
}
References

Affected packages

PyPI / djoser

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.0

Affected versions

0.*

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

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

2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.1.0
2.2.0a0
2.2.0
2.2.1
2.2.2
2.2.3