CVE-2020-8920: Gerrit plugin api Information Leak Vulnerability
LOWCVE-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.
CVE-2020-8920 at a Glance
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.
<dependency>
<groupId>com.google.gerrit</groupId>
<artifactId>gerrit-plugin-api</artifactId>
<version>2.14.22</version>
</dependency>
<dependency>
<groupId>com.google.gerrit</groupId>
<artifactId>gerrit-plugin-api</artifactId>
<version>2.15.21</version>
</dependency>
<dependency>
<groupId>com.google.gerrit</groupId>
<artifactId>gerrit-plugin-api</artifactId>
<version>2.16.25</version>
</dependency>
<dependency>
<groupId>com.google.gerrit</groupId>
<artifactId>gerrit-plugin-api</artifactId>
<version>3.0.15</version>
</dependency>
<dependency>
<groupId>com.google.gerrit</groupId>
<artifactId>gerrit-plugin-api</artifactId>
<version>3.1.10</version>
</dependency>
<dependency>
<groupId>com.google.gerrit</groupId>
<artifactId>gerrit-plugin-api</artifactId>
<version>3.2.5</version>
</dependency>
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
CVE-2020-8920 Affected Gerrit plugin api Versions
6 component(s)| 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?
Which Gerrit plugin api versions are affected?
What version fixes CVE-2020-8920?
Is gerrit-plugin-api affected?
What CWE is associated with CVE-2020-8920?
How can I check Maven dependencies for CVE-2020-8920?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}