CVE-2020-8920
Overoptimization leads to private information leak in Gerrit
Check your servers for CVE-2020-8920
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2020-8920 affects gerrit, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 (CVSS)
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.37%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 23.1% of all scored CVEs. Scores of 29 Nov 2026.
Weakness
- CWE-285 Improper Authorization
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Gerrit |
affected from stable, before 2.14.22 (unaffected from 2.15.21, unaffected from 2.16.25, unaffected from 3.0.15, unaffected from 3.1.10, unaffected from 3.2.5)
|
Is my server affected?
Find the installed version of gerrit and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i gerrit
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-8920 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-8920RHEL, Rocky, Alma, Fedora
rpm -q gerrit
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-8920Alpine
apk list --installed | grep -i gerritWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2020-8920
trivy image --scanners vuln IMAGE | grep CVE-2020-8920
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://www.gerritcodereview.com/2.15.html#21521 gerritcodereview.com
- https://www.gerritcodereview.com/2.16.html#21625 gerritcodereview.com
- https://www.gerritcodereview.com/3.0.html#3014 gerritcodereview.com
- https://www.gerritcodereview.com/3.1.html#3110 gerritcodereview.com
- https://www.gerritcodereview.com/3.2.html#325 gerritcodereview.com
- https://gerrit.googlesource.com/gerrit/+/45071d6977932bca5a1427c8abad24710fed2e33 gerrit.googlesource.com
- https://www.gerritcodereview.com/2.14.html#21422 gerritcodereview.com
Source: the record CVE-2020-8920 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse