CVE-2023-37473
HIGH 8.8CVSS 3.1zenstruck/collection passing callable string to EntityRepository::find() and query()
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().
- Published
- 14 Jul 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-74
- Also known as
- GHSA-7xr2-8ff7-6fjq
- Sources
- NVDJSONOSV GHSA-7xr2-8ff7-6fjqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | zenstruck | collectioncpe:2.3:a:zenstruck:collection:0.2.1:*:*:*:*:*:*:* |
= 0.2.1 | |
| OSV | Packagist | zenstruck/collection | < 0.2.1 | 0.2.1 |
References
- https://github.com/zenstruck/collection/commit/f4b1c488206e1b1581b06fcd331686846f13f19c · Patch, WEB
- https://github.com/zenstruck/collection/releases/tag/v0.2.1 · Release Notes, WEB
- https://github.com/zenstruck/collection/security/advisories/GHSA-7xr2-8ff7-6fjq · Mitigation, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-37473 · ADVISORY
- https://github.com/zenstruck/collection · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 14 Jul 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 Jul 2023)