{"answers":{"affected":"4 open source packages ship an affected version, including shopware/production and shopware/shopware.","exploited":"There is no known exploitation of GHSA-3pcr-4982-548m in the wild and no public exploit code.","fix":"Upgrade shopware/production to 6.3.5.3 or later.","what":"GHSA-3pcr-4982-548m is a vulnerability in shopware/production, published on 13 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-3pcr-4982-548m and fix it if it is affected.\n\nWhat it is: GHSA-3pcr-4982-548m is a vulnerability in shopware/production, published on 13 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-3pcr-4982-548m in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- shopware/production (Packagist): affected all versions; fixed in 6.3.5.3\n- shopware/production (Packagist): affected all versions; fixed in 6.3.5.3\n- shopware/shopware (Packagist): affected all versions; fixed in 6.3.5.3\n- shopware/shopware (Packagist): affected all versions; fixed in 6.3.5.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-3pcr-4982-548m/ (Markdown: https://insights.sbomify.com/GHSA-3pcr-4982-548m/index.md)","id":"GHSA-3pcr-4982-548m","markdown":"https://insights.sbomify.com/GHSA-3pcr-4982-548m/index.md","name":"GHSA-3pcr-4982-548m","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Shopware e-commerce platform","requires_auth":"none","summary":"Attackers can read sensitive .env files if the web root is misconfigured to the project root instead of the public directory.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"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","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Exposure of .env if project root is configured as web root in shopware/production","id":"GHSA-3pcr-4982-548m","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"information_disclosure","year":"2021"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["6.3.5.3"],"introduced":["0"],"last_affected":[],"package":"shopware/production","purl":null,"source":"GHSA-3pcr-4982-548m"},{"ecosystem":"Packagist","fixed":["6.3.5.3"],"introduced":["0"],"last_affected":[],"package":"shopware/production","purl":"pkg:composer/shopware/production","source":"GHSA-3pcr-4982-548m"},{"ecosystem":"Packagist","fixed":["6.3.5.3"],"introduced":["0"],"last_affected":[],"package":"shopware/shopware","purl":null,"source":"GHSA-3pcr-4982-548m"},{"ecosystem":"Packagist","fixed":["6.3.5.3"],"introduced":["0"],"last_affected":[],"package":"shopware/shopware","purl":"pkg:composer/shopware/shopware","source":"GHSA-3pcr-4982-548m"}],"products":null,"published":"2021-04-13","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can read sensitive .env files if the web root is misconfigured to the project root instead of the public directory.","url":"https://insights.sbomify.com/GHSA-3pcr-4982-548m/"}