{"id":"GHSA-3pcr-4982-548m","aliases":[],"status":"published","title":"Exposure of .env if project root is configured as web root in shopware/production","description":"### 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","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-552"],"published":"2021-04-13T15:13:37Z","modified":"2026-09-10T03:49:02Z","fixes":[{"ecosystem":"Packagist","package":"shopware/production","fixed_in":["6.3.5.3"],"sources":["ghsa","osv"]},{"ecosystem":"Packagist","package":"shopware/shopware","fixed_in":["6.3.5.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"shopware/production","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.3.5.2"},{"fixed":"6.3.5.3"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"shopware/shopware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.3.5.2"},{"fixed":"6.3.5.3"}]}]},{"source":"osv","ecosystem":"Packagist","package":"shopware/production","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.3.5.3"}]}],"versions":["v6.1.0","v6.1.0-rc1","v6.1.0-rc2","v6.1.0-rc3","v6.1.1","v6.1.2","v6.1.3","v6.1.4","v6.1.5","v6.1.6","v6.2.0","v6.2.0-RC1","v6.2.1","v6.2.2","v6.2.3","v6.3.0.0","v6.3.0.1","v6.3.0.2","v6.3.1.0","v6.3.1.1","v6.3.2.0","v6.3.2.1","v6.3.3.0","v6.3.3.1","v6.3.4.0","v6.3.4.1","v6.3.5.0","v6.3.5.1","v6.3.5.2"]},{"source":"osv","ecosystem":"Packagist","package":"shopware/shopware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.3.5.3"}]}],"versions":["1.0.2","1.0.8","4.2.0","4.2.0-rc.1","4.2.1","4.2.1.1","4.2.2","4.2.3","4.3.0","4.3.1","4.3.2","4.3.3","4.3.4","4.3.5","4.3.6","4.3.7","5.3.0","v5.0.0","v5.0.0-BETA1","v5.0.0-BETA2","v5.0.0-RC1","v5.0.0-RC2","v5.0.0-RC3","v5.0.1","v5.0.2","v5.0.2-RC1","v5.0.3","v5.0.3-RC1","v5.0.4","v5.0.4-RC1","v5.1.0","v5.1.0-RC2","v5.1.0-RC3","v5.1.1","v5.1.2","v5.1.2-RC1","v5.1.2-RC2","v5.1.3","v5.1.3-RC1","v5.1.4","v5.1.5","v5.1.6","v5.2.0","v5.2.0-BETA1","v5.2.0-RC1","v5.2.0-RC2","v5.2.0-RC3","v5.2.1","v5.2.10","v5.2.11","v5.2.12","v5.2.13","v5.2.14","v5.2.15","v5.2.16","v5.2.17","v5.2.18","v5.2.19","v5.2.2","v5.2.20","v5.2.21","v5.2.22","v5.2.23","v5.2.24","v5.2.25","v5.2.26","v5.2.27","v5.2.3","v5.2.4","v5.2.5","v5.2.6","v5.2.7","v5.2.8","v5.2.9","v5.3.4","v5.3.5","v5.3.6","v5.3.7","v5.4.0","v5.4.0-RC1","v5.4.1","v5.4.2","v5.4.3","v5.4.4","v5.4.5","v5.4.6","v5.5.0","v5.5.0-BETA1","v5.5.0-RC1","v5.5.1","v5.5.10","v5.5.2","v5.5.3","v5.5.4","v5.5.5","v5.5.6","v5.5.7","v5.5.8","v5.5.9","v5.6.0","v5.6.0-RC1","v5.6.1","v5.6.10","v5.6.2","v5.6.3","v5.6.4","v5.6.5","v5.6.6","v5.6.7","v5.6.8","v5.6.9","v5.7.0","v5.7.0-RC1","v5.7.0-RC2","v5.7.1","v5.7.10","v5.7.11","v5.7.12","v5.7.13","v5.7.14","v5.7.15","v5.7.16","v5.7.16-RC1","v5.7.17","v5.7.17-RC1","v5.7.18","v5.7.19","v5.7.2","v5.7.20","v5.7.3","v5.7.4","v5.7.5","v5.7.6","v5.7.7","v5.7.8","v5.7.9"]}],"references":[{"url":"https://github.com/shopware/platform/security/advisories/GHSA-3pcr-4982-548m","tags":["web"]},{"url":"https://github.com/shopware/shopware/security/advisories/GHSA-3pcr-4982-548m","tags":["web"]},{"url":"https://github.com/advisories/GHSA-3pcr-4982-548m"},{"url":"https://github.com/shopware/shopware","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-3pcr-4982-548m","title":"Exposure of .env if project root is configured as web root in shopware/production","description":"### 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","status":"published","published":"2021-04-13T15:13:37Z","modified":"2026-06-08T23:14:51Z","cwes":["CWE-552"],"updated_at":"2026-11-02T14:40:20.187636Z"}],"osv":[{"id":"GHSA-3pcr-4982-548m","title":"Exposure of .env if project root is configured as web root in shopware/production","description":"### 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","status":"published","published":"2021-04-13T15:13:37Z","modified":"2026-09-10T03:49:02.701573599Z","cwes":["CWE-552"],"updated_at":"2026-11-02T15:46:36.092962Z"}]}}
