FortiOS
CVE-2025-31514
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain high-privilege read-only admin credentials
-
DeliveryAuthenticate to FortiOS management interface over network
-
ExploitExecute diagnose command or access system logs
-
ExecutionExtract 2FA-related sensitive data from log output
-
ImpactUse recovered 2FA material to bypass MFA for privileged accounts
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
|
| Exploitation Conditions | The attacker must already hold at least read-only administrative privileges on the affected FortiOS or FortiProxy device, as confirmed by the CVSS vector PR:H. Exploitation requires either access to system log files or the ability to execute diagnose commands via the FortiOS CLI or management interface - both of which are restricted to authenticated administrators. The vulnerability is not exploitable by unauthenticated users or low-privilege accounts. Exploitation over the network (AV:N) is possible if the management interface is network-reachable, but this does not change the authentication requirement. Limiting factors include: the requirement for high-privilege credentials before any exploitation can occur, the low confidentiality impact (partial 2FA data rather than full credential compromise), and the absence of integrity or availability impact. Organizations that restrict management interface access to dedicated out-of-band networks or VPNs substantially reduce exposure. |
| Impact | The composite risk picture is consistently low across all available signals. CVSS 2.7 (Low) is driven by PR:H, meaning exploitation is limited to already-authenticated users with high-level privileges - the attacker must already have substantial access to the device before the vulnerability is useful. Scope is Unchanged (S:U), confidentiality impact is Low (C:L), and there is no integrity or availability impact. EPSS at 0.04% in the 13th percentile indicates that exploitation in the wild is highly unlikely based on historical patterns for vulnerabilities of this class. No CISA KEV listing and no public POC have been identified. The primary residual risk is insider threat or post-compromise lateral reconnaissance: a threat actor who has already gained administrative read-only access could leverage exposed 2FA data to escalate further or persist. The CVSS attack vector is Network (AV:N), meaning the log access or diagnose command could theoretically be exercised remotely over a management interface - but the PR:H requirement neutralizes the network-reachability advantage considerably. No conflicting signals are present; all indicators align on a low-priority finding relative to more severe Fortinet CVEs. |
| Exploit ScenarioDerived | An internal administrator or a threat actor who has already compromised a high-privilege read-only account on a FortiGate or FortiProxy appliance connects to the management interface and either reviews system log output or executes a diagnose command. From the log data, the attacker extracts 2FA tokens or seed material associated with other administrative accounts, which can then be used to bypass two-factor authentication requirements for those accounts - enabling persistence or privilege escalation without triggering standard credential compromise alerts. No public POC has been identified, and exploitation would require pre-existing high-privilege access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 09, 2026
Sensitive 2FA-related information is written to FortiOS log files and exposed via diagnose commands, allowing a highly privileged attacker with at least read-only administrative access to recover two-factor authentication data. Affected versions span FortiOS 6.4 through 7.6.3 and FortiProxy across all versions per CPE data, representing a wide installed base. No public exploit code exists and no active exploitation has been confirmed; EPSS of 0.04% at the 13th percentile reflects minimal real-world exploitation pressure at this time.
RemediationAI
The primary remediation is to apply vendor-released patches per Fortinet PSIRT advisory FG-IR-24-452 (https://fortiguard.fortinet.com/psirt/FG-IR-24-452). Exact fixed versions are not enumerated in the available input data and must be confirmed directly from the advisory - do not assume a version is fixed without verification. As a compensating control pending patching, restrict access to FortiOS diagnostic facilities and management interfaces to only the minimum required administrative accounts, enforcing the principle of least privilege to reduce the pool of principals who can access logs or execute diagnose commands. Additionally, review and audit which accounts hold read-only or higher administrative privileges on affected appliances, and revoke unnecessary access. For Siemens-embedded deployments, consult Siemens SSA-864900 for product-specific guidance, as patch availability may differ from standalone FortiOS timelines. There are no known workarounds that fully mitigate the log exposure itself without patching.
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
FortiOS is Fortinet's proprietary network operating system powering FortiGate appliances, widely deployed as enterprise firewalls, VPN concentrators, and unified threat management platforms. The root cause is CWE-532 (Insertion of Sensitive Information into Log File), a class of vulnerability where the application inadvertently persists security-sensitive data - in this case, 2FA tokens or seeds - in diagnostic logs or exposes them via the built-in diagnose CLI facility. CPE data confirms impact across cpe:2.3:o:fortinet:fortios and cpe:2.3:a:fortinet:fortiproxy, indicating the flaw is present in both the OS-level FortiGate product line and the dedicated FortiProxy web proxy appliances. The Siemens CERT advisory (SSA-864900) indicates downstream impact on Siemens industrial/OT products that embed FortiOS or FortiProxy components, broadening the affected surface beyond Fortinet-branded hardware.
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:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
An Insertion of Sensitive Information into Log File vulnerability [CWE-532] in FortiOS 7.6.0 through 7.6.3, 7.4 all versions, 7.2 all versions, 7.0 all versions, 6.4 all versions may allow an attacker with at least read-only privileges to retrieve sensitive 2FA-related information via observing logs or via diagnose command.
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
VulDB
GitHub PoC
Exploit-DB