PT-2026-102982
CVE-2026-65954
·
Published
2026-09-29
·
Updated
2026-10-12
Description by
CVSS 3.1
8.6
HighMetricsAV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions
PHPCSUtils versions 1.0.0-alpha1 through 1.2.2
Description
An arbitrary code execution issue exists in the
PHPCSUtilsAbstractSniffsAbstractArrayDeclarationSniff::getActualArrayKey() function. The problem occurs when the function uses eval() to determine the value of an array key, allowing callback-form keys in untrusted PHP code to execute arbitrary commands on the host machine during scanning. This is particularly risky in CI pipelines that lint pull requests or on developer machines reviewing third-party code. Known reachable paths include Universal.Arrays.DuplicateArrayKey and Universal.Arrays.MixedArrayKeyTypes.Recommendations
Update to version 1.2.3 or later.
As a temporary workaround, disable the sniffs that reach the vulnerable method by adding
<exclude> tags to the custom ruleset for Universal.Arrays.DuplicateArrayKey and Universal.Arrays.MixedArrayKeyTypes. Found an issue in the description? Have something to add? Feel free to write us 👾