Quick answers
- Is This vulnerability exploited in the wild?
- No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
- How severe is This vulnerability?
- Medium severity, with a CVSS score of 5.3, published 13 April 2021.
- Which products and versions are affected?
- shopware/production (Packagist) <= 6.3.5.2; shopware/shopware (Packagist) <= 6.3.5.2; Shopware Production <= 6.3.5.2; Shopware <= 6.3.5.2.
- Is there a fix for This vulnerability?
- A patch was published on 2021-04-12: Version 6.3.5.3 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is This vulnerability attacked?
- It is attacked over the network, in a web application.
- Am I affected?
- Check whether you run shopware/production (Packagist), shopware/shopware (Packagist), Shopware Production or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A vulnerability classified as CWE-552 (Files or Directories Accessible to External Parties) exists in Shopware. If the web server is misconfigured to use the project root instead of the recommended '/public' directory as the document root, sensitive files like '.env' become accessible via direct HTTP requests. An unauthenticated remote attacker can exploit this to leak environment variables, including database credentials and application secrets. The issue is addressed in version 6.3.5.3, and a security plugin is available for older versions (6.1 and 6.2).
Affected products
- Shopware shopware/production <= 6.3.5.2
- Shopware shopware/shopware <= 6.3.5.2
Timeline
- 2021-04-12: disclosed
- 2021-04-12: patched: Version 6.3.5.3 released
- 2021-04-13: advisory