CVE-2020-12812 is an improper authentication flaw in the SSL VPN of Fortinet FortiOS: a user with FortiToken two-factor authentication who is checked against LDAP can log in without the second factor by changing the case of the username. NVD scores it 9.8 and CISA KEV lists it with known ransomware use. Upgrade to FortiOS 6.0.10, 6.2.4 or 6.4.1 and disable username case sensitivity.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
45.4%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2020-12812 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Fortinet FortiOS (FortiGate firmware) | cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:* | 6.0.9 and below (fixed in 6.0.10); 6.2.0 through 6.2.3 (fixed in 6.2.4); 6.4.0 (fixed in 6.4.1); after upgrading, username-case-sensitivity (later username-sensitivity) must be disabled on local users |
What does this mean for affected devices?
NVD describes CVE-2020-12812 as an improper authentication flaw in SSL VPN in FortiOS 6.4.0, 6.2.0 to 6.2.3 and 6.0.9 and below that "may result in a user being able to log in successfully without being prompted for the second factor of authentication (FortiToken) if they changed the case of their username". NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and NVD CVSS v2 7.5, with CWE-178 and CWE-287; CISA-ADP scores it 7.5 (C:H/I:N/A:N) and Fortinet's own advisory 5.3 (NVD, CVE record).
Which FortiGate firmware is affected and what is the fix?
Fortinet advisory FG-IR-19-283 (2020-07-13) lists FortiOS 6.4.0, 6.2.0 to 6.2.3 and 6.0.9 and below and fixes it in 6.4.1, 6.2.4 and 6.0.10 or later. The issue occurs when two-factor authentication is set on a user local entry whose type is a remote method such as LDAP, because local and remote matching treat letter case differently. The fixed releases add a username-case-sensitivity attribute that stays enabled by default; to avoid the bypass, Fortinet says administrators "must manually disable" it.
Is CVE-2020-12812 still exploited?
Yes. On 2025-12-24 Fortinet reported recent abuse of this flaw in specific configurations, where admin or VPN users could authenticate without 2FA. Its guidance: on all local accounts set username-case-sensitivity disable, or username-sensitivity disable on 6.0.13, 6.2.10, 6.4.7, 7.0.1 and later; remove a secondary LDAP group used in authentication policies if it is not required; and, if the bypass occurred, treat the configuration as compromised and reset all credentials, including LDAP/AD binding accounts. The FBI and CISA advisory AA21-092A (2021-04-02) had reported APT actors enumerating devices for this CVE, CVE-2019-5591 and CVE-2018-13379. CISA added it to the KEV catalog on 2021-11-03 with the required action "Apply updates per vendor instructions." (due 2022-05-03) and known ransomware campaign use "Known"; it is listed as of 2026-11-25 in catalog version 2026.11.24 (CISA KEV). FIRST EPSS gives 0.45379, the 98.81st percentile, in the 2026-11-24 dataset (FIRST EPSS). See how to fix authentication bypass in embedded firmware and CISA BOD 23-02 on internet-exposed management interfaces.
Evidence
- NVD (Analyzed): improper authentication in SSL VPN in FortiOS 6.4.0, 6.2.0-6.2.3, 6.0.9 and below lets a user log in without FortiToken second factor by changing username case; NVD Primary CVSS v3.1 9.8, NVD CVSS v2 7.5; CISA-ADP Secondary 7.5 C:H/I:N/A:N; CWE-178 and CWE-287; CPE FortiOS < 6.0.10, 6.2.0-<6.2.4, 6.4.0; published 2020-07-24; read 2026-11-25. — NVD
- FG-IR-19-283 (2020-07-13): occurs when 2FA is enabled on a 'user local' entry with remote authentication type (e.g. LDAP); inconsistent case-sensitive matching; new username-case-sensitivity attribute enabled by default, administrators must manually disable it; affected 6.4.0, 6.2.0-6.2.3, 6.0.9 and below; upgrade to 6.4.1, 6.2.4, 6.0.10 or later; advisory CVSSv3 5.3. — Fortinet PSIRT FG-IR-19-283
- Fortinet PSIRT blog 2025-12-24: observed recent abuse of FG-IR-19-283 in specific configurations; admin or VPN users authenticated without 2FA; set username-case-sensitivity disable, or username-sensitivity disable on v6.0.13, v6.2.10, v6.4.7, v7.0.1 and above; remove unneeded secondary LDAP group; if impacted treat configuration as compromised and reset all credentials including LDAP/AD binding. — Fortinet PSIRT blog
- FBI/CISA AA21-092A (2021-04-02): APT actors enumerated devices for CVE-2020-12812 and CVE-2019-5591 and scanned for CVE-2018-13379. — FBI and CISA joint advisory AA21-092A
- CVE record PUBLISHED, CNA Fortinet, 2020-07-24; CISA ADP SSVC exploitation active. — CVE.org
- KEV catalog 2026.11.24: dateAdded 2021-11-03, due 2022-05-03, required action 'Apply updates per vendor instructions.', knownRansomwareCampaignUse Known, CWE-178 and CWE-287; checked 2026-11-25. — CISA KEV
- EPSS 0.45379, percentile 0.98811, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which FortiOS versions fix CVE-2020-12812?
FortiOS 6.0.10, 6.2.4 and 6.4.1 or later. The fixed releases add a username case setting that is enabled by default, and Fortinet says administrators must disable it manually to close the 2FA bypass (per Fortinet FG-IR-19-283).
Which configurations are affected?
Fortinet says the bypass happens when a local user entry has FortiToken 2FA and authenticates against a remote method such as LDAP, and an LDAP group the user belongs to is also used in an authentication policy (per FG-IR-19-283 and Fortinet's 2025-12-24 blog).
What should I do if the 2FA bypass was used?
Fortinet says to treat the FortiGate configuration as compromised and reset all credentials, including those used for LDAP/AD binding, and to contact Fortinet support (per Fortinet's 2025-12-24 PSIRT blog).
How serious is CVE-2020-12812?
NVD scores it CVSS v3.1 9.8 and CISA-ADP 7.5. CISA KEV lists it since 2021-11-03 with known ransomware use, and FIRST EPSS gives 0.45379 (98.81st percentile) in the 2026-11-24 dataset, as of 2026-11-25 (per NVD, CISA KEV and FIRST EPSS).
Questions about this page?