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 FortiOS 6.4.0, 6.2.0 through 6.2.3, and 6.0.9 and earlier. In configurations combining local FortiToken-protected accounts with remote LDAP authentication, inconsistent username case handling allows a case-altered username to evade the local account match and authenticate through a secondary LDAP group policy without the required second factor. Exploitation requires valid directory credentials; it does not bypass password authentication.
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.
Attackers possessing valid LDAP credentials can defeat locally configured FortiToken MFA and obtain access authorized by the matching authentication policy. This enables unauthorized VPN access to internal resources and, where administrative authentication uses the affected configuration, potentially firewall administrative access. The resulting foothold can facilitate reconnaissance, credential theft, lateral movement, data exfiltration, and ransomware deployment; these are potential follow-on activities rather than direct capabilities of the vulnerability. Exploitation has been documented in ransomware operations, including Hive and Play.
Mitigation
If you can’t patch tonight, do this now.
On versions exposing the username-case-sensitivity attribute, disable it for affected user-local entries so username capitalization changes cannot evade the local MFA-protected account match. Remove unnecessary secondary LDAP group configurations and authentication-policy references that permit password-only fallback. Enforce MFA at the identity layer across alternate authentication paths. Monitor case-varied login attempts, unexpected LDAP policy matches, and successful authentication without corresponding second-factor activity. No vendor workaround is specified for versions lacking the username-case-sensitivity attribute.
Remediation
Patch, then assume compromise.
Upgrade to a currently supported, fixed FortiOS release. The initial fixed releases were 6.0.10, 6.2.4, and 6.4.1 in their respective branches. Also manually set username-case-sensitivity to disable in the applicable user-local entries using remote authentication and FortiToken MFA; upgrading alone does not satisfy the vendor's prevention instructions. Audit local MFA-enabled accounts, remote authentication backends, and LDAP 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 30, 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 30, 2026, Mallory has found no public exploit for CVE-2020-12812.
- Is there a patch for CVE-2020-12812?
- Upgrade to a currently supported, fixed FortiOS release. The initial fixed releases were 6.0.10, 6.2.4, and 6.4.1 in their respective branches.
- 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 30, 2026.
Recent activity
123 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.