CVE-2023-41336 – symfony/ux-autocomplete
Package
Manager: composer
Name: symfony/ux-autocomplete
Vulnerable Version: >=0 <2.11.2
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS: 0.008 pctl0.73178
Details
Prevent injection of invalid entity ids for "autocomplete" fields ### Impact Under certain circumstances, an attacker could successfully submit an entity id for an `EntityType` that is *not* part of the valid choices. Affected applications are any that use: * A custom `query_builder` option to limit the valid results; AND * An `EntityType` with `'autocomplete' => true` or a custom [AsEntityAutocompleteField](https://symfony.com/bundles/ux-autocomplete/current/index.html#usage-in-a-form-with-ajax). Under this circumstance, if an id is submitted, it is accepted even if the matching record would not be returned by the custom query built with `query_builder`. ### Patches The problem has been fixed in `symfony/ux-autocomplete` version 2.11.2. ### Workarounds Upgrade to version 2.11.2 or greater of `symfony/ux-autocomplete` or perform extra validation after submit to verify the selected option is valid.
Metadata
Created: 2023-09-11T14:43:05Z
Modified: 2023-09-11T14:43:05Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-4cpv-669c-r79x/GHSA-4cpv-669c-r79x.json
CWE IDs: ["CWE-20"]
Alternative ID: GHSA-4cpv-669c-r79x
Finding: F184
Auto approve: 1