CVE-2025-58034
High · 7.2 CISA KEVCVSS
7.2
EPSS
54.7%
Published
Nov 18, 2025
CISA due date
Nov 25, 2025
Cloudanix analysis
Attackers with a valid login can abuse vulnerable FortiWeb systems to run commands on the appliance, potentially taking over a device that protects web applications.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
CVE-2025-58034 is an authenticated OS command injection vulnerability in Fortinet FortiWeb. A user with valid access to the FortiWeb management interface or CLI can submit crafted HTTP requests or CLI input that is not safely neutralized before being passed to the underlying operating system. Successful exploitation can allow execution of unauthorized commands on the FortiWeb appliance with the privileges of the vulnerable management component, potentially enabling appliance takeover, persistence, credential theft, configuration extraction, traffic inspection abuse, or pivoting into adjacent networks.
Why it matters to the business
A compromised FortiWeb appliance can undermine a major security control that protects web applications and APIs. Attackers may disable or alter web application firewall protections, steal sensitive configuration and credentials, inspect or manipulate protected traffic, create persistent administrative access, and use the appliance as a trusted foothold for further intrusion. The vulnerability is listed in CISA KEV, has reported active exploitation in the wild, and carries a high EPSS score, so exposed or unpatched FortiWeb management interfaces should be treated as urgent remediation targets. CISA’s KEV remediation due date was 2025-11-25, meaning organizations subject to KEV requirements should already have remediated or removed exposure.
How an attack unfolds
An attacker first obtains authenticated access to FortiWeb, commonly through stolen credentials, reused passwords, compromised administrator accounts, exposed management services, or abuse of lower-privileged accounts if the vulnerable function is reachable. The attacker then sends crafted input through the FortiWeb web management interface, API-accessible HTTP path, or CLI workflow that reaches the vulnerable command execution logic. Because special shell metacharacters are not properly neutralized, the appliance interprets part of the attacker-controlled input as operating-system commands. After command execution, the attacker may enumerate the appliance, dump configuration and credentials, stage tools in writable directories such as temporary paths, create or modify accounts, alter WAF policy, establish persistence, and use the FortiWeb device to monitor traffic or pivot further. Active exploitation has been reported under Fortinet FortiWeb OS command injection activity labels, with references also associating related exploitation reporting with the LANDFALL Android spyware campaign; defenders should treat any suspicious authenticated management activity on affected FortiWeb versions as potentially hostile.
How to fix it
Upgrade FortiWeb to a vendor-fixed release immediately. The vulnerable ranges described are FortiWeb 8.0.0 through 8.0.1, 7.6.0 through 7.6.5, 7.4.0 through 7.4.10, 7.2.0 through 7.2.11, and 7.0.0 through 7.0.11. If available from Fortinet, upgrade to releases newer than those ranges, such as 8.0.2 or later, 7.6.6 or later, 7.4.11 or later, 7.2.12 or later, or 7.0.12 or later, or to the latest supported FortiWeb release recommended in the Fortinet advisory. If immediate patching is not possible, restrict FortiWeb management access to a dedicated administrative network or VPN, block internet access to the management interface, enforce MFA where supported, rotate administrative credentials, remove unnecessary admin accounts, disable unused CLI/API access paths, and monitor for anomalous authenticated activity. Because the issue is KEV-listed and actively exploited, mitigation should be treated as temporary only; patching or isolation is the required durable fix.
How to confirm the fix worked
Confirm the installed FortiWeb firmware version is outside the affected ranges and matches a Fortinet-fixed build. Review the FortiWeb administrative UI and CLI version output, then compare it with the Fortinet advisory and release notes. Verify that management interfaces are not exposed to the internet and are reachable only from approved administrative networks. Confirm administrative accounts, API tokens, SSH access, and CLI access controls were reviewed after patching. Validate that FortiWeb logs show no unexpected administrator logins, configuration changes, command execution events, file uploads, firmware changes, policy changes, or new accounts before and after remediation. Where possible, use a safe authenticated vulnerability check from an approved scanner rather than manual exploit testing, and confirm the scanner reports the FortiWeb instance as not vulnerable.
Typical attack path
- Identify an internet-exposed or internally reachable FortiWeb management interface or CLI access path.
- Obtain valid FortiWeb credentials through phishing, credential reuse, password spraying, prior compromise, or theft from configuration stores.
- Authenticate to the FortiWeb administrative interface, API, or CLI.
- Submit crafted input containing shell-control syntax to a vulnerable FortiWeb function.
- Achieve unauthorized command execution on the underlying appliance operating system.
- Run discovery commands to identify firmware version, privileges, network interfaces, configuration, users, and reachable internal systems.
- Extract FortiWeb configuration, certificates, secrets, logs, or administrator credentials if accessible.
- Modify WAF policy, create persistence, upload tooling, or establish a command-and-control channel.
- Use the appliance as a trusted network foothold to inspect protected traffic or pivot toward application infrastructure.
How to detect it
Investigate whether affected FortiWeb appliances were exploited before remediation by correlating FortiWeb administrative audit logs, HTTP access logs for the management interface, CLI/SSH logs, system logs, configuration-change records, firmware-upgrade records, identity-provider authentication logs, VPN logs, firewall logs, and network telemetry. Focus on successful and failed administrator logins from unusual source IPs, impossible travel, new user agents, unexpected API usage, CLI access outside maintenance windows, and administrative actions immediately followed by system-level behavior. Look for request parameters containing shell metacharacters or URL-encoded command separators, especially in authenticated management requests. Review process execution telemetry if available from the appliance or network security monitoring: unexpected shells, download utilities, scripting runtimes, archive utilities, reverse shell tools, or commands writing to temporary directories are suspicious. Examine writable directories and configuration areas for unexpected files, modified scripts, new cron-like persistence, changed startup files, added SSH keys, unauthorized administrator accounts, policy changes, disabled logging, changed log destinations, deleted logs, or unusual outbound connections from the FortiWeb device. Because exploitation requires authentication, also investigate credential compromise: password-spray activity, reused credentials, unexpected SSO or VPN sessions, new API tokens, and admin logins from hosting providers, Tor exits, residential proxies, or geographies not normally used for administration. If any suspicious command execution or unauthorized configuration change is found, treat the appliance as compromised, preserve logs, isolate management access, rotate credentials, rebuild or reimage according to Fortinet guidance, and review downstream systems reachable from the device.
- /bin/sh -c
- /bin/bash -c
- ; wget
- ; curl
- | wget
- | curl
- $(wget
- $(curl
- `wget
- `curl
- %3b+wget
- %3b+curl
- %7c+wget
- %7c+curl
- %24%28wget
- %24%28curl
- %60wget
- %60curl
- /tmp/
- /var/tmp/
- /dev/shm/
- busybox
- nc -e
- netcat -e
- chmod +x /tmp
- chmod +x /var/tmp
- FortiWeb admin login from unusual source
- FortiWeb configuration changed
- new administrator account
- unexpected CLI login
- unexpected API access
- deleted system logs
- disabled logging
- modified WAF policy
What your security team should do
- Patch or upgrade all affected FortiWeb appliances immediately, prioritizing internet-exposed management interfaces and devices protecting critical applications.
- If patching cannot be completed the same day, remove management exposure from the internet and restrict access to trusted administrative networks or VPN-only paths.
- Perform an incident review for all affected FortiWeb appliances because this vulnerability is KEV-listed and exploitation is active in the wild.
- Rotate FortiWeb administrator passwords, API keys, SSH keys, and any credentials stored on or accessible from the appliance if exploitation cannot be ruled out.
- Review FortiWeb administrator accounts and remove unknown, stale, shared, or unnecessary accounts.
- Audit FortiWeb configuration, WAF policies, certificates, routing, logging destinations, and firmware integrity for unauthorized changes.
- Search FortiWeb, firewall, VPN, identity provider, EDR, network, and SIEM logs for suspicious authenticated management activity and post-exploitation command behavior.
- Create detections for shell metacharacters and encoded command-injection patterns in authenticated FortiWeb management requests.
- Monitor for FortiWeb spawning shell or network utility processes such as sh, bash, wget, curl, nc, python, perl, or busybox from management-related services.
- Document KEV remediation status and exceptions, noting that the CISA due date was 2025-11-25.
The record
An Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability [CWE-78] vulnerability in Fortinet FortiWeb 8.0.0 through 8.0.1, FortiWeb 7.6.0 through 7.6.5, FortiWeb 7.4.0 through 7.4.10, FortiWeb 7.2.0 through 7.2.11, FortiWeb 7.0.0 through 7.0.11 may allow an authenticated attacker to execute unauthorized code on the underlying system via crafted HTTP requests or CLI commands.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|