A vulnerability in PHPCSUtils, a suite of utility functions for use with PHP_CodeSniffer, allows for remote code execution via eval() in the AbstractArrayDeclarationSniff::getActualArrayKey() method. This issue affects versions from 1.0.0-alpha1 to 1.2.2 and is fixed in version 1.2.3. The vulnerability allows callback-form keys in untrusted PHP code scanned by an extending sniff to execute arbitrary commands on the scanning host. Defenders should assess exposure and prioritize updates to mitigate this vulnerability.
PHP_CodeSniffer contains a command injection vulnerability in the code that generates the Gitblame, Hgblame, and Svnblame report formats. This issue allows attacker-controlled shell commands to be executed when processing files with shell metacharacters in their names, potentially impacting continuous integration pipelines and developer machines reviewing third-party code. The vulnerability is fixed in versions 3.13.6 and 4.0.2. Users should verify exposure, especially in environments scanning untrusted files.