CVE-2023-37473
JSON

8.6high

Limited code execution in zenstruck/collections

Severity
8.6high CVSS:3.1 by GitHub_M
Exploit likelihood
1.13% (higher than 66% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7xr2-8ff7-6fjq

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

Product or packageVersionsReported by
zenstruck collection< 0.2.1, before 0.2.1, 0.2.1CVE List, NVD
zenstruck/collection (Packagist)before 0.2.1GitHub Advisory Database

All scores

GitHub_M8.6high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub8.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-74

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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

GitHub Advisory Database
Impact

Passing callable strings (ie system) caused the function to be executed.

Patches

Fixed in v0.2.1.

Workarounds

Do not allow passing user strings to EntityRepository::find() or query().

References

Fix commit.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-37473 changed 2024-10-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-7xr2-8ff7-6fjq changed 2026-09-10CC-BY-4.0
NVDCVE-2023-37473 changed 2026-06-17Public domain