Skip to content
OpenAdvisories
High · 8.6 CVE-2023-37473 EUVD-2023-1996GHSA-7xr2-8ff7-6fjq

Limited code execution in zenstruck/collections

Published Jul 14, 2023 · Updated Oct 18, 2024 · 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()`.

Affected products

VendorProductAffectedFixed
zenstruck collection < 0.2.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist zenstruck/collection < 0.2.1 0.2.1 GHSA-7xr2-8ff7-6fjq

References