GitHub Advisoryadvisory · Packagist

GHSA-7xr2-8ff7-6fjq zenstruck/collection passing callable string to EntityRepository::find() and query()

HIGH Published 2023-07-14 Modified 2023-07-14 Official page ↗
Aliases
CVE-2023-37473
Ecosystem
Packagist
Packages
zenstruck/collection
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-74
Reviewed
2023-07-14

Affected packages

• Packagist zenstruck/collection: < 0.2.1 → fixed in 0.2.1

Description

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.

Related

Alias · CVE (1)

  • CVE-2023-37473 zenstruck/collections is a set of helpers for iterating/paginating/filtering collections. vulnerability

Weakness · CWE (1)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness

References