CVE-2024-42354: Shopware vulnerable to Improper Access Control with ManyToMany associations in store-api
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.42871%
CWE
Published
8/8/2024
Updated
8/12/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| shopware/core | composer | <= 6.5.8.12 | 6.5.8.13 |
| shopware/platform | composer | <= 6.5.8.12 | 6.5.8.13 |
| shopware/core | composer | >= 6.6.0.0, <= 6.6.5.0 | 6.6.5.1 |
| shopware/platform | composer | >= 6.6.0.0, <= 6.6.5.0 | 6.6.5.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from incomplete association handling in criteria processing. The patched commit ad83d388 modifies SalesChannelRepository.php to add processing of ManyToManyAssociationField's toManyReferenceDefinition, indicating the original implementation lacked this crucial step. This omission allowed extensions with ManyToMany associations to bypass field-level access controls (ApiAware checks) when serializing responses, as the criteria protections weren't applied to both sides of the association.