CWE
134
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2023-40721: FortiOS / FortiProxy / FortiPAM / FortiSwitchManager - Format string vulnerability in CLI commands

First published: Tue Feb 11 2025(Updated: )

A use of externally-controlled format string vulnerability [CWE-134] in Fortinet FortiOS version 7.4.0 through 7.4.1 and before 7.2.6, FortiProxy version 7.4.0 and before 7.2.7, FortiPAM version 1.1.2 and before 1.0.3, FortiSwitchManager version 7.2.0 through 7.2.2 and before 7.0.2 allows a privileged attacker to execute arbitrary code or commands via specially crafted requests.

Credit: psirt@fortinet.com

Affected SoftwareAffected VersionHow to fix
FortiOS>=7.4.0<=7.4.1<7.2.6
Fortinet FortiProxy>=7.4.0<7.2.7
FortiGuard FortiPAM<1.0.3
Fortinet FortiSwitchManager>=7.2.0<=7.2.2<7.0.2

Remedy

Please upgrade to FortiOS version 7.4.2 or above Please upgrade to FortiOS version 7.2.7 or above Please upgrade to FortiPAM version 1.2.0 or above Please upgrade to FortiSwitchManager version 7.2.3 or above Please upgrade to FortiSwitchManager version 7.0.3 or above Please upgrade to FortiProxy version 7.4.1 or above Please upgrade to FortiProxy version 7.2.8 or above

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2023-40721?

    CVE-2023-40721 is classified as a high-severity vulnerability due to its potential for privilege escalation.

  • How do I fix CVE-2023-40721?

    To mitigate CVE-2023-40721, upgrade Fortinet FortiOS, FortiProxy, FortiPAM, and FortiSwitchManager to the latest patched versions.

  • Which versions are affected by CVE-2023-40721?

    CVE-2023-40721 affects FortiOS versions 7.4.0 to 7.4.1 and prior to 7.2.6, FortiProxy versions 7.4.0 and prior to 7.2.7, FortiPAM versions before 1.0.3, and FortiSwitchManager versions 7.2.0 to 7.2.2 and prior to 7.0.2.

  • What type of vulnerability is CVE-2023-40721?

    CVE-2023-40721 is categorized as a use of externally-controlled format string vulnerability, which can lead to privilege escalation.

  • Is there a workaround for CVE-2023-40721?

    Currently, the recommended solution for CVE-2023-40721 is to update to the latest secure versions of the affected Fortinet products, as there are no effective workarounds.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203