# Shopware sensitive file exposure via incorrect web root configuration

Source: https://junglewise.ai/threats/shopware-sensitive-file-exposure-via-incorrect-web-root-configuration-ff4bd75f  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-13. Updated: 2026-06-09  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 5.3 · Published 2021-04-13

Shopware is an e-commerce platform used to power online stores. A configuration issue can allow sensitive system files, such as the .env file containing database credentials and API keys, to be accessed by unauthorized users over the internet. This could lead to a full compromise of the store's data and customer information.

Technologies: [shopware/shopware (Packagist)](https://junglewise.ai/threats/technologies/shopware-shopware), [Shopware](https://junglewise.ai/threats/technologies/shopware). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist), [Shopware](https://junglewise.ai/threats/vendors/shopware).

## 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

## References

- [https://github.com/shopware/platform/security/advisories/GHSA-3pcr-4982-548m](https://github.com/shopware/platform/security/advisories/GHSA-3pcr-4982-548m)
- [https://github.com/shopware/shopware/security/advisories/GHSA-3pcr-4982-548m](https://github.com/shopware/shopware/security/advisories/GHSA-3pcr-4982-548m)
- [https://api.github.com/repos/shopware/shopware/security-advisories/GHSA-3pcr-4982-548m](https://api.github.com/repos/shopware/shopware/security-advisories/GHSA-3pcr-4982-548m)

## Related threats

- [Shopware stored XSS in media upload via missing security headers](https://junglewise.ai/threats/cve-2026-104937-shopware-version-6-7-allows-the-upload-of-attacker-controlled)
- [Shopware SSRF in Media External-Link endpoint](https://junglewise.ai/threats/cve-2026-48013-shopware-ssrf-in-media-external-link-endpoint)
- [Shopware authorization bypass in handle-payment API](https://junglewise.ai/threats/cve-2026-48016-shopware-authorization-bypass-in-handle-payment-api)
- [Shopware stored XSS via unsanitized SVG file upload](https://junglewise.ai/threats/cve-2026-48015-shopware-stored-xss-via-unsanitized-svg-file-upload)
- [Shopware Admin API authorization bypass in order state transitions](https://junglewise.ai/threats/cve-2026-48014-shopware-admin-api-authorization-bypass-in-order-state)
