CVE-2026-65954
HIGH 8.6CVSS 3.1PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()
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.
- Published
- 12 Oct 2026
- Last modified
- 16 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-95
- Also known as
- GHSA-r6hr-vr92-vv28
- Sources
- NVDJSONOSV GHSA-r6hr-vr92-vv28JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | phpcsstandards/phpcsutils | >= 1.0.0-alpha1, < 1.2.3 | 1.2.3 |
References
- https://github.com/PHPCSStandards/PHPCSUtils/commit/e8648633ff5b8219b1b3e6346ce85abfc30f1429
- https://github.com/PHPCSStandards/PHPCSUtils/releases/tag/1.2.3
- https://github.com/PHPCSStandards/PHPCSUtils/security/advisories/GHSA-r6hr-vr92-vv28 · WEB
- https://github.com/PHPCSStandards/PHPCSUtils/pull/778 · WEB
- https://github.com/PHPCSStandards/PHPCSUtils/commit/9f596b50ea4498ea57b8cb341e920233b044debf · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpcsstandards/phpcsutils/CVE-2026-65954.yaml · WEB
- https://github.com/PHPCSStandards/PHPCSUtils · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 12 Oct 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 29 Sep 2026)