{"answers":{"affected":"8 open source packages ship an affected version, including shopware/core and shopware/platform.","exploited":"There is no known exploitation of GHSA-6wh5-mw9h-5c3w in the wild and no public exploit code.","fix":"Upgrade shopware/core to a fixed version for your release line: 6.6.10.7 or 6.7.3.1.","what":"GHSA-6wh5-mw9h-5c3w is a path traversal vulnerability in shopware/core, published on 21 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-6wh5-mw9h-5c3w and fix it if it is affected.\n\nWhat it is: GHSA-6wh5-mw9h-5c3w is a path traversal vulnerability in shopware/core, published on 21 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-6wh5-mw9h-5c3w in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- shopware/core (Packagist): affected all versions; fixed in 6.6.10.7\n- shopware/core (Packagist): affected all versions; fixed in 6.6.10.7\n- shopware/core (Packagist): affected from 6.7.0.0; fixed in 6.7.3.1\n- shopware/core (Packagist): affected from 6.7.0.0; fixed in 6.7.3.1\n- shopware/platform (Packagist): affected all versions; fixed in 6.6.10.7\n- shopware/platform (Packagist): affected all versions; fixed in 6.6.10.7\n- shopware/platform (Packagist): affected from 6.7.0.0; fixed in 6.7.3.1\n- shopware/platform (Packagist): affected from 6.7.0.0; fixed in 6.7.3.1\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-6wh5-mw9h-5c3w/ (Markdown: https://insights.sbomify.com/GHSA-6wh5-mw9h-5c3w/index.md)","id":"GHSA-6wh5-mw9h-5c3w","markdown":"https://insights.sbomify.com/GHSA-6wh5-mw9h-5c3w/index.md","name":"GHSA-6wh5-mw9h-5c3w","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Shopware e-commerce platform","requires_auth":"low_privilege","summary":"Attackers can exploit a path traversal flaw in the plugin upload feature to write arbitrary files, potentially achieving remote code execution on on-premises Shopware installations.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\nMalicious actors can exploit this vulnerability to write files within arbitrary directories on the filesystem of the Shopware web container. This could allow them to gain persistent shell access by uploading a PHP-shell file to an accessible folder.\n\nIt is important to note that this vulnerability is only present on on-premises installation of Shopware and not present on the SaaS installation due to additional security checks being implemented on the uploaded plugin files.\n\n#### Description\nA path traversal vulnerability allows malicious actors to access files and folders that are outside the folder structure accessible to the affected function. This vulnerability occurs when an application uses unfiltered user input to point to the path of a specific file and retrieve it. This can result in gaining read/write access to sensitive information, application code, back-end systems and other (critical) files on the operating system. In certain cases, it is even possible to store arbitrary files outside the relevant directory structure on the server in order to gain access to the server.\n\n#### Applicability\nThe Plugin upload function in use by the Shopware application is vulnerable to path traversal.\nWithin the on-premises version of the Shopware application users are able to extend the functionality of the application by installing ‘plugins’ also referred to as ‘apps’ or ‘extensions’. These plugins can be installed using the official store or by uploading a zip file containing the required files. To prevent path traversal the Shopware application implements a check that effectively prohibits files containing ‘..’ characters from being uploaded. During review of the source code, it was noticed that the check for the prohibited characters was only performed from the third entry (index 2) of the uploaded Zip file. This means that the second entry (index 1) within the Zip file can contain path traversal characters and thus allows files to be written in\ndirectories outside of the intended plugins folder.\n\nTo exploit this vulnerability, an admin account with permissions to upload plugins, is required.\n\n#### Reproduction\nTo reproduce this vulnerability, the steps below can be followed.\n1. Log in to an on-premises Shopware application with an admin account with permissions to\nupload plugins.\n2. Create a malicious Zip file using the script provided in evidence 5.\n3. Upload the generated malicious Zip file as a new plugin within the application\n4. Access the filesystem of the Shopware application\n5. Navigate to the path below:\n/var/www/html/custom/apps\n6. Notice that an ‘evil.php’ file has been extracted within this folder.","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":"Shopware vulnerable to path traversal via Plugin upload","id":"GHSA-6wh5-mw9h-5c3w","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":8,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["6.6.10.7"],"introduced":["0"],"last_affected":[],"package":"shopware/core","purl":null,"source":"GHSA-6wh5-mw9h-5c3w"},{"ecosystem":"Packagist","fixed":["6.6.10.7"],"introduced":["0"],"last_affected":[],"package":"shopware/core","purl":"pkg:composer/shopware/core","source":"GHSA-6wh5-mw9h-5c3w"},{"ecosystem":"Packagist","fixed":["6.7.3.1"],"introduced":["6.7.0.0"],"last_affected":[],"package":"shopware/core","purl":null,"source":"GHSA-6wh5-mw9h-5c3w"},{"ecosystem":"Packagist","fixed":["6.7.3.1"],"introduced":["6.7.0.0"],"last_affected":[],"package":"shopware/core","purl":"pkg:composer/shopware/core","source":"GHSA-6wh5-mw9h-5c3w"},{"ecosystem":"Packagist","fixed":["6.6.10.7"],"introduced":["0"],"last_affected":[],"package":"shopware/platform","purl":null,"source":"GHSA-6wh5-mw9h-5c3w"},{"ecosystem":"Packagist","fixed":["6.6.10.7"],"introduced":["0"],"last_affected":[],"package":"shopware/platform","purl":"pkg:composer/shopware/platform","source":"GHSA-6wh5-mw9h-5c3w"},{"ecosystem":"Packagist","fixed":["6.7.3.1"],"introduced":["6.7.0.0"],"last_affected":[],"package":"shopware/platform","purl":null,"source":"GHSA-6wh5-mw9h-5c3w"},{"ecosystem":"Packagist","fixed":["6.7.3.1"],"introduced":["6.7.0.0"],"last_affected":[],"package":"shopware/platform","purl":"pkg:composer/shopware/platform","source":"GHSA-6wh5-mw9h-5c3w"}],"products":null,"published":"2025-10-21","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 exploit a path traversal flaw in the plugin upload feature to write arbitrary files, potentially achieving remote code execution on on-premises Shopware installations.","url":"https://insights.sbomify.com/GHSA-6wh5-mw9h-5c3w/"}