๐Ÿ” CVE Alert

CVE-2026-65954

HIGH 8.6

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

CVSS Score
8.6
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-95
Vendor phpcsstandards
Product phpcsutils
Published Oct 12, 2026
Stay Ahead of the Next One

Get instant alerts for phpcsstandards phpcsutils

Be the first to know when new high vulnerabilities affecting phpcsstandards phpcsutils are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

PHPCSStandards / PHPCSUtils
>= 1.0.0-alpha1, <= 1.2.2

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/PHPCSStandards/PHPCSUtils/security/advisories/GHSA-r6hr-vr92-vv28 github.com: https://github.com/PHPCSStandards/PHPCSUtils/commit/e8648633ff5b8219b1b3e6346ce85abfc30f1429 github.com: https://github.com/PHPCSStandards/PHPCSUtils/releases/tag/1.2.3