CVE-2025-58034 — Fortinet FortiWeb OS Command Injection Vulnerability

CVE-2025-58034

Fortinet FortiWeb — Authenticated OS Command Injection; 7-Day CISA Deadline; 22k+ Exposed Appliances

What is Fortinet FortiWeb?

Fortinet FortiWeb is a web application firewall (WAF) that sits in front of web applications to inspect and filter HTTP/HTTPS traffic, blocking attacks like SQL injection, XSS, and API abuse. It is deployed by enterprises and hosting providers to protect customer-facing web applications. Because FortiWeb itself is a security appliance with network-level access to web application traffic, a compromise of FortiWeb provides an attacker with a privileged vantage point — all web traffic passing through the appliance is accessible, including plaintext decrypted HTTPS traffic.

Overview

CVE-2025-58034 is an OS command injection vulnerability (CWE-78) in Fortinet FortiWeb that allows an authenticated attacker with administrative privileges to execute arbitrary OS commands on the underlying system via crafted HTTP requests or CLI commands. Despite requiring high privileges (PR:H), Fortinet confirmed active exploitation — likely involving attackers who had obtained admin credentials through other means, or who chained this with a separate authentication bypass. CISA issued a 7-day remediation deadline simultaneously with the patch release. Censys identified approximately 22,246 internet-exposed FortiWeb appliances at the time of the advisory.

Affected Versions

FortiWeb Branch Vulnerable Fixed
7.0.x 7.0.0 – 7.0.11 7.0.12
7.2.x 7.2.0 – 7.2.11 7.2.12
7.4.x 7.4.0 – 7.4.10 7.4.11
7.6.x 7.6.0 – 7.6.5 7.6.6
8.0.x 8.0.0 – 8.0.1 8.0.2

Technical Details

The OS command injection (CWE-78) is in FortiWeb's management interface — specifically in the handling of HTTP request parameters or CLI input that are passed to OS-level commands without sufficient sanitization. An authenticated administrator can inject shell metacharacters that are executed by the underlying operating system with the privileges of the FortiWeb management process (typically root on embedded Linux).

Potential exploitation path:

  • Attacker obtains admin credentials (credential stuffing, phishing, prior vulnerability)
  • Chained with a path traversal or other authentication bypass for unauthenticated access — CVE-2025-64446 (FortiWeb path traversal) was identified as a companion vulnerability that could enable unauthenticated-to-RCE chaining

Despite the PR:H CVSS score, the active exploitation confirmation suggests that either: (a) attackers successfully compromised admin accounts through credential attacks, or (b) the vulnerability is paired with an authentication bypass in practice.

Discovery

Not publicly attributed. Fortinet confirmed active exploitation in their PSIRT advisory.

Exploitation Context

Fortinet confirmed in-the-wild exploitation at the time of the November 18, 2025 advisory. Censys identified ~22,246 internet-exposed FortiWeb instances. CISA's 7-day deadline reflects the urgency of the active exploitation. No specific threat actor was named in available sources.

Remediation

  1. Apply patches immediately per the version table above. The CISA deadline was November 25, 2025.
  2. Restrict management interface access — FortiWeb's admin interface should never be internet-accessible; place it on a dedicated management network accessible only via VPN or out-of-band management.
  3. Rotate admin credentials — if the management interface was internet-exposed, assume admin credentials may have been captured.
  4. Review FortiWeb admin audit logs for unexpected command execution, configuration changes, or logins from unexpected IP addresses.
  5. Apply the patch for CVE-2025-64446 (FortiWeb path traversal) simultaneously — the two CVEs can be chained for unauthenticated exploitation.
  6. Check for webshells or unexpected files in the FortiWeb filesystem if the appliance may have been compromised before patching.

Key Details

PropertyValue
CVE ID CVE-2025-58034
Vendor / Product Fortinet — FortiWeb
NVD Published2025-11-18
NVD Last Modified2025-11-21
CVSS 3.1 Score7.2
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-78 find similar ↗
CISA KEV Added2025-11-18
CISA KEV Deadline2025-11-25
Known Ransomware Use No

CVSS 3.1 Breakdown

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

Required Action

CISA BOD 22-01 Deadline: 2025-11-25. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Timeline

DateEvent
2025-11-18CVE published; Fortinet releases patches; CISA adds to KEV with 7-day deadline
2025-11-25CISA BOD 22-01 remediation deadline