Security Advisory

CVE-2019-5591: FortiOS LDAP Server Impersonation

Last updated:
  • CVE-2019-5591

CVE-2019-5591 is a default configuration flaw in Fortinet FortiOS 6.2.0 and below: the FortiGate does not check the LDAP server's identity, so an attacker on the same subnet can pose as the LDAP server and intercept sensitive information. NVD scores it 6.5 and CISA KEV lists it with known ransomware use. The fix is to enable server-identity-check; upgrading alone does not enable it.

Vulnerability summary

CVSS base score

6.5

Medium severity

EPSS score (FIRST)

18.6%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2019-5591 · Source: NVD

Affected components

ComponentCPEVersion range
Fortinet FortiOS (FortiGate firmware)cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*6.2.0 and below; on 6.0.3 and later enable server-identity-check with LDAPS and the LDAP server CA certificate; 6.2.1 and later enable it by default only on fresh installs, not on upgrade

What does this mean for affected devices?

NVD describes CVE-2019-5591 as "a Default Configuration vulnerability in FortiOS" that "may allow an unauthenticated attacker on the same subnet to intercept sensitive information by impersonating the LDAP server". NVD's Primary score is CVSS v3.1 6.5 (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) and NVD CVSS v2 3.3, with CWE-306; CISA-ADP gives the same 6.5, and Fortinet's own advisory shows 5.1. NVD's CPE configuration covers FortiOS up to and including 6.2.0 (NVD, CVE record).

How do I fix CVE-2019-5591 on a FortiGate?

Fortinet advisory FG-IR-19-037, titled "By default, FG does not verify LDAP server identity", lists FortiOS 6.2.0 and below as affected. On FortiOS 6.0.3 to 6.2.0, enabling the CLI option server-identity-check in the LDAP server settings "entirely prevents the issue"; it can be enabled only once LDAPS (secure ldaps) and the LDAP server's ca-cert are set. FortiOS 6.2.1 and above enable the check by default, but only on a fresh install: "for compatibility reasons" the setting is kept unchanged across firmware upgrades, so a device upgraded from 6.0.3-6.2.0 must have the option enabled by hand, before or after the upgrade.

Is CVE-2019-5591 exploited?

Yes. The FBI and CISA joint advisory AA21-092A (2021-04-02) reported APT actors enumerating devices for this CVE and CVE-2020-12812 while scanning for CVE-2018-13379, and told organisations to patch all three immediately. 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.18566, the 97.31st percentile, in the 2026-11-24 dataset (FIRST EPSS). A second LDAP credential flaw on KEV is CVE-2018-13374. The class is covered in how to fix authentication bypass in embedded firmware and ranking in KEV and EPSS vulnerability prioritization.

How to fix this class of issueThis advisory's weakness class is Authentication bypass. Our practical guide covers how to detect, fix, verify and disclose it: How to fix authentication bypass in embedded firmware.

Evidence

  • NVD (Analyzed): default configuration vulnerability in FortiOS lets an unauthenticated attacker on the same subnet intercept sensitive information by impersonating the LDAP server; NVD Primary CVSS v3.1 6.5 AV:A/C:H, NVD CVSS v2 3.3; CISA-ADP Secondary 6.5; CWE-306; CPE FortiOS <= 6.2.0; published 2020-08-14; read 2026-11-25. — NVD
  • FG-IR-19-037 (2019-07-26): FortiOS 6.2.0 and below; on 6.0.3-6.2.0 enabling server-identity-check entirely prevents the issue, requires secure ldaps and ca-cert; 6.2.1 and above enable it by default on fresh install; value kept unchanged across upgrades so it must be enabled manually; advisory CVSSv3 5.1. — Fortinet PSIRT FG-IR-19-037
  • 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; patch immediately. — FBI and CISA joint advisory AA21-092A
  • CVE record PUBLISHED, CNA Fortinet, 2020-08-14; 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-306; checked 2026-11-25. — CISA KEV
  • EPSS 0.18566, percentile 0.97309, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Fortinet PSIRT FG-IR-19-037
  3. FBI and CISA joint advisory AA21-092A (PDF)
  4. CVE.org record CVE-2019-5591 (CNA: Fortinet)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Does upgrading FortiOS fix CVE-2019-5591?

Not by itself. Fortinet says FortiOS 6.2.1 and later enable server-identity-check only on fresh installs; on upgraded devices the old value is kept, so administrators must enable it manually (per Fortinet FG-IR-19-037).

What does server-identity-check need?

Fortinet says the option can be enabled only when the LDAP server entry uses LDAPS (secure ldaps) and has the LDAP server's CA certificate set (ca-cert). With it on, FortiOS 6.0.3 to 6.2.0 are fully protected (per FG-IR-19-037).

Who can exploit CVE-2019-5591?

An unauthenticated attacker on the same subnet as the FortiGate, who impersonates the LDAP server. NVD scores it 6.5 with an adjacent-network attack vector (per NVD and FG-IR-19-037).

Is CVE-2019-5591 exploited?

Yes. FBI and CISA reported APT actors enumerating for it in 2021, and CISA KEV lists it since 2021-11-03 with known ransomware use. FIRST EPSS gives 0.18566 (97.31st percentile) in the 2026-11-24 dataset, as of 2026-11-25 (per AA21-092A, CISA KEV and FIRST EPSS).