GHSA-39j2-4p9j-5w4j: Ezsystems/ezpublish legacy Ez Platform Object Injection Vulnerability
MODERATEGHSA-39j2-4p9j-5w4j is a MODERATE ez platform object injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Ezsystems/ezpublish legacy libraries in the Packagist ecosystem. The issue involves ez platform object injection in legacy shop module. Remediation is available by upgrading affected packages to version 2019.3.5.1, 2017.12.7.3, 5.4.14.2.
GHSA-39j2-4p9j-5w4j at a Glance
How to Fix GHSA-39j2-4p9j-5w4j
To remediate this vulnerability, upgrade all affected Ezsystems/ezpublish legacy 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 ezsystems/ezpublish-legacy to 2019.3.5.1
Upgrade ezsystems/ezpublish-legacy to 2017.12.7.3
Upgrade ezsystems/ezpublish-legacy to 5.4.14.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ezsystems/ezpublish-legacy
How to Check if You Are Affected
To determine whether your application is affected by GHSA-39j2-4p9j-5w4j, inspect your project dependencies for Ezsystems/ezpublish legacy:
inspect dependencies for ezsystems/ezpublish-legacy
Analyze the terminal output to locate any version of Ezsystems/ezpublish legacy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2019.3.5.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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Ezsystems/ezpublish legacy, 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-39j2-4p9j-5w4j Affected Ezsystems/ezpublish legacy Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ezsystems/ezpublish-legacy
|
Packagist |
≥ 2019.3.0
< 2019.3.5.1
|
2019.3.5.1
|
|
ezsystems/ezpublish-legacy
|
Packagist |
≥ 2017.12.0
< 2017.12.7.3
|
2017.12.7.3
|
|
ezsystems/ezpublish-legacy
|
Packagist |
≥ 5.4.0
< 5.4.14.2
|
5.4.14.2
|
References
Frequently Asked Questions
What is GHSA-39j2-4p9j-5w4j?
Which Ezsystems/ezpublish legacy versions are affected?
What version fixes GHSA-39j2-4p9j-5w4j?
Is ezsystems/ezpublish-legacy affected?
What CWE is associated with GHSA-39j2-4p9j-5w4j?
How can I check Packagist dependencies for GHSA-39j2-4p9j-5w4j?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-39j2-4p9j-5w4j",
"modified" : "2024-05-15T21:32:29Z",
"published" : "2024-05-15T21:32:29Z",
"aliases" : [ ],
"summary" : "Ez Platform Object Injection in legacy shop module",
"details" : "This Security Advisory is about a vulnerability in the Legacy shop module. A backend editor could perform object injection in discount rules. This would require backend access and permission to edit discount rules. While object injection in itself is a serious vulnerability, the permission requirement means that normally only administrators would be able to exploit it, that's why it was classified as Medium severity.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2019.3.0"
}, {
"fixed" : "2019.3.5.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2017.12.0"
}, {
"fixed" : "2017.12.7.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ezsystems/ezpublish-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.4.0"
}, {
"fixed" : "5.4.14.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://ezplatform.com/security-advisories/ibexa-sa-2020-006-object-injection-in-legacy-shop-module"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/ezsystems/ezpublish-legacy/2020-10-05-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ezsystems/ezpublish-legacy"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T21:32:29Z",
"nvd_published_at" : null
}
}