CVE-2024-42354: Shopware vulnerable to Improper Access Control with ManyToMany associations in store-api
Impact
The store-API works with regular entities and not expose all fields for the public API; fields need to be marked as ApiAware in the EntityDefinition. So only ApiAware fields of the EntityDefinition will be encoded to the final JSON.
The processing of the Criteria did not considered ManyToMany associations and so they were not considered properly and the protections didn't get used.
This issue cannot be reproduced with the default entities by Shopware, but can be triggered with extensions.
Patches Update to Shopware 6.6.5.1 or 6.5.8.13.
Workarounds For older versions of 6.2, 6.3, and 6.4, corresponding security measures are also available via a plugin. For the full range of functions, we recommend updating to the latest Shopware version.
Other sources
Shopware is an open commerce platform. The store-API works with regular entities and not expose all fields for the public API; fields need to be marked as ApiAware in the EntityDefinition. So only ApiAware fields of the EntityDefinition will be encoded to the final JSON. Prior to versions 6.6.5.1 and 6.5.8.13, the processing of the Criteria did not considered ManyToMany associations and so they were not considered properly and the protections didn't get used. This issue cannot be reproduced with the default entities by Shopware, but can be triggered with extensions. Update to Shopware 6.6.5.1 or 6.5.8.13 to receive a patch. For older versions of 6.2, 6.3, and 6.4, corresponding security measures are also available via a plugin.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-42354?
CVE-2024-42354 has been assessed to have a moderate severity due to improper exposure of fields in the store API.
How do I fix CVE-2024-42354?
To resolve CVE-2024-42354, upgrade to shopware/platform or shopware/core version 6.6.5.1 or higher.
What software is affected by CVE-2024-42354?
CVE-2024-42354 affects versions of shopware/platform and shopware/core from 6.6.0.0 to 6.6.5.0 and versions up to 6.5.8.12.
What is the impact of CVE-2024-42354?
The impact of CVE-2024-42354 involves leaking sensitive data through the public API due to insufficient field restrictions.
Are there any workarounds for CVE-2024-42354?
There are no known workarounds for CVE-2024-42354; patching is the recommended approach.