Vulnerabilities in pkg:maven/com.google.gerrit/gerrit-plugin-api

PACKAGE
Advisory Identifier: GHSA-g5q2-cxgq-h2rw
Advisory Summary

CVE-2020-8920 is a LOW information leak vulnerability (CWE-863: Incorrect Authorization) affecting Gerrit plugin api libraries in the Maven ecosystem. The issue involves information leak in gerrit. Remediation is available by upgrading affected packages to version 2.14.22, 2.15.21, 2.16.25, 3.0.15, 3.1.10, 3.2.5.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.google.gerrit/gerrit-plugin-api

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.google.gerrit/gerrit-plugin-api. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-g5q2-cxgq-h2rw CVE-2020-8920 LOW Information leak in Gerrit

CVE-2020-8920 at a Glance

CVE Identifier CVE-2020-8920
GHSA Identifier GHSA-g5q2-cxgq-h2rw
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-863: Incorrect Authorization
Affected Product Gerrit plugin api
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2020-8920

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

com.google.gerrit:gerrit-plugin-api fixed: 2.14.22
<dependency>
    <groupId>com.google.gerrit</groupId>
    <artifactId>gerrit-plugin-api</artifactId>
    <version>2.14.22</version>
</dependency>
com.google.gerrit:gerrit-plugin-api fixed: 2.15.21
<dependency>
    <groupId>com.google.gerrit</groupId>
    <artifactId>gerrit-plugin-api</artifactId>
    <version>2.15.21</version>
</dependency>
com.google.gerrit:gerrit-plugin-api fixed: 2.16.25
<dependency>
    <groupId>com.google.gerrit</groupId>
    <artifactId>gerrit-plugin-api</artifactId>
    <version>2.16.25</version>
</dependency>
com.google.gerrit:gerrit-plugin-api fixed: 3.0.15
<dependency>
    <groupId>com.google.gerrit</groupId>
    <artifactId>gerrit-plugin-api</artifactId>
    <version>3.0.15</version>
</dependency>
com.google.gerrit:gerrit-plugin-api fixed: 3.1.10
<dependency>
    <groupId>com.google.gerrit</groupId>
    <artifactId>gerrit-plugin-api</artifactId>
    <version>3.1.10</version>
</dependency>
com.google.gerrit:gerrit-plugin-api fixed: 3.2.5
<dependency>
    <groupId>com.google.gerrit</groupId>
    <artifactId>gerrit-plugin-api</artifactId>
    <version>3.2.5</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=com.google.gerrit

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.google.gerrit

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

Note: The mvn dependency:tree -Dincludes=com.google.gerrit 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Gerrit plugin api, 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

An information leak vulnerability exists in Gerrit versions prior to 2.14.22, 2.15.21, 2.16.25, 3.0.15, 3.1.10, 3.2.5 where an overoptimization with the FilteredRepository wrapper skips the verification of access on All-Users repositories, allowing an attacker to get read access to all users' personal information associated with their accounts.

CVE-2020-8920 Affected Gerrit plugin api Versions

6 component(s)
Fixed Versions:
2.14.222.15.212.16.253.0.153.1.103.2.5
Product / Package Ecosystem Affected Versions Fixed Version
com.google.gerrit:gerrit-plugin-api
Maven
< 2.14.22
2.14.22
com.google.gerrit:gerrit-plugin-api
Maven
≥ 2.15.0
< 2.15.21
2.15.21
com.google.gerrit:gerrit-plugin-api
Maven
≥ 2.16.0
< 2.16.25
2.16.25
com.google.gerrit:gerrit-plugin-api
Maven
≥ 3.0.0
< 3.0.15
3.0.15
com.google.gerrit:gerrit-plugin-api
Maven
≥ 3.1.0
< 3.1.10
3.1.10
com.google.gerrit:gerrit-plugin-api
Maven
≥ 3.2.0
< 3.2.5
3.2.5

References

Frequently Asked Questions

What is CVE-2020-8920?
CVE-2020-8920 is a security vulnerability in Gerrit plugin api involving Information leak in Gerrit under CWE-863: Incorrect Authorization.
Which Gerrit plugin api versions are affected?
Affected versions include releases prior to 2.14.22, 2.15.21, 2.16.25, 3.0.15, 3.1.10, 3.2.5 across affected packages: com.google.gerrit:gerrit-plugin-api.
What version fixes CVE-2020-8920?
Upgrading to 2.14.22, 2.15.21, 2.16.25, 3.0.15, 3.1.10, 3.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gerrit-plugin-api affected?
Yes, com.google.gerrit:gerrit-plugin-api is affected in releases prior to 2.14.22, 2.15.21, 2.16.25, 3.0.15, 3.1.10, 3.2.5. Upgrade your dependency to 2.14.22, 2.15.21, 2.16.25, 3.0.15, 3.1.10, 3.2.5 or later.
What CWE is associated with CVE-2020-8920?
CVE-2020-8920 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Maven dependencies for CVE-2020-8920?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.google.gerrit'. 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-g5q2-cxgq-h2rw",
  "modified" : "2024-01-09T21:44:57Z",
  "published" : "2022-05-24T17:35:58Z",
  "aliases" : [ "CVE-2020-8920" ],
  "summary" : "Information leak in Gerrit",
  "details" : "An information leak vulnerability exists in Gerrit versions prior to 2.14.22, 2.15.21, 2.16.25, 3.0.15, 3.1.10, 3.2.5 where an overoptimization with the FilteredRepository wrapper skips the verification of access on All-Users repositories, allowing an attacker to get read access to all users' personal information associated with their accounts.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.google.gerrit:gerrit-plugin-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.14.22"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.google.gerrit:gerrit-plugin-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.15.0"
      }, {
        "fixed" : "2.15.21"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.google.gerrit:gerrit-plugin-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.16.0"
      }, {
        "fixed" : "2.16.25"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.google.gerrit:gerrit-plugin-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.google.gerrit:gerrit-plugin-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.google.gerrit:gerrit-plugin-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2.0"
      }, {
        "fixed" : "3.2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8920"
  }, {
    "type" : "WEB",
    "url" : "https://gerrit.googlesource.com/gerrit/+/45071d6977932bca5a1427c8abad24710fed2e33"
  }, {
    "type" : "WEB",
    "url" : "https://issues.gerritcodereview.com/issues/40012986"
  }, {
    "type" : "WEB",
    "url" : "https://www.gerritcodereview.com/2.14.html#21422"
  }, {
    "type" : "WEB",
    "url" : "https://www.gerritcodereview.com/2.15.html#21521"
  }, {
    "type" : "WEB",
    "url" : "https://www.gerritcodereview.com/2.16.html#21625"
  }, {
    "type" : "WEB",
    "url" : "https://www.gerritcodereview.com/3.0.html#3015"
  }, {
    "type" : "WEB",
    "url" : "https://www.gerritcodereview.com/3.1.html#3110"
  }, {
    "type" : "WEB",
    "url" : "https://www.gerritcodereview.com/3.2.html#325"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-09T21:44:57Z",
    "nvd_published_at" : "2020-12-10T11:15:00Z"
  }
}