CVE-2020-15087: Presto server Privilege Escalation Vulnerability

HIGH
Advisory Identifier: GHSA-f6pc-crhh-cp96
CVSS 7.4
CWE-285
Published
Advisory Summary

CVE-2020-15087 is a HIGH (CVSS 7.4) privilege escalation vulnerability (CWE-285: Improper Authorization) affecting Presto server libraries in the Maven ecosystem. The issue involves privilege escalation in presto. Remediation is available by upgrading affected packages to version 337.

CVE-2020-15087 at a Glance

CVE Identifier CVE-2020-15087
GHSA Identifier GHSA-f6pc-crhh-cp96
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-285: Improper Authorization
Affected Product Presto server
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.4

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:R/S:C/C:H/I:N/A:N).

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

How to Fix CVE-2020-15087

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

io.prestosql:presto-server fixed: 337
<dependency>
    <groupId>io.prestosql</groupId>
    <artifactId>presto-server</artifactId>
    <version>337</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.prestosql

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2020-15087, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.prestosql

Analyze the terminal output to locate any version of Presto server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 337), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.prestosql command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Presto server, 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

### Affected This affects Presto server installations. This does NOT affect clients such as the CLI or JDBC driver. ### Impact Authenticated users can bypass authorization checks by directly accessing internal APIs. This impacts Presto server installations with secure internal communication configured. This does not affect installations that have not configured secure internal communication, as these installations are inherently insecure. ### Patches This issue has been fixed starting with PrestoSQL version 337. ### Workarounds This issue can be mitigated by blocking network access to internal APIs on the coordinator and workers. ### References See the Presto documentation for [Secure Internal Communication](https://trino.io/docs/current/security/internal-communication.html). ### For more information If you have any questions or comments about this advisory: * Join the **#security** channel on [Slack](https://trino.io/slack.html). * Contact the security team at [security@trino.io](mailto:security@trino.io)

CVE-2020-15087 Affected Presto server Versions

1 component(s)
Fixed Versions:
337
Product / Package Ecosystem Affected Versions Fixed Version
io.prestosql:presto-server
Maven
< 337
337

References

Frequently Asked Questions

What is CVE-2020-15087?
CVE-2020-15087 is a security vulnerability in Presto server involving Privilege escalation in Presto under CWE-285: Improper Authorization.
Which Presto server versions are affected?
Affected versions include releases prior to 337 across affected packages: io.prestosql:presto-server.
What version fixes CVE-2020-15087?
Upgrading to 337 (or the latest patched release for your respective branch) resolves the vulnerability.
Is presto-server affected?
Yes, io.prestosql:presto-server is affected in releases prior to 337. Upgrade your dependency to 337 or later.
What is the CVSS score of CVE-2020-15087?
CVE-2020-15087 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2020-15087?
CVE-2020-15087 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2020-15087?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.prestosql'. 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-f6pc-crhh-cp96",
  "modified" : "2022-10-22T00:58:08Z",
  "published" : "2020-06-30T16:33:23Z",
  "aliases" : [ "CVE-2020-15087" ],
  "summary" : "Privilege escalation in Presto",
  "details" : "### Affected\nThis affects Presto server installations. This does NOT affect clients such as the CLI or JDBC driver.\n\n### Impact\nAuthenticated users can bypass authorization checks by directly accessing internal APIs. This impacts Presto server installations with secure internal communication configured.\n\nThis does not affect installations that have not configured secure internal communication, as these installations are inherently insecure.\n\n### Patches\nThis issue has been fixed starting with PrestoSQL version 337.\n\n### Workarounds\nThis issue can be mitigated by blocking network access to internal APIs on the coordinator and workers. \n\n### References\nSee the Presto documentation for [Secure Internal Communication](https://trino.io/docs/current/security/internal-communication.html).\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Join the **#security** channel on [Slack](https://trino.io/slack.html).\n* Contact the security team at [security@trino.io](mailto:security@trino.io)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.prestosql:presto-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "337"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/prestosql/presto/security/advisories/GHSA-f6pc-crhh-cp96"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/trinodb/trino/security/advisories/GHSA-f6pc-crhh-cp96"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15087"
  }, {
    "type" : "WEB",
    "url" : "https://prestosql.io/docs/current/release/release-337.html#security-changes"
  }, {
    "type" : "WEB",
    "url" : "https://trino.io/docs/current/release/release-337.html#security-changes"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-30T16:33:11Z",
    "nvd_published_at" : "2020-06-30T17:15:00Z"
  }
}