Following previous incident CVE-2022-42475 that occurred January 11 – where a heap-based buffer overflow in FortiOS SSL VPN with exploitation was observed in the wild – the Fortinet Product Security Incident Response Team (PSIRT) proactively initiated a code audit of the SSL-VPN module.
This audit, together with a disclosure from a third-party researchers, Charles Fol and Dany Bach from LEXFO, led to the identification of certain issues Fortinet remediated in the current firmware releases.
Impact from the vulnerability could include data loss and OS and file corruption, according to the advisory. The product sees use mainly in the government, manufacturing, and critical infrastructure sectors.
Products affected by the vulnerability include:
- FortiOS-6K7K version 7.0.10
- FortiOS-6K7K version 7.0.5
- FortiOS-6K7K version 6.4.12
- FortiOS-6K7K version 6.4.10
- FortiOS-6K7K version 6.4.8
- FortiOS-6K7K version 6.4.6
- FortiOS-6K7K version 6.4.2
- FortiOS-6K7K version 6.2.9 through 6.2.13
- FortiOS-6K7K version 6.2.6 through 6.2.7
- FortiOS-6K7K version 6.2.4
- FortiOS-6K7K version 6.0.12 through 6.0.16
- FortiOS-6K7K version 6.0.10
- FortiProxy version 7.2.0 through 7.2.3
- FortiProxy version 7.0.0 through 7.0.9
- FortiProxy version 2.0.0 through 2.0.12
- FortiProxy 1.2 all versions
- FortiProxy 1.1 all versions
- FortiOS version 7.2.0 through 7.2.4
- FortiOS version 7.0.0 through 7.0.11
- FortiOS version 6.4.0 through 6.4.12
- FortiOS version 6.2.0 through 6.2.13
- FortiOS version 6.0.0 through 6.0.16
CVE-2023-27997 is the case number for the vulnerability, which has a CVSS v3 base score of 9.2.
For this reason, if a user has SSL-VPN enabled, Fortinet advised customers to take immediate action to upgrade to the most recent firmware release. If the user is not operating SSL-VPN the risk of this issue is mitigated – however, Fortinet still recommends upgrading.
There are fixes including:
- Upgrade to FortiOS-6K7K version 7.0.12 or above
- Upgrade to FortiOS-6K7K version 6.4.13 or above
- Upgrade to FortiOS-6K7K version 6.2.15 or above
- Upgrade to FortiOS-6K7K version 6.0.17 or above
- Upgrade to FortiProxy version 7.2.4 or above
- Upgrade to FortiProxy version 7.0.10 or above
- Upgrade to FortiOS version 7.4.0 or above
- Upgrade to FortiOS version 7.2.5 or above
- Upgrade to FortiOS version 7.0.12 or above
- Upgrade to FortiOS version 6.4.13 or above
- Upgrade to FortiOS version 6.2.14 or above
- Upgrade to FortiOS version 6.0.17 or above
“Over the past five years, there’s been a persistent trend of vulnerabilities in SSL VPN products such as those from Citrix, Pulse Secure and Fortinet being targeted,” said Satnam Narang, senior staff research engineer at Tenable. “These flaws have not only been exploited by ransomware groups but also by nation-state aligned threat actors with a particular focus on flaws in Fortinet devices. SSL-VPNs are attractive targets due to their Internet-facing nature, providing access to a company’s intranet. They became even more popular at the beginning of the pandemic, as organization’s shifted toward allowing for remote work.
“Pre-authentication flaws are especially valuable to a remote attacker, because it doesn’t require them to already have valid credentials. In the case of CVE-2023-27997, it is in fact a pre-authentication vulnerability, which adds to its criticality. Fortinet says the flaw ‘may have been exploited’ in some limited cases, though no specifics were shared.
“Despite patches being available, the inherent value of the flaw remains significant, considering the ongoing success threat actors achieve by exploiting known, unpatched vulnerabilities. It’s not a question of if, but rather when a public proof-of-concept exploit for this flaw is made public, that we can expect more widespread scanning and exploitation of vulnerable assets.”
Fortinet released other vulnerabilities in its FortiOS including:
- CVE-2023-29180, Null pointer de-reference in SSLVPNd CVSS v3 of 7.3 (High)
- CVE-2023-22640, FortiOS – Out-of-bound-write in SSLVPNd CVSS v3 of 7.1 (High)
- CVE-2023-29181, Format String Bug in Fclicense daemon CVSS v3 of 8.3 (High)
- CVE-2023-29179, Null pointer de-reference in SSLVPNd proxy endpoint CVSS v3 of 6.4 (Medium)
- CVE-2023-22641, Open redirect in SSLVPNd CVSS v3 of 4.1 (Medium)

