Body Background
TrendAI™ Zero Day Initiative™ Logo

Fortinet FortiWeb policy_scripting_post_handler Command Injection Remote Code Execution Vulnerability

November 19th, 2025

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

Hero Background

Stand at the front line of proactive security

Trend ZDI connects the experts who discover, remediate, and defend.
Add your voice to the work that pushes attackers back.