CVE-2026-65954
CVE-2026-65954 · PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 8.6 · High · EPSS 0.2% · Fix available
- Published
- Updated
Stack: php
Affected products and versions
phpcsutils
- Versions
- >= 1.0.0-alpha1, <= 1.2.2: Affected
No fix published
phpcsstandards/phpcsutils Packagist
- Versions
- 1.0.0
- 1.0.0-alpha1
- 1.0.0-alpha2
- 1.0.0-alpha3
- 1.0.0-alpha4
- 1.0.0-rc1
- 1.0.1
- 1.0.10
- 1.0.11
- 1.0.12
- 1.0.2
- 1.0.3
- 1.0.4
- 1.0.5
- 1.0.6
- 1.0.7
- 1.0.8
- 1.0.9
- 1.1.0
- 1.1.1
- 1.1.2
- 1.1.3
- 1.2.0
- 1.2.1
- 1.2.2
- Affected ranges
- ECOSYSTEM: ≥ 1.0.0-alpha1, < 1.2.3
Update to 1.2.3