# CVE-2022-24857: Multi factor authentication bypass in django-mfa3

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- 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): 1.17%, higher than 68% of CVEs (2026-12-01)
- Published: 2022-04-15T18:50:11.000Z
- Modified: 2026-06-17T04:32:40.337Z
- Also known as: GHSA-3r7g-wrpr-j5g4, PYSEC-2022-192
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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)

(As written by CVE List.)

## Affected

- xi django-mfa3: < 0.5.0
- django-mfa3 (PyPI): before 0.5.0; before 32f656e22df120b84bdf010e014bb19bd97971de
- django-mfa3_project django-mfa3: before 0.5.0

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/xi/django-mfa3/security/advisories/GHSA-3r7g-wrpr-j5g4> (advisory, third-party-advisory, web)
- <https://github.com/xi/django-mfa3/commit/32f656e22df120b84bdf010e014bb19bd97971de> (fix, patch, third-party-advisory, web)
- <https://github.com/xi/django-mfa3/blob/main/CHANGES.md#050-2022-04-15> (release-notes, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220609-0003/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24857> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django-mfa3/PYSEC-2022-192.yaml> (web)
- <https://github.com/xi/django-mfa3> (package)
- <https://security.netapp.com/advisory/ntap-20220609-0003> (web)

## Sources

- CVE List: [CVE-2022-24857](https://www.cve.org/CVERecord?id=CVE-2022-24857), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-3r7g-wrpr-j5g4](https://github.com/advisories/GHSA-3r7g-wrpr-j5g4), CC-BY-4.0, modified 2024-09-16
- NVD: [CVE-2022-24857](https://nvd.nist.gov/vuln/detail/CVE-2022-24857), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-192](https://osv.dev/vulnerability/PYSEC-2022-192), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-24857 · Whole record: https://cve.day/CVE-2022-24857.json · Rebuilt by cve.day 2026-11-25T22:58:10.710Z
