Read the docs
TI-2022-08668 Aliases CVE-2022-24857GHSA-3r7g-wrpr-j5g4

Multi factor authentication bypass in django-mfa3

Priority MEDIUM 42CWE-287Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01167 67th percentileScored 2026-11-07
Fix Fixed django-mfa3 (xi): 0.5.0django-mfa3 (PyPI): 0.5.0

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

VendorProductAffected versionsFixed inStatusSource
xidjango-mfa3before 0.5.00.5.0Patch availableCNA
—django-mfa3 (PyPI)before 0.5.00.5.0Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:django-mfa3_project:django-mfa3:*:*:*:*:*:*:*:*before 0.5.0VulnerableDjango-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

  1. 2026-10-02 Threatist record created from CVE-2022-24857
  2. 2026-10-03 Alias added: GHSA-3r7g-wrpr-j5g4

References

Sources