High severity8.6NVD Advisory· Published Oct 12, 2026· Updated Oct 16, 2026
CVE-2026-65954
CVE-2026-65954
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
phpcsstandards/phpcsutilsPackagist | >= 1.0.0-alpha1, < 1.2.3 | 1.2.3 |
Affected products
1- Range: <1.2.3
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-r6hr-vr92-vv28ghsaADVISORY
- github.com/FriendsOfPHP/security-advisories/blob/master/phpcsstandards/phpcsutils/CVE-2026-65954.yamlghsaWEB
- github.com/PHPCSStandards/PHPCSUtils/commit/9f596b50ea4498ea57b8cb341e920233b044debfghsaWEB
- github.com/PHPCSStandards/PHPCSUtils/pull/778ghsaWEB
- github.com/PHPCSStandards/PHPCSUtils/security/advisories/GHSA-r6hr-vr92-vv28nvdWEB
- github.com/PHPCSStandards/PHPCSUtils/commit/e8648633ff5b8219b1b3e6346ce85abfc30f1429nvd
- github.com/PHPCSStandards/PHPCSUtils/releases/tag/1.2.3nvd
News mentions
0No linked articles in our index yet.