Arbitrary Code Execution Vulnerability in PHPCSUtils for PHP_CodeSniffer
CVE-2026-65954

8.6HIGH

Key Information:

Vendor
CVE Published:
12 October 2026

What is CVE-2026-65954?

PHPCSUtils, a utility suite designed for PHP_CodeSniffer, contains a vulnerability in the AbstractArrayDeclarationSniff class that permits the evaluation of attacker-controlled array-key expressions using eval(). This flaw allows malicious users to execute arbitrary commands within the context of the scanning host, particularly exploiting callback-form keys in untrusted PHP code scanned. The vulnerable versions span from 1.0.0-alpha1 to 1.2.2, and it has been addressed in version 1.2.3. Users are strongly advised to update to the latest version to mitigate risk.

Affected Version(s)

PHPCSUtils >= 1.0.0-alpha1, <= 1.2.2

References

CVSS V3.1

Score:
8.6
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.