GHSA-5gmh-85x8-5cx7: Magento/community edition Remote Code Execution Vulnerability
CRITICALGHSA-5gmh-85x8-5cx7 is a CRITICAL remote code execution vulnerability (General Security Weakness) affecting Magento/community edition libraries in the Packagist ecosystem. The issue involves magento remote code execution (rce), cross-site scripting (xss) and other vulnerabilities. Remediation is available by upgrading affected packages to version 2.1.14, 2.2.5.
GHSA-5gmh-85x8-5cx7 at a Glance
How to Fix GHSA-5gmh-85x8-5cx7
To remediate this vulnerability, upgrade all affected Magento/community edition 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 magento/community-edition to 2.1.14
Upgrade magento/community-edition to 2.2.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for magento/community-edition
How to Check if You Are Affected
To determine whether your application is affected by GHSA-5gmh-85x8-5cx7, inspect your project dependencies for Magento/community edition:
inspect dependencies for magento/community-edition
Analyze the terminal output to locate any version of Magento/community edition in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.14), 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 General Security Weakness. In Magento/community edition, 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-5gmh-85x8-5cx7 Affected Magento/community edition Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
magento/community-edition
|
Packagist |
≥ 2.1
< 2.1.14
|
2.1.14
|
|
magento/community-edition
|
Packagist |
≥ 2.2
< 2.2.5
|
2.2.5
|
References
Frequently Asked Questions
What is GHSA-5gmh-85x8-5cx7?
Which Magento/community edition versions are affected?
What version fixes GHSA-5gmh-85x8-5cx7?
Is magento/community-edition affected?
What CWE is associated with GHSA-5gmh-85x8-5cx7?
How can I check Packagist dependencies for GHSA-5gmh-85x8-5cx7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5gmh-85x8-5cx7",
"modified" : "2024-05-15T22:34:08Z",
"published" : "2024-05-15T22:34:08Z",
"aliases" : [ ],
"summary" : "Magento remote code execution (RCE), Cross-Site Scripting (XSS) and other vulnerabilities",
"details" : "Magento Commerce and Open Source 2.2.5 and 2.1.14 contain multiple security enhancements that help close authenticated Admin user remote code execution (RCE), Cross-Site Scripting (XSS) and other vulnerabilities.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "magento/community-edition"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1"
}, {
"fixed" : "2.1.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "magento/community-edition"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2"
}, {
"fixed" : "2.2.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/2018-06-27.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/magento/magento2"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210802091126/https://magento.com/security/patches/magento-2.2.5-and-2.1.14-security-update"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T22:34:08Z",
"nvd_published_at" : null
}
}