# GHSA-3pcr-4982-548m: Exposure of .env if project root is configured as web root in shopware/production

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-04-13T15:13:37.000Z
- Modified: 2026-09-10T03:49:02.701Z
- Weaknesses: CWE-552

## Description

### Impact

The .env and other sensitive files can be leaked if the project root and not `/public` is configured as the web root.

### Patches
We recommend to update to the current version 6.3.5.3. You can get the update to 6.3.5.3 regularly via the Auto-Updater or directly via the download overview.

https://www.shopware.com/en/download/#shopware-6

### Workarounds

You should always use `/public` as the web root.

For older versions of 6.1 and 6.2, corresponding security measures are also available via a plugin. For the full range of functions, we recommend updating to the latest Shopware version.

https://store.shopware.com/en/detail/index/sArticle/518463/number/Swag136939272659

### For more information
https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2021

(As written by GitHub Advisory Database.)

## Affected

- shopware/production (Packagist): before 6.3.5.3
- shopware/shopware (Packagist): before 6.3.5.3

## References

- <https://github.com/shopware/platform/security/advisories/GHSA-3pcr-4982-548m> (web)
- <https://github.com/shopware/shopware/security/advisories/GHSA-3pcr-4982-548m> (web)
- <https://github.com/shopware/shopware> (package)

## Sources

- GitHub Advisory Database: [GHSA-3pcr-4982-548m](https://github.com/advisories/GHSA-3pcr-4982-548m), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-3pcr-4982-548m · Whole record: https://cve.day/GHSA-3pcr-4982-548m.json · Rebuilt by cve.day 2026-11-25T22:56:30.924Z
