Fortinet Fortigate - Privilege escalation via switch-control CLI command (FG-IR-21-242)

high Nessus Plugin ID 165982


Fortinet Firewall is missing one or more security-related updates.


The version of Fortigate installed on the remote host is prior to tested version. It is, therefore, affected by a vulnerability as referenced in the FG-IR-21-242 advisory.

- Animproper neutralization of special elements used in an os command [CWE-78] vulnerability in FortiOSmay allow an authenticated attacker to execute privileged commands on a linked FortiSwitch via diagnostic CLI commands. (CVE-2021-44171)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.


Upgrade to Fortigate version 6.0.15 / 6.2.11 / 6.4.9 / 7.0.7 or later.

Plugin Details

Severity: High

ID: 165982

File Name: fortigate_FG-IR-21-242.nasl

Version: 1.7

Type: local

Family: Firewalls

Published: 10/10/2022

Updated: 2/24/2023

Supported Sensors: Nessus

Risk Information


Risk Factor: Medium

Score: 5.9


Risk Factor: High

Base Score: 7.7

Temporal Score: 5.7

Vector: CVSS2#AV:A/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2021-44171


Risk Factor: High

Base Score: 8

Temporal Score: 7

Vector: CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:fortinet:fortios

Required KB Items: Host/Fortigate/version, Host/Fortigate/model

Exploit Ease: No known exploits are available

Patch Publication Date: 10/10/2022

Vulnerability Publication Date: 10/10/2022

Reference Information

CVE: CVE-2021-44171

IAVA: 2022-A-0401-S