Security Advisory

CVE-2025-58034: FortiWeb Authenticated OS Command Injection

Last updated:
  • CVE-2025-58034

CVE-2025-58034 is an OS command injection in Fortinet FortiWeb appliances running 7.0 to 8.0: an attacker who is already authenticated can run code on the underlying system through crafted HTTP requests or CLI commands. Fortinet scores it 7.2, has seen it exploited, and CISA KEV lists it. Upgrade to 7.0.12, 7.2.12, 7.4.11, 7.6.6 or 8.0.2.

Vulnerability summary

CVSS base score

7.2

High severity

EPSS score (FIRST)

5.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2025-58034 · Source: NVD (Fortinet CNA Secondary score only, not NVD Primary)

Affected components

ComponentCPEVersion range
Fortinet FortiWebcpe:2.3:a:fortinet:fortiweb:*:*:*:*:*:*:*:*8.0.0 through 8.0.1 (fixed in 8.0.2); 7.6.0 through 7.6.5 (fixed in 7.6.6); 7.4.0 through 7.4.10 (fixed in 7.4.11); 7.2.0 through 7.2.11 (fixed in 7.2.12); 7.0.0 through 7.0.11 (fixed in 7.0.12); FortiWeb 6.4 not affected; FortiAppSec Cloud not impacted (Fortinet FG-IR-25-513)

What does this mean for affected devices?

The CVE record, published by Fortinet as CNA on 2025-11-18, describes an OS command injection (CWE-78) in FortiWeb that "may allow an authenticated attacker to execute unauthorized code on the underlying system via crafted HTTP requests or CLI commands". Fortinet scores it CVSS v3.1 7.2 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H): the attacker needs high privileges. NVD shows only that CNA score and no Primary score of its own, though it has added CPE ranges for 7.0.0 up to 8.0.1; the CISA KEV listing is the reason to act (NVD, CVE record). The version list in the CVE record stops at 7.6.4, 7.4.8 and 7.2.11 and omits 8.0; Fortinet's advisory and NVD's description name the wider ranges below.

Which FortiWeb firmware fixes CVE-2025-58034?

Fortinet's advisory FG-IR-25-513, "Multiple OS command injection in API and CLI", gives one fixed build per branch: FortiWeb 8.0.2, 7.6.6, 7.4.11, 7.2.12 and 7.0.12 or above. FortiWeb 6.4 is not affected and the FortiAppSec Cloud service is not impacted. The CSAF file lists the same ranges. The advisory names no workaround.

Why does an authenticated flaw matter?

An attacker first needs a FortiWeb administrator session. On the same FortiWeb branches, the path traversal CVE-2025-64446, published four days earlier and also in KEV, lets an unauthenticated attacker run administrative commands, so patch for both. Keeping the admin GUI and API off the internet, as CISA's BOD 23-02 on internet-exposed management interfaces requires for federal agencies, removes the remote route to both. The class fix for the injection is in how to fix command injection in embedded firmware.

Is CVE-2025-58034 exploited?

Yes. The advisory states "Fortinet has observed this to be exploited in the wild"; Fortinet credits its own threat intelligence and Trend Research. CISA added the CVE to the KEV catalog on 2025-11-18 with the required action "Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable." (due 2025-11-25; known ransomware campaign use: Unknown); it is still listed as of 2026-11-26 in catalog version 2026.11.25 (CISA KEV). FIRST EPSS gives 0.05668, the 93.74th percentile, in the 2026-11-25 dataset (FIRST EPSS). The earlier unauthenticated FortiWeb SQL injection is CVE-2025-25257.

How to fix this class of issueThis advisory's weakness class is Command injection. Our practical guide covers how to detect, fix, verify and disclose it: How to fix command injection in embedded firmware.

Evidence

  • NVD: Analyzed; OS command injection [CWE-78] in FortiWeb 8.0.0-8.0.1, 7.6.0-7.6.5, 7.4.0-7.4.10, 7.2.0-7.2.11, 7.0.0-7.0.11, authenticated, crafted HTTP requests or CLI commands; only metric Fortinet ([email protected]) Secondary CVSS v3.1 7.2 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H; no NVD Primary score; CPE fortiweb 7.0.0-<7.0.12, 7.2.0-<7.2.12, 7.4.0-<7.4.11, 7.6.0-<7.6.6, 8.0.0-<8.0.2; published 2025-11-18; read 2026-11-26. — NVD
  • Fortinet FG-IR-25-513 'Multiple OS command injection in API and CLI', published 2025-11-18: fixed in 8.0.2, 7.6.6, 7.4.11, 7.2.12, 7.0.12; 6.4 not affected; FortiAppSec Cloud not impacted; 'Fortinet has observed this to be exploited in the wild'; discovered by Fortinet Threat intelligence with thanks to Trend Research; CVSSv3 7.2. — Fortinet PSIRT
  • Fortinet CSAF for FG-IR-25-513: known affected 8.0.0-8.0.1, 7.6.0-7.6.5, 7.4.0-7.4.10, 7.2.0-7.2.11, 7.0.0-7.0.11; not affected 8.0.2, 7.6.6, 7.4.11, 7.2.12, 7.0.12, 6.4. — Fortinet CSAF
  • CVE record: PUBLISHED, CNA Fortinet, 2025-11-18; affected list FortiWeb 7.6.0-7.6.4, 7.4.0-7.4.8, 7.2.0-7.2.11, 7.0.2-7.0.11 (no 8.0); CISA ADP SSVC exploitation active. — CVE.org
  • KEV catalog 2026.11.25: dateAdded 2025-11-18, due 2025-11-25, required action 'Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.', knownRansomwareCampaignUse Unknown, CWE-78; checked 2026-11-26. — CISA KEV
  • EPSS 0.05668, percentile 0.93744, dataset 2026-11-25, read 2026-11-26. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Fortinet PSIRT FG-IR-25-513: Multiple OS command injection in API and CLI
  3. Fortinet CSAF for FG-IR-25-513
  4. CVE.org record CVE-2025-58034 (CNA: Fortinet)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which FortiWeb versions fix CVE-2025-58034?

FortiWeb 8.0.2, 7.6.6, 7.4.11, 7.2.12 and 7.0.12 or above. Affected are 8.0.0 to 8.0.1, 7.6.0 to 7.6.5, 7.4.0 to 7.4.10, 7.2.0 to 7.2.11 and 7.0.0 to 7.0.11; FortiWeb 6.4 and FortiAppSec Cloud are not affected (per Fortinet FG-IR-25-513).

Does CVE-2025-58034 need a login?

Yes. Fortinet's description says an authenticated attacker is needed, and its CVSS vector rates privileges required as high. That is why it scores 7.2 rather than critical. The unauthenticated FortiWeb path traversal CVE-2025-64446 affects the same branches, so plan one upgrade that fixes both (per Fortinet and NVD).

Is CVE-2025-58034 exploited?

Yes. Fortinet's advisory says it has observed exploitation in the wild, and CISA added the CVE to KEV on 2025-11-18 with a one-week due date of 2025-11-25. As of 2026-11-26 it is still in KEV catalog version 2026.11.25, with known ransomware use marked Unknown (per Fortinet and CISA KEV).

Why does CVE-2025-58034 have no NVD score?

As of 2026-11-26 NVD shows only Fortinet's CNA score, CVSS v3.1 7.2, plus CPE ranges, and no NVD Primary score. The page qualifies through its CISA KEV listing. FIRST EPSS gives 0.05668, the 93.74th percentile, in the 2026-11-25 dataset (per NVD and FIRST EPSS).