patchminder
Proof of concept · GitHub CVE-2023-25610

Remote code executionin Fortinet FortiSwitchManager.

Published 24 Mar 2025 · Updated 24 Mar 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 9.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 18.3% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
No source names a fixed version yet
In plain words

A buffer underwrite ('buffer underflow') vulnerability in the administrative interface of Fortinet FortiOS version 7.2.0 through 7.2.3, version 7.0.0 through 7.0.6, version 6.4.0 through 6.4.11 and version 6.2.12 and below, FortiProxy version 7.2.0 through 7.2.2, version 7.0.0 through 7.0.8, version 2.0.12 and below and FortiOS-6K7K version 7.0.5, version 6.4.0 through 6.4.10 and version 6.2.0 through 6.2.10 and below allows a remote unauthenticated attacker to execute arbitrary code or commands via specifically crafted requests.

What to do now
  • Please upgrade to FortiOS version 7.4.0 or above Please upgrade to FortiOS version 7.2.4 or above Please upgrade to FortiOS version 7.0.10 or above Please upgrade to FortiOS version 6.4.12 or above Please upgrade to FortiOS version 6.2.13 or above Please upgrade to FortiWeb version 7.2.2 or above Please upgrade to FortiWeb version 7.0.7 or above Please upgrade to FortiWeb version 6.4.3 or above Please upgrade to FortiWeb version 6.3.23 or above Please upgrade to FortiWeb version 6.2.8 or above Please upgrade to FortiWeb version 6.1.4 or above Please upgrade to upcoming FortiOS version 6.0.17 or above Please upgrade to FortiSwitchManager version 7.2.2 or above Please upgrade to FortiSwitchManager version 7.0.2 or above Please upgrade to FortiProxy version 7.2.3 or above Please upgrade to FortiProxy version 7.0.9 or above Please upgrade to FortiManager version 7.2.1 or above Please upgrade to FortiManager version 7.0.5 or above Please upgrade to FortiManager version 6.4.12 or above Please upgrade to FortiManager version 6.2.11 or above Please upgrade to FortiManager version 6.0.12 or above Please upgrade to FortiOS-6K7K version 7.0.10 or above Please upgrade to FortiOS-6K7K version 6.4.12 or above Please upgrade to FortiOS-6K7K version 6.2.13 or above Please upgrade to FortiAnalyzer version 7.2.1 or above Please upgrade to FortiAnalyzer version 7.0.5 or above Please upgrade to FortiAnalyzer version 6.4.12 or above Please upgrade to FortiAnalyzer version 6.2.11 or above Please upgrade to FortiAnalyzer version 6.0.12 or above ## Workaround for FortiOS: Disable HTTP/HTTPS administrative interface OR Limit IP addresses that can reach the administrative interface: ``` config firewall address edit my_allowed_addresses set subnet Y IP MY SUBNET end ``` Then create an Address Group: ``` config firewall addrgrp edit MGMT_IPs set member my_allowed_addresses end ``` Create the Local in Policy to restrict access only to the predefined group on management interface (here: port1): ``` config firewall local-in-policy edit 1 set intf port1 set srcaddr MGMT_IPs set dstaddr all set action accept set service HTTPS HTTP set schedule always set status enable next edit 2 set intf any set srcaddr all set dstaddr all set action deny set service HTTPS HTTP set schedule always set status enable end ``` If using non default ports, create appropriate service object for GUI administrative access: ``` config firewall service custom edit GUI_HTTPS set tcp-portrange admin-sport next edit GUI_HTTP set tcp-portrange admin-port end ``` Use these objects instead of "HTTPS HTTP" in the local-in policy 1 and 2 below. When using an HA reserved management interface, the local in policy needs to be configured slightly differently · please see: https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-configure-a-local-in-policy-on-a-HA/ta-p/222005 Please contact customer support for assistance. ## Workaround for FortiManager and FortiAnalyzer: Limit IP addresses that can reach the administrative interface ## Workaround for FortiWeb: Disable HTTP/HTTPS administrative interface OR Limit IP addresses that can reach the administrative interface

Not confirmed by any source yet: fixed version not confirmed. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
FortiSwitchManager
7.2.0 to 7.2.1
Not confirmed
CVE record
FortiSwitchManager
7.0.0 to 7.0.1
Not confirmed
CVE record
FortiAnalyzer
7.2.0
Not confirmed
CVE record
FortiAnalyzer
7.0.0 to 7.0.4
Not confirmed
CVE record
FortiAnalyzer
6.4.0 to 6.4.11
Not confirmed
CVE record
FortiAnalyzer
6.2.0 to 6.2.10
Not confirmed
CVE record
FortiAnalyzer
6.0.0 to 6.0.11
Not confirmed
CVE record
FortiOS-6K7K
7.0.5
Not confirmed
CVE record
FortiOS-6K7K
6.4.10
Not confirmed
CVE record
FortiOS-6K7K
6.4.8
Not confirmed
CVE record
FortiOS-6K7K
6.4.6
Not confirmed
CVE record
FortiOS-6K7K
6.4.2
Not confirmed
CVE record
FortiOS-6K7K
6.2.9 to 6.2.12
Not confirmed
CVE record
FortiOS-6K7K
6.2.6 to 6.2.7
Not confirmed
CVE record
FortiOS-6K7K
6.2.4
Not confirmed
CVE record
FortiOS-6K7K
6.0.12 to 6.0.18
Not confirmed
CVE record
FortiOS-6K7K
6.0.10
Not confirmed
CVE record
FortiProxy
7.2.0 to 7.2.2
Not confirmed
CVE record
FortiProxy
7.0.0 to 7.0.8
Not confirmed
CVE record
FortiProxy
2.0.0 to 2.0.14
Not confirmed
CVE record
FortiProxy
1.2.0 to 1.2.13
Not confirmed
CVE record
FortiProxy
1.1.0 to 1.1.6
Not confirmed
CVE record
FortiOS
7.2.0 to 7.2.3
Not confirmed
CVE record
FortiOS
7.0.0 to 7.0.9
Not confirmed
CVE record
FortiOS
6.4.0 to 6.4.11
Not confirmed
CVE record
FortiOS
6.2.0 to 6.2.12
Not confirmed
CVE record
FortiOS
6.0.0 to 6.0.18
Not confirmed
CVE record
FortiOS
5.6.0 to 5.6.14
Not confirmed
CVE record
FortiOS
5.4.0 to 5.4.13
Not confirmed
CVE record
FortiOS
5.2.0 to 5.2.15
Not confirmed
CVE record
FortiOS
5.0.0 to 5.0.14
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 8 Feb 2023
    CVE ID reserved by fortinet.
  2. 17 Jun 2023
    First public proof of concept on GitHub.
  3. 24 Mar 2025
    Published in the CVE List.
  4. 24 Mar 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundqi4L/CVE-2023-2561023 stars · created 17 Jun 2023FortiOS 管理界面中的堆内存下溢导致远程代码执行

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other FortiSwitchManager vulnerabilities

Same weakness:

All CWE-124 vulnerabilities

References
Cite this page

Patchminder. CVE-2023-25610: Remote code execution in Fortinet FortiSwitchManager. https://patchminder.com/cve/cve-2023-25610/ (accessed 5 December 2026).