Skip to main content

Detect PHP2Shell Vulnerability

Summary​

Detects and counts PHP installations affected by PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619). Identifies installations that are vulnerable, end-of-life, or have an unknown status, and optionally updates vulnerable standalone PHP installations to patched releases. Saves detailed vulnerability findings locally to support investigation and remediation.

Sample Run​

Image

Dependencies​

Parameter​

VariableTypeDefaultDescription
FixLocalInstallSwitchFalseWhen enabled, automatically updates vulnerable standalone PHP installations to a patched release. If an updated PHP installation is used by IIS, the script restarts IIS as required. Accepted values: 1, Yes, True

Implementation​

  1. Export the agent procedure from ProVal's VSA RMM instance.
    Name: Detect PHP2Shell Vulnerability

    The export will download the necessary XML file.

  2. Import this XML file into the partner's VSA RMM instance.

  3. Export the Detect-PHP2ShellVulnerability-KI.ps1 from the ProVal's Internal VSA. This is also placed under the below path:
    Manage Files > Shared Files > PVAL > Detect-PHP2ShellVulnerability-KI.ps1

Image

  1. Map the Detect-PHP2ShellVulnerability-KI.ps1 into the 28th step of the script in the client's environment.

Output​

Changelog​

2026-10-27​

  • Initial version of the document