A plain-language summary of this CVE is being written; the description below is the NVD's own text.
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.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
Weakness type
References
- github.com /PHPCSStandards/PHPCSUtils/commit/e8648633ff5b8219b1b3e6346…
- github.com /PHPCSStandards/PHPCSUtils/releases/tag/1.2.3
- github.com /PHPCSStandards/PHPCSUtils/security/advisories/GHSA-r6hr-vr…
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning