8.6high
Limited code execution in zenstruck/collections
- Severity
- 8.6high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.13% (higher than 66% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7xr2-8ff7-6fjq
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()`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zenstruck collection | < 0.2.1, before 0.2.1, 0.2.1 | CVE List, NVD |
| zenstruck/collection (Packagist) | before 0.2.1 | GitHub Advisory Database |
All scores
| GitHub_M | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 8.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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()`.
GitHub Advisory Database
Impact
Passing callable strings (ie system) caused the function to be executed.
Patches
Fixed in v0.2.1.
Workarounds
Do not allow passing user strings to EntityRepository::find() or query().
References
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-37473 changed 2024-10-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7xr2-8ff7-6fjq changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-37473 changed 2026-06-17 | Public domain |