CVE-2020-15086: Friendsoftypo3/mediace Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-4h44-w6fm-548g
CVSS 9.8
CWE-502 CWE-20 CWE-200 CWE-325
Published
Advisory Summary

CVE-2020-15086 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Friendsoftypo3/mediace libraries in the Packagist ecosystem. The issue involves potential remote code execution in typo3 with mediace extension. Remediation is available by upgrading affected packages to version 7.6.5.

CVE-2020-15086 at a Glance

CVE Identifier CVE-2020-15086
GHSA Identifier GHSA-4h44-w6fm-548g
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Friendsoftypo3/mediace
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-15086

To remediate this vulnerability, upgrade all affected Friendsoftypo3/mediace dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

friendsoftypo3/mediace fixed: 7.6.5
Upgrade friendsoftypo3/mediace to 7.6.5
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 friendsoftypo3/mediace

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-15086, inspect your project dependencies for Friendsoftypo3/mediace:

inspect dependencies for friendsoftypo3/mediace

Analyze the terminal output to locate any version of Friendsoftypo3/mediace in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.6.5), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Friendsoftypo3/mediace, 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

> ### Meta > * CVSS: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C` (9.1) > * CWE-325, CWE-20, CWE-200, CWE-502 ### Problem It has been discovered that an internal verification mechanism can be used to generate arbitrary checksums. This allows to inject arbitrary data having a valid cryptographic message authentication code (HMAC-SHA1) and can lead to various attack chains as described below. * [TYPO3-CORE-SA-2020-007](https://typo3.org/security/advisory/typo3-core-sa-2020-007), [CVE-2020-15099](https://nvd.nist.gov/vuln/detail/CVE-2020-15099): Potential Privilege Escalation + the database server used for a TYPO3 installation must be accessible for an attacker (either via internet or shared hosting network) + `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C` (7.5, high) * [TYPO3-CORE-SA-2016-013](https://typo3.org/security/advisory/typo3-core-sa-2016-013), [CVE-2016-5091](https://nvd.nist.gov/vuln/detail/CVE-2016-5091): Insecure Deserialization & Remote Code Execution + an attacker must have access to at least one Extbase plugin or module action in a TYPO3 installation + `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C` (9.1, critical) The overall severity of this vulnerability is critical (9.1) based on mentioned attack chains and the fact it does not require any privileges. ### Solution In case the extension is not used and required at all, it is suggested to uninstall and remove it from the system completely. Otherwise, an updated version 7.6.5 is available from the TYPO3 extension manager, Packagist and the TYPO3 extension repository: * https://extensions.typo3.org/extension/download/mediace/7.6.5/zip/ * https://packagist.org/packages/friendsoftypo3/mediace#7.6.5 As a precautionary measure it is advised to change `encryptionKey` and database credentials in `typo3conf/LocalConfiguration.php`. ### Credits Thanks to TYPO3 security team member Oliver Hader who reported and fixed the issue. ### References * [TYPO3-EXT-SA-2020-014](https://typo3.org/security/advisory/typo3-ext-sa-2020-014)

CVE-2020-15086 Affected Friendsoftypo3/mediace Versions

1 component(s)
Fixed Versions:
7.6.5
Product / Package Ecosystem Affected Versions Fixed Version
friendsoftypo3/mediace
Packagist
≥ 7.6.2
< 7.6.5
7.6.5

References

Frequently Asked Questions

What is CVE-2020-15086?
CVE-2020-15086 is a security vulnerability in Friendsoftypo3/mediace involving Potential Remote Code Execution in TYPO3 with mediace extension under CWE-502: Deserialization of Untrusted Data.
Which Friendsoftypo3/mediace versions are affected?
Affected versions include releases prior to 7.6.5 across affected packages: friendsoftypo3/mediace.
What version fixes CVE-2020-15086?
Upgrading to 7.6.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is friendsoftypo3/mediace affected?
Yes, friendsoftypo3/mediace is affected in releases prior to 7.6.5. Upgrade your dependency to 7.6.5 or later.
What is the CVSS score of CVE-2020-15086?
CVE-2020-15086 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-15086?
CVE-2020-15086 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Packagist dependencies for CVE-2020-15086?
Run the dependency tree command: 'inspect dependencies for friendsoftypo3/mediace'. 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-4h44-w6fm-548g",
  "modified" : "2024-02-05T10:43:51Z",
  "published" : "2020-07-29T16:15:12Z",
  "aliases" : [ "CVE-2020-15086" ],
  "summary" : "Potential Remote Code Execution in TYPO3 with mediace extension",
  "details" : "> ### Meta\n> * CVSS: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C` (9.1)\n> * CWE-325, CWE-20, CWE-200, CWE-502\n\n### Problem\nIt has been discovered that an internal verification mechanism can be used to generate arbitrary checksums. This allows to inject arbitrary data having a valid cryptographic message authentication code (HMAC-SHA1) and can lead to various attack chains as described below.\n\n* [TYPO3-CORE-SA-2020-007](https://typo3.org/security/advisory/typo3-core-sa-2020-007), [CVE-2020-15099](https://nvd.nist.gov/vuln/detail/CVE-2020-15099): Potential Privilege Escalation\n  + the database server used for a TYPO3 installation must be accessible for an attacker (either via internet or shared hosting network)\n  + `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C` (7.5, high)\n* [TYPO3-CORE-SA-2016-013](https://typo3.org/security/advisory/typo3-core-sa-2016-013), [CVE-2016-5091](https://nvd.nist.gov/vuln/detail/CVE-2016-5091): Insecure Deserialization & Remote Code Execution\n  + an attacker must have access to at least one Extbase plugin or module action in a TYPO3 installation\n  + `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C` (9.1, critical)\n\nThe overall severity of this vulnerability is critical (9.1) based on mentioned attack chains and the fact it does not require any privileges.\n\n### Solution\nIn case the extension is not used and required at all, it is suggested to uninstall and remove it from the system completely. Otherwise, an updated version 7.6.5 is available from the TYPO3 extension manager, Packagist and the TYPO3 extension repository:\n\n* https://extensions.typo3.org/extension/download/mediace/7.6.5/zip/\n* https://packagist.org/packages/friendsoftypo3/mediace#7.6.5\n\nAs a precautionary measure it is advised to change `encryptionKey` and database credentials in `typo3conf/LocalConfiguration.php`.\n\n### Credits\nThanks to TYPO3 security team member Oliver Hader who reported and fixed the issue.\n\n### References\n* [TYPO3-EXT-SA-2020-014](https://typo3.org/security/advisory/typo3-ext-sa-2020-014)",
  "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" : "friendsoftypo3/mediace"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.6.2"
      }, {
        "fixed" : "7.6.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfTYPO3/mediace/security/advisories/GHSA-4h44-w6fm-548g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15086"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfTYPO3/mediace/pull/31"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfTYPO3/mediace/commit/fa29ffd3e8b275782a8600d2406e1b1e5e16ae75"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/friendsoftypo3/mediace/CVE-2020-15086.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FriendsOfTYPO3/mediace"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/security/advisory/typo3-ext-sa-2020-014"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-200", "CWE-325", "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-07-29T16:09:56Z",
    "nvd_published_at" : "2020-07-29T17:15:00Z"
  }
}