CVE-2020-12812: Fortinet FortiOS SSL VPN FortiToken MFA Bypass
- Vendor
- Fortinet
CVE-2020-12812 is an improper authentication vulnerability in Fortinet FortiOS SSL VPN affecting version 6.4.0, versions 6.2.0 through 6.2.3, and versions 6.0.9 and earlier. In configurations combining local FortiToken-protected accounts with remote LDAP authentication, inconsistent username case handling can allow a case-altered username to avoid matching the local MFA-protected account while authenticating through a secondary LDAP group policy. A user possessing valid directory credentials can consequently log in without completing the required FortiToken challenge. The vulnerability bypasses the second factor, not password authentication, and has been exploited in the wild.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation defeats configured two-factor authentication and permits access using valid directory credentials alone. SSL VPN access exposes the internal resources authorized by the matching authentication policy. Depending on other configured authentication policies, administrative access may also be possible. The resulting foothold can facilitate reconnaissance, credential theft, lateral movement, data exfiltration, and ransomware deployment; these are potential follow-on activities rather than capabilities directly supplied by the authentication flaw. Hive and Play ransomware operators have used this vulnerability for initial access.
Mitigation
If you can’t patch tonight, do this now.
Where the username-case-sensitivity attribute is available, manually disable it for affected user-local entries so capitalization changes cannot evade the local MFA-protected account match. No vendor workaround is specified for versions lacking this attribute. Remove unnecessary secondary LDAP group configurations that provide password-only fallback authentication, and enforce MFA across alternate authentication paths. Monitor case-varied login attempts, unexpected LDAP policy matches, and successful VPN or administrative sessions without corresponding second-factor activity.
Remediation
Patch, then assume compromise.
Upgrade to FortiOS 6.0.10, 6.2.4, 6.4.1, or a later applicable fixed release, preferably a currently supported release. In addition to upgrading, manually set username-case-sensitivity to disable in the applicable user-local configurations using remote authentication and FortiToken MFA. The attribute defaults to enable, and upgrading alone without this configuration change does not satisfy the vendor's prevention instructions. Audit local MFA-enabled accounts, LDAP backends, and group-policy references. If exploitation is suspected or confirmed, investigate unauthorized access and perform a comprehensive credential reset covering FortiGate and LDAP/Active Directory accounts.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2020-12812 exploited in the wild?
- Yes. As of Nov 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2020-12812?
- As of Nov 16, 2026, Mallory has found no public exploit for CVE-2020-12812.
- Is there a patch for CVE-2020-12812?
- Upgrade to FortiOS 6.0.10, 6.2.4, 6.4.1, or a later applicable fixed release, preferably a currently supported release. In addition to upgrading, manually set username-case-sensitivity to disable in the applicable user-local configurations using remote authentication and FortiToken MFA.
- What products are affected by CVE-2020-12812?
- Fortinet Fortios.
- How severe is CVE-2020-12812?
- CVE-2020-12812 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 45.4% (99th percentile) as of Nov 16, 2026.
Recent activity
122 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.