CVE-2020-10806: Ezsystems/ezpublish kernel EZ Publish Kernel And Legacy Vulnerability

CRITICAL
Advisory Identifier: GHSA-54p5-gxq6-j98g
CVSS 9.8
Published
Advisory Summary

CVE-2020-10806 is a CRITICAL (CVSS 9.8) ez publish kernel and legacy vulnerability (General Security Weakness) affecting Ezsystems/ezpublish kernel libraries in the Packagist ecosystem. The issue involves ez publish kernel and legacy unrestricted upload of file with dangerous type. Remediation is available by upgrading affected packages to version 5.4.14.1, 6.13.6.2, 7.5.6.2, 2017.12.7.2, 2019.03.4.2.

CVE-2020-10806 at a Glance

CVE Identifier CVE-2020-10806
GHSA Identifier GHSA-54p5-gxq6-j98g
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification General Security Weakness
Affected Product Ezsystems/ezpublish kernel
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2020-10806

To remediate this vulnerability, upgrade all affected Ezsystems/ezpublish kernel 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-kernel fixed: 5.4.14.1
Upgrade ezsystems/ezpublish-kernel to 5.4.14.1
ezsystems/ezpublish-legacy fixed: 5.4.14.1
Upgrade ezsystems/ezpublish-legacy to 5.4.14.1
ezsystems/ezpublish-kernel fixed: 6.13.6.2
Upgrade ezsystems/ezpublish-kernel to 6.13.6.2
ezsystems/ezpublish-kernel fixed: 7.5.6.2
Upgrade ezsystems/ezpublish-kernel to 7.5.6.2
ezsystems/ezpublish-legacy fixed: 2017.12.7.2
Upgrade ezsystems/ezpublish-legacy to 2017.12.7.2
ezsystems/ezpublish-legacy fixed: 2019.03.4.2
Upgrade ezsystems/ezpublish-legacy to 2019.03.4.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-kernel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-10806, inspect your project dependencies for Ezsystems/ezpublish kernel:

inspect dependencies for ezsystems/ezpublish-kernel

Analyze the terminal output to locate any version of Ezsystems/ezpublish kernel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.14.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 General Security Weakness. In Ezsystems/ezpublish kernel, 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

eZ Publish Kernel before 5.4.14.1, 6.x before 6.13.6.2, and 7.x before 7.5.6.2 and eZ Publish Legacy before 5.4.14.1, 2017 before 2017.12.7.2, and 2019 before 2019.03.4.2 allow remote attackers to execute arbitrary code by uploading PHP code, unless the vhost configuration permits only app.php execution.

CVE-2020-10806 Affected Ezsystems/ezpublish kernel Versions

6 component(s)
Fixed Versions:
5.4.14.16.13.6.27.5.6.22017.12.7.22019.03.4.2
Product / Package Ecosystem Affected Versions Fixed Version
ezsystems/ezpublish-kernel
Packagist
< 5.4.14.1
5.4.14.1
ezsystems/ezpublish-legacy
Packagist
< 5.4.14.1
5.4.14.1
ezsystems/ezpublish-kernel
Packagist
≥ 6.0
< 6.13.6.2
6.13.6.2
ezsystems/ezpublish-kernel
Packagist
≥ 7.0
< 7.5.6.2
7.5.6.2
ezsystems/ezpublish-legacy
Packagist
≥ 2017
< 2017.12.7.2
2017.12.7.2
ezsystems/ezpublish-legacy
Packagist
≥ 2019
< 2019.03.4.2
2019.03.4.2

References

Frequently Asked Questions

What is CVE-2020-10806?
CVE-2020-10806 is a security vulnerability in Ezsystems/ezpublish kernel involving eZ Publish Kernel and Legacy Unrestricted Upload of File with Dangerous Type under General Security Weakness.
Which Ezsystems/ezpublish kernel versions are affected?
Affected versions include releases prior to 5.4.14.1, 6.13.6.2, 7.5.6.2, 2017.12.7.2, 2019.03.4.2 across affected packages: ezsystems/ezpublish-kernel, ezsystems/ezpublish-legacy.
What version fixes CVE-2020-10806?
Upgrading to 5.4.14.1, 6.13.6.2, 7.5.6.2, 2017.12.7.2, 2019.03.4.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ezsystems/ezpublish-kernel affected?
Yes, ezsystems/ezpublish-kernel is affected in releases prior to 5.4.14.1, 6.13.6.2, 7.5.6.2. Upgrade your dependency to 5.4.14.1, 6.13.6.2, 7.5.6.2 or later.
Is ezsystems/ezpublish-legacy affected?
Yes, ezsystems/ezpublish-legacy is affected in releases prior to 5.4.14.1, 2017.12.7.2, 2019.03.4.2. Upgrade your dependency to 5.4.14.1, 2017.12.7.2, 2019.03.4.2 or later.
What is the CVSS score of CVE-2020-10806?
CVE-2020-10806 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2020-10806?
CVE-2020-10806 is classified under General Security Weakness.
How can I check Packagist dependencies for CVE-2020-10806?
Run the dependency tree command: 'inspect dependencies for ezsystems/ezpublish-kernel'. 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-54p5-gxq6-j98g",
  "modified" : "2024-04-25T20:57:31Z",
  "published" : "2022-05-24T17:12:08Z",
  "aliases" : [ "CVE-2020-10806" ],
  "summary" : "eZ Publish Kernel and Legacy Unrestricted Upload of File with Dangerous Type",
  "details" : "eZ Publish Kernel before 5.4.14.1, 6.x before 6.13.6.2, and 7.x before 7.5.6.2 and eZ Publish Legacy before 5.4.14.1, 2017 before 2017.12.7.2, and 2019 before 2019.03.4.2 allow remote attackers to execute arbitrary code by uploading PHP code, unless the vhost configuration permits only app.php execution.",
  "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" : "ezsystems/ezpublish-kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.14.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezpublish-legacy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.14.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezpublish-kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0"
      }, {
        "fixed" : "6.13.6.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezpublish-kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0"
      }, {
        "fixed" : "7.5.6.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezpublish-legacy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2017"
      }, {
        "fixed" : "2017.12.7.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ezsystems/ezpublish-legacy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2019"
      }, {
        "fixed" : "2019.03.4.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-10806"
  }, {
    "type" : "WEB",
    "url" : "https://ezplatform.com/security-advisories/ezsa-2020-001-remote-code-execution-in-file-uploads"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-25T20:57:31Z",
    "nvd_published_at" : "2020-03-22T16:15:00Z"
  }
}