GHSA-39j2-4p9j-5w4j: Ezsystems/ezpublish legacy Ez Platform Object Injection Vulnerability

MODERATE
CWE-94
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-39j2-4p9j-5w4j
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Ezsystems/ezpublish legacy
Package Ecosystem Packagist
Published Date
Last Updated

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.

ezsystems/ezpublish-legacy fixed: 2019.3.5.1
Upgrade ezsystems/ezpublish-legacy to 2019.3.5.1
ezsystems/ezpublish-legacy fixed: 2017.12.7.3
Upgrade ezsystems/ezpublish-legacy to 2017.12.7.3
ezsystems/ezpublish-legacy fixed: 5.4.14.2
Upgrade ezsystems/ezpublish-legacy to 5.4.14.2
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 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

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.

GHSA-39j2-4p9j-5w4j Affected Ezsystems/ezpublish legacy Versions

3 component(s)
Fixed Versions:
2019.3.5.12017.12.7.35.4.14.2
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?
GHSA-39j2-4p9j-5w4j is a security vulnerability in Ezsystems/ezpublish legacy involving Ez Platform Object Injection in legacy shop module under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Ezsystems/ezpublish legacy versions are affected?
Affected versions include releases prior to 2019.3.5.1, 2017.12.7.3, 5.4.14.2 across affected packages: ezsystems/ezpublish-legacy.
What version fixes GHSA-39j2-4p9j-5w4j?
Upgrading to 2019.3.5.1, 2017.12.7.3, 5.4.14.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ezsystems/ezpublish-legacy affected?
Yes, ezsystems/ezpublish-legacy is affected in releases prior to 2019.3.5.1, 2017.12.7.3, 5.4.14.2. Upgrade your dependency to 2019.3.5.1, 2017.12.7.3, 5.4.14.2 or later.
What CWE is associated with GHSA-39j2-4p9j-5w4j?
GHSA-39j2-4p9j-5w4j is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check Packagist dependencies for GHSA-39j2-4p9j-5w4j?
Run the dependency tree command: 'inspect dependencies for ezsystems/ezpublish-legacy'. 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-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
  }
}