FortiOS
CVE-2025-58325
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to FortiOS management CLI
-
ExploitSubmit crafted CLI command
-
ExecutionEscape restricted command context
-
ImpactExecute arbitrary OS commands as system
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Incorrect provision of specified functionality
|
| Exploitation Conditions | Exploitation requires the attacker to already hold a privileged, authenticated session on the FortiOS CLI (management plane) - consistent with CVSS PR:H - and to issue specific crafted CLI commands that the system improperly handles (CWE-684, incorrect provision of specified functionality), allowing escape to underlying OS command execution. Limiting factors: no remote network vector (AV:L), no unauthenticated path, and the need for high-privilege CLI access mean this is not exploitable against default remote-facing configurations by external unauthenticated attackers; realistic risk is confined to environments where lower-trust or additional users are granted administrative CLI access, or where a privileged account is compromised. Affected builds are FortiOS 7.6.0, 7.4.0-7.4.5, 7.2.5-7.2.10, 7.0.0-7.0.15, and all 6.4 versions. |
| Impact | This is a moderate-severity local privilege/command-execution issue, not an urgent remote threat. The CVSS 3.1 vector (AV:L/AC:L/PR:H/UI:N, score 6.7) confirms exploitation requires local access AND already-high privileges on the device, which sharply limits the attacker population - the primary concern is a privileged administrator breaking out of the restricted FortiOS CLI to run arbitrary system commands (C:H/I:H/A:H). All real-world exploitation signals point low: EPSS is 0.29% (19th percentile), the CVE is NOT in CISA KEV, and no public POC is referenced. The signals are consistent rather than conflicting - high technical impact but very constrained access (PR:H) correctly yields a Medium, not Critical, rating. Because PR:H means the attacker must already hold a privileged CLI account, the practical risk is an authorization/sandbox-escape concern (a lower-tier admin or compromised privileged account escalating to underlying OS command execution) rather than mass exploitation. This is a patch-in-normal-cycle item for most defenders, with higher priority only where untrusted or lower-trust users are granted CLI/admin access to FortiGate devices. |
| Exploit ScenarioDerived | A FortiOS administrator with legitimate but restricted CLI access (or an attacker who has compromised such an account) issues specially crafted CLI commands that the system improperly handles, escaping the intended command sandbox to execute arbitrary commands on the underlying operating system. Because the CVSS vector is AV:L/AC:L/PR:H, this requires existing privileged local/management-plane access and is low-complexity once that access is held. No public exploit code has been identified at the time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
System command execution on FortiOS 7.6.0, 7.4.0 through 7.4.5, 7.2.5 through 7.2.10, 7.0.0 through 7.0.15 and all 6.4 branches allows an authenticated attacker who already holds a high-privilege CLI session to escape the intended CLI restriction and run commands on the underlying operating system by issuing crafted commands (CWE-684). Because the vector is local (AV:L) with PR:H, this is not reachable by unauthenticated remote attackers and does not affect default remote-facing configurations. EPSS is 0.29% (19th percentile) and no public exploit identified at time of analysis; realistic risk is confined to environments where lower-trust or additional users are granted administrative CLI access, or where a privileged account is compromised.
RemediationAI
Upgrade to a fixed FortiOS firmware release as specified in the Fortinet PSIRT advisory FG-IR-24-361 (https://fortiguard.fortinet.com/psirt/FG-IR-24-361); exact fixed version numbers are not enumerated in the provided data, so confirm the target build against that advisory before scheduling maintenance windows. If immediate upgrade is not possible, reduce the attack surface by limiting administrative CLI access strictly to trusted administrators, removing unused or low-trust admin accounts, and enforcing least-privilege administrator profiles so that no account holds more CLI capability than its role requires. Enable and centralize CLI command logging (for example to syslog or FortiAnalyzer) and alert on unexpected or malformed CLI commands, accepting the added logging overhead and the need to tune noisy legitimate administrative activity. The trade-off of tight admin restriction is reduced operational flexibility for shared or delegated administration, but given the AV:L/PR:H vector it is the most effective compensating control until the patched firmware is applied.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-684 (Incorrect Provision of Specified Functionality) covers cases where an implemented feature behaves in a way that was not intended, and here that means the FortiOS management-plane CLI does not properly constrain the commands it accepts. FortiOS administrators normally interact with a restricted CLI; the flaw lets crafted CLI input cause the system to invoke operations it should not, resulting in execution of system commands at the OS level. The CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H vector confirms the attack requires local access and high privileges (an authenticated administrative CLI session), with no user interaction and high impact to confidentiality, integrity, and availability of the appliance. The provided CPE entries are wildcarded FortiOS OS identifiers (cpe:2.3:o:fortinet:fortios:*), so branch-level scope must be taken from the advisory: 7.6.0, 7.4.0-7.4.5, 7.2.5-7.2.10, 7.0.0-7.0.15 and all 6.4 releases. Note that the supplied tags include 'Information Disclosure', which is narrower than the CWE-684 command-execution behavior described, and the low EPSS score reflects the demanding local, high-privilege prerequisite rather than any confirmed exploitation activity.
Know when Fortios gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Requires an existing privileged CLI session (PR:H) with local management-plane access (AV:L) and no user interaction; successful OS command execution yields full confidentiality, integrity, and availability impact.
Primary rating from NVD.
CVSS VectorNVD
DescriptionNVD
An Incorrect Provision of Specified Functionality vulnerability [CWE-684] in FortiOS 7.6.0, 7.4.0 through 7.4.5, 7.2.5 through 7.2.10, 7.0.0 through 7.0.15, 6.4 all versions may allow a local authenticated attacker to execute system commands via crafted CLI commands.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)NVD
An authentication bypass using an alternate path or channel [CWE-288] in Fortinet FortiOS version 7.2.0 through 7.2.1 an
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
A out-of-bounds write in Fortinet FortiOS versions 7.4.0 through 7.4.2, 7.2.0 through 7.2.6, 7.0.0 through 7.0.13, 6.4.0
A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, versi
FortiOS SSL-VPN contains an improper authentication vulnerability that allows users to bypass two-factor authentication
Fortinet FortiAnalyzer before 5.0.12 and 5.2.x before 5.2.5; FortiSwitch 3.3.x before 3.3.3; FortiCache 3.0.x before 3.0
Buffer overflow in the Cookie parser in Fortinet FortiOS 4.x before 4.1.11, 4.2.x before 4.2.13, and 4.3.x before 4.3.9
Remote code execution in Fortinet FortiOS (6.4 through 7.6.3) and FortiSwitchManager (7.0.x/7.2.x) lets an attacker run
Path traversal vulnerability in Fortinet FortiOS, FortiProxy, FortiPAM, and FortiSwitchManager allows authenticated admi
Cross-site scripting (XSS) vulnerability in the sslvpn login page in Fortinet FortiOS 5.2.x before 5.2.3 allows remote a
FortiOS and FortiProxy contain an authentication bypass allowing unauthenticated attackers with knowledge of upstream/do
An Exposure of Sensitive Information to an Unauthorized Actor vulnerability [CWE-200] vulnerability in Fortinet FortiOS
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB