CVE-2023-40721
FortiOS vulnerability analysis and mitigation

Overview

A use of externally-controlled format string vulnerability [CWE-134] was discovered in Fortinet products including FortiOS, FortiProxy, FortiPAM, and FortiSwitchManager. The vulnerability (CVE-2023-40721) was disclosed on February 11, 2025, and affects multiple versions of these products. The vulnerability exists in the CLI component and allows a privileged attacker to execute arbitrary code or commands via specially crafted requests (Fortiguard PSIRT, NVD).

Technical details

The vulnerability is classified as a format string vulnerability (CWE-134) in the CLI component of affected Fortinet products. It has been assigned a CVSSv3 score of 6.7 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, indicating local access is required and high privileges are needed to exploit the vulnerability (NVD).

Impact

If successfully exploited, this vulnerability allows a privileged attacker to execute unauthorized code or commands on the affected systems. The high CVSS impact scores for confidentiality, integrity, and availability (C:H/I:H/A:H) indicate that successful exploitation could result in significant system compromise (Fortiguard PSIRT).

Mitigation and workarounds

Fortinet has released patches for affected products and recommends upgrading to the following versions: FortiOS version 7.4.2 or above, FortiOS version 7.2.7 or above, FortiOS version 7.0.14 or above, FortiPAM version 1.2.0 or above, FortiSwitchManager version 7.2.3 or above, FortiSwitchManager version 7.0.3 or above, FortiProxy version 7.4.1 or above, FortiProxy version 7.2.8 or above, and FortiProxy version 7.0.15 or above (Fortiguard PSIRT).

Community reactions

The vulnerability was responsibly disclosed by Ryan Quasney from BishopFox to Fortinet. Fortinet acknowledged the researcher's contribution in their security advisory (Fortiguard PSIRT).

Additional resources


SourceThis report was generated using AI

Related FortiOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59718CRITICAL9.8
  • FortiOSFortiOS
  • cpe:2.3:o:fortinet:fortios
YesYesDec 09, 2025
CVE-2025-58413HIGH7.5
  • FortiOSFortiOS
  • cpe:2.3:o:fortinet:fortios
NoYesNov 18, 2025
CVE-2024-47570MEDIUM6.6
  • FortiOSFortiOS
  • cpe:2.3:o:fortinet:fortios
NoYesDec 09, 2025
CVE-2025-62631MEDIUM5.6
  • FortiOSFortiOS
  • cpe:2.3:o:fortinet:fortios
NoYesDec 09, 2025
CVE-2024-40593MEDIUM4.4
  • FortiOSFortiOS
  • cpe:2.3:o:fortinet:fortios
NoYesDec 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management