GHSA-3pcr-4982-548m: Shopware/production Exposure Of .env If Project Vulnerability
MODERATEGHSA-3pcr-4982-548m is a MODERATE exposure of .env if project vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Shopware/production libraries in the Packagist ecosystem. The issue involves exposure of .env if project root is configured as web root in shopware/production. Remediation is available by upgrading affected packages to version 6.3.5.3.
GHSA-3pcr-4982-548m at a Glance
How to Fix GHSA-3pcr-4982-548m
To remediate this vulnerability, upgrade all affected Shopware/production dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade shopware/production to 6.3.5.3
Upgrade shopware/shopware to 6.3.5.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for shopware/production
How to Check if You Are Affected
To determine whether your application is affected by GHSA-3pcr-4982-548m, inspect your project dependencies for Shopware/production:
inspect dependencies for shopware/production
Analyze the terminal output to locate any version of Shopware/production in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.3.5.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In Shopware/production, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-3pcr-4982-548m Affected Shopware/production Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
shopware/production
|
Packagist |
< 6.3.5.3
|
6.3.5.3
|
|
shopware/shopware
|
Packagist |
< 6.3.5.3
|
6.3.5.3
|
References
Frequently Asked Questions
What is GHSA-3pcr-4982-548m?
Which Shopware/production versions are affected?
What version fixes GHSA-3pcr-4982-548m?
Is shopware/production affected?
Is shopware/shopware affected?
What CWE is associated with GHSA-3pcr-4982-548m?
How can I check Packagist dependencies for GHSA-3pcr-4982-548m?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3pcr-4982-548m",
"modified" : "2026-06-08T23:14:50Z",
"published" : "2021-04-13T15:13:37Z",
"aliases" : [ ],
"summary" : "Exposure of .env if project root is configured as web root in shopware/production",
"details" : "### 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",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "shopware/production"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.3.5.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.3.5.2"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "shopware/shopware"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.3.5.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.3.5.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/shopware/platform/security/advisories/GHSA-3pcr-4982-548m"
}, {
"type" : "WEB",
"url" : "https://github.com/shopware/shopware/security/advisories/GHSA-3pcr-4982-548m"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/shopware/shopware"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-552" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-12T22:33:05Z",
"nvd_published_at" : null
}
}