Multi factor authentication bypass in django-mfa3
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-287.
Summary
django-mfa3 is a library that implements multi factor authentication for the django web framework. It achieves this by modifying the regular login view. Django however has a second login view for its admin area. This second login view was not modified, so the multi factor authentication can be bypassed. Users are affected if they have activated both django-mfa3 (< 0.5.0) and django.contrib.admin and have not taken any other measures to prevent users from accessing the admin login view. The issue has been fixed in django-mfa3 0.5.0. It is possible to work around the issue by overwriting the admin login route, e.g. by adding the following URL definition *before* the admin routes: url('admin/login/', lambda request: redirect(settings.LOGIN_URL)
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| xi | django-mfa3 | before 0.5.0 | 0.5.0 | Patch available | CNA |
| — | django-mfa3 (PyPI) | before 0.5.0 | 0.5.0 | Patch available | GHSA-3r7g-wrpr-j5g4 |
- django-mfa3 Vendorxi Affected before 0.5.0 Fixed in 0.5.0 Patch available CNA
- django-mfa3 (PyPI) Vendor— Affected before 0.5.0 Fixed in 0.5.0 Patch available GHSA-3r7g-wrpr-j5g4
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:django-mfa3_project:django-mfa3:*:*:*:*:*:*:*:* | before 0.5.0 | Vulnerable | Django-mfa3 Project |
- cpe:2.3:a:django-mfa3_project:django-mfa3:*:*:*:*:*:*:*:* Versions before 0.5.0 Vulnerable ·Django-mfa3 Project
Remediation
- Fix · CNA django-mfa3 (xi) Fixed in 0.5.0
- Fix · GHSA-3r7g-wrpr-j5g4 django-mfa3 (PyPI) Fixed in 0.5.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24857
- 2026-10-03 Alias added: GHSA-3r7g-wrpr-j5g4
References
Advisory 4
Sources
- CVE-2022-24857 · CVE Program
- CVE-2022-24857 · NVD
- FIRST EPSS
- GHSA-3r7g-wrpr-j5g4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences