GHSA-q3g4-2vw9-xv27: Shopware/shopware Remote Code Execution Vulnerability
CRITICALGHSA-q3g4-2vw9-xv27 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Shopware/shopware libraries in the Packagist ecosystem. The issue involves shopware remote code execution vulnerability. Remediation is available by upgrading affected packages to version 5.2.15, 1.0.8.
GHSA-q3g4-2vw9-xv27 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix GHSA-q3g4-2vw9-xv27
To remediate this vulnerability, upgrade all affected Shopware/shopware 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/shopware to 5.2.15
Upgrade shopware/shopware to 1.0.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for shopware/shopware
How to Check if You Are Affected
To determine whether your application is affected by GHSA-q3g4-2vw9-xv27, inspect your project dependencies for Shopware/shopware:
inspect dependencies for shopware/shopware
Analyze the terminal output to locate any version of Shopware/shopware in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.15), 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Shopware/shopware, 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-q3g4-2vw9-xv27 Affected Shopware/shopware Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
shopware/shopware
|
Packagist |
≥ 4.0.0
< 5.2.15
|
5.2.15
|
|
shopware/shopware
|
Packagist |
< 1.0.8
|
1.0.8
|
References
Frequently Asked Questions
What is GHSA-q3g4-2vw9-xv27?
Which Shopware/shopware versions are affected?
What version fixes GHSA-q3g4-2vw9-xv27?
Is shopware/shopware affected?
What is the CVSS score of GHSA-q3g4-2vw9-xv27?
What CWE is associated with GHSA-q3g4-2vw9-xv27?
How can I check Packagist dependencies for GHSA-q3g4-2vw9-xv27?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q3g4-2vw9-xv27",
"modified" : "2024-05-21T18:50:07Z",
"published" : "2024-05-21T18:50:07Z",
"aliases" : [ ],
"summary" : "Shopware Remote Code Execution Vulnerability",
"details" : "Under certain circumstances, it’s possible to execute an unauthorized foreign code in Shopware. This is a critical security vulnerability that could affect the entire system. All Shopware versions including Shopware 5.2.14 are affected.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "shopware/shopware"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "5.2.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "shopware/shopware"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/shopware5/shopware/commit/14299e9ee9f7d93f687b4ec838e0873afbc84fec"
}, {
"type" : "WEB",
"url" : "https://community.shopware.com/_detail_1989.html"
}, {
"type" : "WEB",
"url" : "https://docs.shopware.com/en/shopware-5-en/security-updates/security-update-01-2017?category=shopware-5-en/security-updates"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/shopware/shopware/2017-01-24.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/shopware5/shopware"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-21T18:50:07Z",
"nvd_published_at" : null
}
}