# CVE-2026-65954: PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-09-29T17:57:16.000Z
- Modified: 2026-10-16T20:04:29.760Z
- Also known as: GHSA-r6hr-vr92-vv28
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- PHPCSStandards PHPCSUtils: >= 1.0.0-alpha1, <= 1.2.2
- phpcsstandards/phpcsutils (Packagist): from 1.0.0-alpha1 before 1.2.3

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/PHPCSStandards/PHPCSUtils/security/advisories/GHSA-r6hr-vr92-vv28> (web)
- <https://github.com/PHPCSStandards/PHPCSUtils/commit/e8648633ff5b8219b1b3e6346ce85abfc30f1429>
- <https://github.com/PHPCSStandards/PHPCSUtils/releases/tag/1.2.3>
- <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)

## Sources

- CVE List: [CVE-2026-65954](https://www.cve.org/CVERecord?id=CVE-2026-65954), CVE Terms of Use, modified 2026-10-13
- GitHub Advisory Database: [GHSA-r6hr-vr92-vv28](https://github.com/advisories/GHSA-r6hr-vr92-vv28), CC-BY-4.0, modified 2026-09-29
- NVD: [CVE-2026-65954](https://nvd.nist.gov/vuln/detail/CVE-2026-65954), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-65954 · Whole record: https://cve.day/CVE-2026-65954.json · Rebuilt by cve.day 2026-11-25T22:59:43.661Z
