CVE-2021-26115 is a high severity (CVSS 7.8) OS command injection in the FortiWAN command line interface, letting a local authenticated but unprivileged user escalate to root. Fortinet says FortiWAN 4.5.7 and below are affected and to upgrade to 4.5.8 or above.
What's affected
- FortiWAN versions 4.5.7 and below, per Fortinet advisory FG-IR-21-069 and the NVD record.
- Fixed in FortiWAN 4.5.8 or above, per Fortinet.
- The advisory (published 7 July 2021) rates it High, CVSS 7.8, authenticated, Known Exploited No, with impact listed as escalation of privilege. The record agrees and has kev false.
- The attacker must already be a local authenticated user.
- Fortinet credits Resecurity for reporting the issue under responsible disclosure.
How to check if you're exposed
Check the firmware version on the FortiWAN administration interface and compare with 4.5.8. Then list who has CLI access to the appliance, since the attack needs a local account.
Any account that can open the CLI, including read only or shared support accounts, is a possible starting point.
What to do now
- Upgrade FortiWAN to 4.5.8 or later.
- Review and remove CLI accounts that are not needed, and remove shared accounts.
- Restrict CLI and management access to a dedicated management network.
- Apply the fix for CVE-2021-26102 in the same upgrade, since 4.5.8 is the fix point for both.
- Review logs for unusual CLI activity from before the upgrade.
Why it matters
The class is CWE-78, OS command injection. Input passed to a CLI command is built into a command that the operating system runs, and special characters can change what runs. Here the record says a specially crafted command lets an unprivileged local user become root.
Local escalation bugs on appliances are most dangerous when combined with another weakness that gives a foothold, such as shared credentials or the unauthenticated bug CVE-2021-26102 in the same product. Fixing both at once removes both steps.
It is also worth asking who really needs CLI access. Over time, appliances collect accounts for contractors, monitoring tools and former staff. A short access review before the upgrade turns this patch into a cleanup as well, and leaves fewer local accounts for any later escalation bug to start from.
Quick check
Can someone exploit this remotely without an account?
No. The advisory says the attacker is authenticated and local. Another flaw in the same product, CVE-2021-26102, does not need a login.
What version do I need?
FortiWAN 4.5.8 or above, per Fortinet.
Sources
Last reviewed: 19 October 2026.