Vulnerability · Published Jul 14, 2023 · Assigned by GitHub_M

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

High 8.6

In plain English

A high-severity injection in collection from zenstruck. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.6High
Exploit odds (30 days)0.9%top 38.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistzenstruck/collection0.2.1GHSA-7xr2-8ff7-6fjq

Affected products (as reported)

VendorProductVersions
zenstruck collection < 0.2.1

Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

References