← Back to search

CVE-2026-65954

8.6 HIGHpublic exploit available

Published 2026-10-12 · Updated 2026-10-16

AI risk analysis

Summary
PHPCSUtils allows attacker-controlled array key expressions to be evaluated with eval(), enabling arbitrary command execution on the scanning host when processing untrusted PHP code. This affects sniffs that extend AbstractArrayDeclarationSniff and use callback-form keys.
Exploitability
Exploitation requires an attacker to upload or inject untrusted PHP code into a project scanned by a vulnerable PHPCSUtils version, with minimal preconditions beyond having the scanning environment process the malicious code.
Blast radius
The impact is significant as developers scanning their own or third-party code with vulnerable PHPCSUtils versions could unknowingly execute arbitrary commands on their development machines or CI/CD systems.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to version 1.2.3 or later
rcecode-injectionphp

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

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

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Weaknesses

CWE-95

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.