Skip to main content

FortiOS CVE-2025-58325

MEDIUM
Incorrect Provision of Specified Functionality (CWE-684)
2025-10-14 psirt@fortinet.com
6.7
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to FortiOS management CLI
  2. Exploit
    Submit crafted CLI command
  3. Execution
    Escape restricted command context
  4. Impact
    Execute 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

NVD PRIMARY 6.7 MEDIUM
AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.7 MEDIUM

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.

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

EPSS Score
0.3%
Top 81% exploitable
Prevalence
High
FortiOS runs on widely-deployed Fortinet FortiGate enterprise security appliances
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:o:fortinet:fortios:7.6.0:*:*:*:*:*:*:*
CVE-2022-40684 CRITICAL POC
9.8 Oct 18

An authentication bypass using an alternate path or channel [CWE-288] in Fortinet FortiOS version 7.2.0 through 7.2.1 an

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2024-21762 CRITICAL POC
9.8 Feb 09

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

CVE-2023-27997 CRITICAL
9.8 Jun 13

A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, versi

CVE-2020-12812 CRITICAL
9.8 Jul 24

FortiOS SSL-VPN contains an improper authentication vulnerability that allows users to bypass two-factor authentication

CVE-2016-1909 CRITICAL POC
9.8 Jan 15

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

CVE-2016-6909 CRITICAL POC
9.8 Aug 24

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

CVE-2025-25249 CRITICAL POC
9.8 Jan 13

Remote code execution in Fortinet FortiOS (6.4 through 7.6.3) and FortiSwitchManager (7.0.x/7.2.x) lets an attacker run

CVE-2025-61624 MEDIUM POC
6.5 Apr 14

Path traversal vulnerability in Fortinet FortiOS, FortiProxy, FortiPAM, and FortiSwitchManager allows authenticated admi

CVE-2015-1880 MEDIUM POC
4.3 May 12

Cross-site scripting (XSS) vulnerability in the sslvpn login page in Fortinet FortiOS 5.2.x before 5.2.3 allows remote a

CVE-2025-24472 HIGH
8.1 Feb 11

FortiOS and FortiProxy contain an authentication bypass allowing unauthenticated attackers with knowledge of upstream/do

CVE-2025-68686 MEDIUM POC
5.9 Feb 10

An Exposure of Sensitive Information to an Unauthorized Actor vulnerability [CWE-200] vulnerability in Fortinet FortiOS

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy