Medium

Exposure of .env if project root is configured as web root in shopware/production

  • Disclosed: 13.04.2021
  • Updated: 11.10.2026 10:22

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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package shopware/production < 6.3.5.3 6.3.5.3
Composer package shopware/shopware < 6.3.5.3 6.3.5.3

References

CVSS score -
Weakness (CWE)
CWE-552
Platform
Composer
Package
shopware/production, shopware/shopware
Disclosed
13.04.2021
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-3pcr-4982-548m - CC BY 4.0

Vulnerability history: shopware/shopware

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (34) in the archive
Total entries
34
First → latest
11.2020 01.2026
Without a fix
3
Exploited in attacks
0

Severity breakdown

  • Critical 4
  • High 6
  • Medium 20
  • Low 4

Disclosures per year

  1. 2020: 3
  2. 2021: 6
  3. 2022: 15
  4. 2023: 3
  5. 2024: 4
  6. 2025: 2
  7. 2026: 1
Severity:
  1. High · 7.2 CVE-2026-23498 >= 6.7.0.0, < 6.7.6.1 6.7.6.1
  2. High · 7.1 CVE-2025-67648 >= 6.4.6.0, < 6.6.10.10, >= 6.7.0.0, < 6.7.5.1 6.6.10.10, 6.7.5.1
  3. High · 8.8 ghsa-9v82-vcjx-m76j >= 6.7.0.0, < 6.7.2.1 6.7.2.1
  4. Critical · 9.8 ghsa-83jv-4prm-34g7 >= 4.2.0, < 5.2.25 5.2.25
  5. Critical · 9.8 ghsa-7336-ghhp-f2qj >= 5.2.15, < 5.2.16 5.2.16
  6. Critical · 9.8 ghsa-q3g4-2vw9-xv27 >= 4.0.0, < 5.2.15, < 1.0.8 5.2.15, 1.0.8
  7. High · 8.8 CVE-2019-12799 >= 5.3.0, <= 5.6.0 no fix
  8. Critical · 9.8 CVE-2016-3109 < 4.3.7, >= 5.0.0, < 5.1.5 4.3.7, 5.1.5
  9. High · 8.8 CVE-2018-20713 < 5.4.3 5.4.3
  10. High · 7.5 CVE-2022-24879 >= 5.2.0, < 5.7.9 5.7.9
  11. Exposure of .env if project root is configured as web root in shopware/production this entry
    Medium ghsa-3pcr-4982-548m < 6.3.5.3 6.3.5.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.