GHSA-6xch-2vxx-5pvr: Ezsystems/ezplatform EZ Platform Rules To Disable Vulnerability

MODERATE
CWE-670
Published
Advisory Summary

GHSA-6xch-2vxx-5pvr is a MODERATE ez platform rules to disable vulnerability (CWE-670: Always-Incorrect Control Flow Implementation) affecting Ezsystems/ezplatform libraries in the Packagist ecosystem. The issue involves ez platform rules to disable executable access are ignored on platform.sh (ez cloud). Remediation is available by upgrading affected packages to version 2.5.4, 1.13.5.1, 1.7.9.1.

GHSA-6xch-2vxx-5pvr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-6xch-2vxx-5pvr
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-670: Always-Incorrect Control Flow Implementation
Affected Product Ezsystems/ezplatform
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-6xch-2vxx-5pvr

To remediate this vulnerability, upgrade all affected Ezsystems/ezplatform 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/ezplatform fixed: 2.5.4
Upgrade ezsystems/ezplatform to 2.5.4
ezsystems/ezplatform fixed: 1.13.5.1
Upgrade ezsystems/ezplatform to 1.13.5.1
ezsystems/ezplatform fixed: 1.7.9.1
Upgrade ezsystems/ezplatform to 1.7.9.1
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/ezplatform

How to Check if You Are Affected

To determine whether your application is affected by GHSA-6xch-2vxx-5pvr, inspect your project dependencies for Ezsystems/ezplatform:

inspect dependencies for ezsystems/ezplatform

Analyze the terminal output to locate any version of Ezsystems/ezplatform in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.4), 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-670: Always-Incorrect Control Flow Implementation, where the code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated. In Ezsystems/ezplatform, 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

The recommended Apache/Nginx virtual host configuration for eZ Platform includes a rewrite rule for blocking access to executable files in the var directory. This rule does not work when using eZ Platform Cloud (i.e. running eZ Platform on the Platform.sh cloud service). The consequence of this is that in such a setup, those executable files may be downloadable. They will not be executable, unless you have specifically configured platform.sh to allow that (which you really should not do). The severity of the download access is limited, but it's better if the platform.sh cloud setup works the same way as regular eZ Platform does. All platform.sh setups are affected. The fix adds a rule to the .platform.app.yaml configuration file, with the same effect as the rewrite rule already mentioned. After applying the fix, any attempt to access such files will fail with Access Denied. This security update is distributed via Composer as ezsystems/ezplatform 1.7.9.1, and 1.13.5.1, and 2.5.4. This is the commit: https://github.com/ezsystems/ezplatform/commit/773dddc0d8fe4fda34d2153a401eeaa6cc30b1ff

GHSA-6xch-2vxx-5pvr Affected Ezsystems/ezplatform Versions

3 component(s)
Fixed Versions:
2.5.41.13.5.11.7.9.1
Product / Package Ecosystem Affected Versions Fixed Version
ezsystems/ezplatform
Packagist
≥ 2.5.0
< 2.5.4
2.5.4
ezsystems/ezplatform
Packagist
≥ 1.13.0
< 1.13.5.1
1.13.5.1
ezsystems/ezplatform
Packagist
≥ 1.7.0
< 1.7.9.1
1.7.9.1

References

Frequently Asked Questions

What is GHSA-6xch-2vxx-5pvr?
GHSA-6xch-2vxx-5pvr is a security vulnerability in Ezsystems/ezplatform involving eZ Platform Rules to disable executable access are ignored on Platform.sh (eZ Cloud) under CWE-670: Always-Incorrect Control Flow Implementation.
Which Ezsystems/ezplatform versions are affected?
Affected versions include releases prior to 2.5.4, 1.13.5.1, 1.7.9.1 across affected packages: ezsystems/ezplatform.
What version fixes GHSA-6xch-2vxx-5pvr?
Upgrading to 2.5.4, 1.13.5.1, 1.7.9.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ezsystems/ezplatform affected?
Yes, ezsystems/ezplatform is affected in releases prior to 2.5.4, 1.13.5.1, 1.7.9.1. Upgrade your dependency to 2.5.4, 1.13.5.1, 1.7.9.1 or later.
What CWE is associated with GHSA-6xch-2vxx-5pvr?
GHSA-6xch-2vxx-5pvr is classified under CWE-670: Always-Incorrect Control Flow Implementation (The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.).
How can I check Packagist dependencies for GHSA-6xch-2vxx-5pvr?
Run the dependency tree command: 'inspect dependencies for ezsystems/ezplatform'. 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-6xch-2vxx-5pvr",
  "modified" : "2024-05-15T21:16:02Z",
  "published" : "2024-05-15T21:16:02Z",
  "aliases" : [ ],
  "summary" : "eZ Platform Rules to disable executable access are ignored on Platform.sh (eZ Cloud)",
  "details" : "The recommended Apache/Nginx virtual host configuration for eZ Platform includes a rewrite rule for blocking access to executable files in the var directory. This rule does not work when using eZ Platform Cloud (i.e. running eZ Platform on the Platform.sh cloud service).\n \nThe consequence of this is that in such a setup, those executable files may be downloadable. They will not be executable, unless you have specifically configured platform.sh to allow that (which you really should not do). The severity of the download access is limited, but it's better if the platform.sh cloud setup works the same way as regular eZ Platform does. All platform.sh setups are affected.\n \nThe fix adds a rule to the .platform.app.yaml configuration file, with the same effect as the rewrite rule already mentioned. After applying the fix, any attempt to access such files will fail with Access Denied. This security update is distributed via Composer as ezsystems/ezplatform 1.7.9.1, and 1.13.5.1, and 2.5.4. This is the commit: https://github.com/ezsystems/ezplatform/commit/773dddc0d8fe4fda34d2153a401eeaa6cc30b1ff",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezplatform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezplatform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.13.0"
      }, {
        "fixed" : "1.13.5.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezplatform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.7.9.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ezsystems/ezplatform/commit/773dddc0d8fe4fda34d2153a401eeaa6cc30b1ff"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/ezsystems/ezplatform/2019-09-03-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ezsystems/ezplatform"
  }, {
    "type" : "WEB",
    "url" : "https://share.ez.no/community-project/security-advisories/ezsa-2019-006-rules-to-disable-executable-access-are-ignored-on-platform.sh-ez-cloud"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-670" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T21:16:02Z",
    "nvd_published_at" : null
  }
}