Skip to main content

FortiOS CVE-2025-31514

MEDIUM
Insertion of Sensitive Information into Log File (CWE-532)
2025-10-14 psirt@fortinet.com
4.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain high-privilege read-only admin credentials
  2. Delivery
    Authenticate to FortiOS management interface over network
  3. Exploit
    Execute diagnose command or access system logs
  4. Execution
    Extract 2FA-related sensitive data from log output
  5. Impact
    Use 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.

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

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

Alert me

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

NVD PRIMARY 4.3 MEDIUM
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

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

Lifecycle Timeline

2
Severity Changed
Oct 18, 2026 - 21:38 NVD
LOW MEDIUM
CVSS changed
Oct 18, 2026 - 21:38 NVD
2.7 (LOW) 4.3 (MEDIUM)

DescriptionNVD

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

EPSS Score
0.0%
Top 87% exploitable
Data Quality
496 sources
Confidence: Medium

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.0%
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
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
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:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*
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