GHSA-6wh5-mw9h-5c3w: Shopware/platform Path Traversal Vulnerability

LOW
CVSS 2.7
CWE-22
Published
Advisory Summary

GHSA-6wh5-mw9h-5c3w is a LOW (CVSS 2.7) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Shopware/platform libraries in the Packagist ecosystem. The issue involves shopware vulnerable to path traversal via plugin upload. Remediation is available by upgrading affected packages to version 6.7.3.1, 6.6.10.7.

GHSA-6wh5-mw9h-5c3w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-6wh5-mw9h-5c3w
Severity LOW
CVSS v3.1 Base Score 2.7
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Shopware/platform
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 2.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-6wh5-mw9h-5c3w

To remediate this vulnerability, upgrade all affected Shopware/platform dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

shopware/platform fixed: 6.7.3.1
Upgrade shopware/platform to 6.7.3.1
shopware/platform fixed: 6.6.10.7
Upgrade shopware/platform to 6.6.10.7
shopware/core fixed: 6.7.3.1
Upgrade shopware/core to 6.7.3.1
shopware/core fixed: 6.6.10.7
Upgrade shopware/core to 6.6.10.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for shopware/platform

How to Check if You Are Affected

To determine whether your application is affected by GHSA-6wh5-mw9h-5c3w, inspect your project dependencies for Shopware/platform:

inspect dependencies for shopware/platform

Analyze the terminal output to locate any version of Shopware/platform in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.7.3.1), 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Shopware/platform, 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

### Impact Malicious 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. It 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. #### Description A 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. #### Applicability The Plugin upload function in use by the Shopware application is vulnerable to path traversal. Within 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 directories outside of the intended plugins folder. To exploit this vulnerability, an admin account with permissions to upload plugins, is required. #### Reproduction To reproduce this vulnerability, the steps below can be followed. 1. Log in to an on-premises Shopware application with an admin account with permissions to upload plugins. 2. Create a malicious Zip file using the script provided in evidence 5. 3. Upload the generated malicious Zip file as a new plugin within the application 4. Access the filesystem of the Shopware application 5. Navigate to the path below: /var/www/html/custom/apps 6. Notice that an ‘evil.php’ file has been extracted within this folder.

GHSA-6wh5-mw9h-5c3w Affected Shopware/platform Versions

4 component(s)
Fixed Versions:
6.7.3.16.6.10.7
Product / Package Ecosystem Affected Versions Fixed Version
shopware/platform
Packagist
≥ 6.7.0.0
< 6.7.3.1
6.7.3.1
shopware/platform
Packagist
< 6.6.10.7
6.6.10.7
shopware/core
Packagist
≥ 6.7.0.0
< 6.7.3.1
6.7.3.1
shopware/core
Packagist
< 6.6.10.7
6.6.10.7

References

Frequently Asked Questions

What is GHSA-6wh5-mw9h-5c3w?
GHSA-6wh5-mw9h-5c3w is a security vulnerability in Shopware/platform involving Shopware vulnerable to path traversal via Plugin upload under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Shopware/platform versions are affected?
Affected versions include releases prior to 6.7.3.1, 6.6.10.7 across affected packages: shopware/platform, shopware/core.
What version fixes GHSA-6wh5-mw9h-5c3w?
Upgrading to 6.7.3.1, 6.6.10.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is shopware/platform affected?
Yes, shopware/platform is affected in releases prior to 6.7.3.1, 6.6.10.7. Upgrade your dependency to 6.7.3.1, 6.6.10.7 or later.
Is shopware/core affected?
Yes, shopware/core is affected in releases prior to 6.7.3.1, 6.6.10.7. Upgrade your dependency to 6.7.3.1, 6.6.10.7 or later.
What is the CVSS score of GHSA-6wh5-mw9h-5c3w?
GHSA-6wh5-mw9h-5c3w has a CVSS v3.1 base score of 2.7 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with GHSA-6wh5-mw9h-5c3w?
GHSA-6wh5-mw9h-5c3w is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Packagist dependencies for GHSA-6wh5-mw9h-5c3w?
Run the dependency tree command: 'inspect dependencies for shopware/platform'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6wh5-mw9h-5c3w",
  "modified" : "2025-10-21T18:02:14Z",
  "published" : "2025-10-21T18:02:14Z",
  "aliases" : [ ],
  "summary" : "Shopware vulnerable to path traversal via Plugin upload",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "shopware/platform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.7.0.0"
      }, {
        "fixed" : "6.7.3.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "shopware/platform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.6.10.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "shopware/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.7.0.0"
      }, {
        "fixed" : "6.7.3.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "shopware/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.6.10.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/shopware/shopware/security/advisories/GHSA-6wh5-mw9h-5c3w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/shopware/shopware/commit/0965b35a527756faab2cec5a4ff172d79b0f99be"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/shopware/shopware"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-21T18:02:14Z",
    "nvd_published_at" : null
  }
}