zenstruck/collection · Security

zenstruck/collection passing callable string to EntityRepository::find() and query()

GHSA ID
GHSA-7xr2-8ff7-6fjq
CVE ID
CVE-2023-37473
Severity
high
Published
Updated
CVSS
8.5 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v3
8.5 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

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.

CWEs

References