{"id":"GHSA-3pcr-4982-548m","aliases":["GHSA-3pcr-4982-548m"],"related":[],"kind":"vulnerability","state":"published","title":"Exposure of .env if project root is configured as web root in shopware/production","summary":"### Impact\n\nThe .env and other sensitive files can be leaked if the project root and not `/public` is configured as the web root.\n\n### Patches\nWe 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.\n\nhttps://www.shopware.com/en/download/#shopware-6\n\n### Workarounds\n\nYou should always use `/public` as the web root.\n\nFor 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.\n\nhttps://store.shopware.com/en/detail/index/sArticle/518463/number/Swag136939272659\n\n### For more information\nhttps://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2021","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nThe .env and other sensitive files can be leaked if the project root and not `/public` is configured as the web root.\n\n### Patches\nWe 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.\n\nhttps://www.shopware.com/en/download/#shopware-6\n\n### Workarounds\n\nYou should always use `/public` as the web root.\n\nFor 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.\n\nhttps://store.shopware.com/en/detail/index/sArticle/518463/number/Swag136939272659\n\n### For more information\nhttps://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2021","format":"markdown","source":"ghsa"}],"published":"2021-04-13T15:13:37.000Z","modified":"2026-09-10T03:49:02.701Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-552"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.3.5.3"}],"ecosystem":"Packagist","package":"shopware/production","purl":"pkg:composer/shopware/production","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.3.5.3"}],"ecosystem":"Packagist","package":"shopware/shopware","purl":"pkg:composer/shopware/shopware","source":"ghsa"}],"references":[{"url":"https://github.com/shopware/platform/security/advisories/GHSA-3pcr-4982-548m","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/shopware/shopware/security/advisories/GHSA-3pcr-4982-548m","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/shopware/shopware","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3pcr-4982-548m","url":"https://github.com/advisories/GHSA-3pcr-4982-548m","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:02.701Z"}],"updatedAt":"2026-11-25T22:56:30.924Z"}