CVE-2026-65954

published 12 Oct 2026 · updated 13 Oct 2026

PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()

8.6HighCVSS 8.6EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

PHPCSUtils is a suite of utility functions for use with PHP_CodeSniffer. From 1.0.0-alpha1 until 1.2.3, PHPCSUtils\AbstractSniffs\AbstractArrayDeclarationSniff::getActualArrayKey() evaluates attacker-controlled array-key expressions with eval(), allowing callback-form keys in untrusted PHP code scanned by an extending sniff to execute arbitrary commands on the scanning host. Known reachable paths include Universal.Arrays.DuplicateArrayKey and Universal.Arrays.MixedArrayKeyTypes. This issue is fixed in version 1.2.3.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHPCSStandards>=1.0.0-alpha1 <=1.2.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-65954 severity on Zeptric[![CVE-2026-65954](https://zeptric.io/badge/cve/CVE-2026-65954.svg)](https://zeptric.io/cve/CVE-2026-65954)