Limited code execution in zenstruck/collections
zenstruck collection
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| zenstruck/collection Packagist |
|
|
Original description
zenstruck/collections is a set of helpers for iterating/paginating/filtering collections. Passing _callable strings_ (ie `system`) caused the function to be executed. This would result in a limited subset of specific user input being executed as if it were code. This issue has been addressed in commit `f4b1c48820` and included in release version 0.2.1. Users are advised to upgrade. Users unable to upgrade should ensure that user input is not passed to either `EntityRepository::find()` or `query()`.
From the CVE record · GitHub_M
References
- github.com/zenstruck/collection/security/advisories/GHSA-7xr2-8ff7-6fjqMitigation
- github.com/zenstruck/collection/commit/f4b1c488206e1b1581b06fcd331686846f13f19cPatch
- github.com/zenstruck/collection/releases/tag/v0.2.1Release notes
- github.com/CVEProject/cvelistV5/tree/main/cves/2023/37xxx/CVE-2023-37473.json
- nvd.nist.gov/vuln/detail/CVE-2023-37473
- github.com/zenstruck/collection