Advisory Details

November 19th, 2025

Fortinet FortiWeb policy_scripting_post_handler Command Injection Remote Code Execution Vulnerability

ZDI-25-1014
ZDI-CAN-27383

CVE ID CVE-2025-58034
CVSS SCORE 7.2, AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS Fortinet
AFFECTED PRODUCTS FortiWeb
TREND MICRO CUSTOMER PROTECTION Trend Micro TippingPoint IPS customers are protected against this vulnerability by Digital Vaccine protection filter ID ['46159']. For further product information on the TippingPoint IPS: http://www.tippingpoint.com
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Fortinet FortiWeb. Authentication is required to exploit this vulnerability.

The specific flaw exists within the implementation of the policy_scripting_post_handler method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of root.

ADDITIONAL DETAILS Fortinet has issued an update to correct this vulnerability. More details can be found at:
https://www.fortiguard.com/psirt/FG-IR-25-513
DISCLOSURE TIMELINE
  • 2025-06-10 - Vulnerability reported to vendor
  • 2025-11-19 - Coordinated public release of advisory
  • 2025-11-19 - Advisory Updated
CREDIT Jason McFadyen of Trend Research
BACK TO ADVISORIES