PoC Monitor
← All CVEs
CVE-2026-65954published 12 Oct 2026 18:51 UTCData: JSON · API

PHPCSStandards PHPCSUtils

PHPCSUtils: 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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.6high · scored by CNA · CWE-95
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

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

Fixed in 1.2.3

from GitHub Security Advisory GHSA-r6hr-vr92-vv28

Mitigation

Upgrade phpcsstandards/phpcsutils to 1.2.3 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published12 Oct 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.