NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2024-42354: Shopware vulnerable to Improper Access Control with ManyToMany associations in store-api

mediumCVSS 4.0 5.9 · 3.1 5.3GHSA-hhcq-ph6w-494g

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.

Published Aug 8, 2024 · Updated Aug 12, 2024

Affected packages

shopware/core

Ecosystem
Composer (PHP)
Affected
<= 6.5.8.12
Fixed in
6.5.8.13
Check
composer show shopware/core

shopware/platform

Ecosystem
Composer (PHP)
Affected
<= 6.5.8.12
Fixed in
6.5.8.13
Check
composer show shopware/platform

shopware/core

Ecosystem
Composer (PHP)
Affected
>= 6.6.0.0, <= 6.6.5.0
Fixed in
6.6.5.1
Check
composer show shopware/core

shopware/platform

Ecosystem
Composer (PHP)
Affected
>= 6.6.0.0, <= 6.6.5.0
Fixed in
6.6.5.1
Check
composer show shopware/platform

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to JoshuaBehrens.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries