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
Dependencies
Parameter
| Variable | Type | Default | Description |
|---|---|---|---|
FixLocalInstall | Switch | False | When 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
-
Export the agent procedure from ProVal's VSA RMM instance.
Name:Detect PHP2Shell VulnerabilityThe export will download the necessary XML file.
-
Import this XML file into the partner's VSA RMM instance.
-
Export the
Detect-PHP2ShellVulnerability-KI.ps1from the ProVal's Internal VSA. This is also placed under the below path:
Manage Files>Shared Files>PVAL>Detect-PHP2ShellVulnerability-KI.ps1
- Map the
Detect-PHP2ShellVulnerability-KI.ps1into the28thstep of the script in the client's environment.
Output
- Script Log
- Custom Field: cPVAL PHP2Shell Vuln Count
Changelog
2026-10-27
- Initial version of the document