Limited code execution in zenstruck/collections
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
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()`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| zenstruck | collection | before 0.2.1 | 0.2.1 | Patch available | CNA |
| — | zenstruck/collection (Packagist) | before 0.2.1 | 0.2.1 | Patch available | GHSA-7xr2-8ff7-6fjq |
- collection Vendorzenstruck Affected before 0.2.1 Fixed in 0.2.1 Patch available CNA
- zenstruck/collection (Packagist) Vendor— Affected before 0.2.1 Fixed in 0.2.1 Patch available GHSA-7xr2-8ff7-6fjq
Remediation
- Fix · CNA collection (zenstruck) Fixed in 0.2.1
- Fix · GHSA-7xr2-8ff7-6fjq zenstruck/collection (Packagist) Fixed in 0.2.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-37473
- 2026-10-03 Alias added: GHSA-7xr2-8ff7-6fjq
References
Sources
- CVE-2023-37473 · CVE Program
- CVE-2023-37473 · NVD
- FIRST EPSS
- GHSA-7xr2-8ff7-6fjq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences