{"id":"CVE-2023-37473","aliases":["CVE-2023-37473","GHSA-7xr2-8ff7-6fjq"],"related":[],"kind":"vulnerability","state":"published","title":"Limited code execution in zenstruck/collections","summary":"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()`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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()`.","source":"cvelist"},{"lang":"en","text":"### Impact\nPassing _callable strings_ (ie `system`) caused the function to be executed.\n\n### Patches\nFixed in [v0.2.1](https://github.com/zenstruck/collection/releases/tag/v0.2.1).\n\n### Workarounds\nDo not allow passing user strings to `EntityRepository::find()` or `query()`.\n\n### References\n[Fix commit](https://github.com/zenstruck/collection/commit/f4b1c488206e1b1581b06fcd331686846f13f19c).","format":"markdown","source":"ghsa"}],"published":"2023-07-14T20:00:16.909Z","modified":"2026-09-10T03:49:42.631Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"< 0.2.1","status":"affected"}],"vendor":"zenstruck","product":"collection","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.2.1","status":"affected"}],"vendor":"zenstruck","product":"collection","cpe":"cpe:2.3:a:zenstruck:collection:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.1"}],"ecosystem":"Packagist","package":"zenstruck/collection","purl":"pkg:composer/zenstruck/collection","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.2.1"}],"vendor":"zenstruck","product":"collection","cpe":"cpe:2.3:a:zenstruck:collection:0.2.1:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/zenstruck/collection/security/advisories/GHSA-7xr2-8ff7-6fjq","tags":["mitigation","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zenstruck/collection/commit/f4b1c488206e1b1581b06fcd331686846f13f19c","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zenstruck/collection/releases/tag/v0.2.1","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37473","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/zenstruck/collection","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-10-18T17:31:12.675Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-37473","url":"https://www.cve.org/CVERecord?id=CVE-2023-37473","licence":"CVE Terms of Use","modified":"2024-10-18T17:42:36.436Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7xr2-8ff7-6fjq","url":"https://github.com/advisories/GHSA-7xr2-8ff7-6fjq","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:42.631Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-37473","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37473","licence":"Public domain","modified":"2026-06-17T06:08:17.383Z"}],"updatedAt":"2026-11-25T22:58:25.809Z","epss":{"score":0.01131,"percentile":0.66192,"date":"2026-11-30T12:00:22.000Z"}}