# CVE-2023-37473: Limited code execution in zenstruck/collections

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.13%, higher than 66% of CVEs (2026-11-30)
- Published: 2023-07-14T20:00:16.909Z
- Modified: 2026-09-10T03:49:42.631Z
- Also known as: GHSA-7xr2-8ff7-6fjq
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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()`.

(As written by CVE List.)

## Affected

- zenstruck collection: < 0.2.1; before 0.2.1; 0.2.1
- zenstruck/collection (Packagist): before 0.2.1

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/zenstruck/collection/security/advisories/GHSA-7xr2-8ff7-6fjq> (mitigation, web)
- <https://github.com/zenstruck/collection/commit/f4b1c488206e1b1581b06fcd331686846f13f19c> (patch, web)
- <https://github.com/zenstruck/collection/releases/tag/v0.2.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-37473> (advisory)
- <https://github.com/zenstruck/collection> (package)

## Sources

- CVE List: [CVE-2023-37473](https://www.cve.org/CVERecord?id=CVE-2023-37473), CVE Terms of Use, modified 2024-10-18
- GitHub Advisory Database: [GHSA-7xr2-8ff7-6fjq](https://github.com/advisories/GHSA-7xr2-8ff7-6fjq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-37473](https://nvd.nist.gov/vuln/detail/CVE-2023-37473), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-37473 · Whole record: https://cve.day/CVE-2023-37473.json · Rebuilt by cve.day 2026-11-25T22:58:25.809Z
