CVE-2026-87720
Received Received - Intake

Incorrect Authorization in Gerrit Code Review

Vulnerability report for CVE-2026-87720, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-24

Last updated on: 2026-09-24

Assigner: Google Inc.

Description

Incorrect Authorization (CWE-863) in project name normalization (ProjectUtil.stripGitSuffix) and ProjectCache eviction logic (ProjectCacheImpl) in Gerrit Code Review versions 2.16.0 through 3.12.9, 3.13.0 through 3.13.8, and 3.14.0 through 3.14.2 allows an authenticated user (or an unauthenticated user if the repository was previously public) to cause unauthorized disclosure of private repository content and durable restoration of revoked project-owner administrative privileges via crafted requests using repeated .git suffixes (such as project.git.git) across REST APIs, Gitiles, or SSH Git commands. Because Gerrit strips only a single terminal .git suffix when constructing the logical ProjectCache key while JGit (FileKey.lenient) resolves the suffixed alias to the same canonical bare repository on disk, revoking read access or removing owner rules on the canonical project name fails to evict the cached alias ProjectState during the cache validity window, enabling reads of newly created private commits or writes to refs/meta/config. This issue is fixed in Gerrit Code Review versions 3.12.10, 3.13.9, and 3.14.3.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-24
Last Modified
2026-09-24
Generated
2026-09-25
AI Q&A
2026-09-25
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 6 associated CPEs
Vendor Product Version / Range
gerrit code_review From 2.16.0 (inc) to 3.12.9 (inc)
gerrit code_review From 3.13.0 (inc) to 3.13.8 (inc)
gerrit code_review From 3.14.0 (inc) to 3.14.2 (inc)
gerrit code_review 3.12.10
gerrit code_review 3.13.9
gerrit code_review 3.14.3

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-706 The product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere.
CWE-613 According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."
CWE-863 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an Incorrect Authorization issue in Gerrit Code Review versions 2.16.0 through 3.14.2. It allows authenticated or unauthenticated users to bypass access controls by using repeated .git suffixes in requests. This can lead to unauthorized disclosure of private repository content and restoration of revoked administrative privileges.

Detection Guidance

Detecting this vulnerability requires checking Gerrit Code Review versions and analyzing project names for repeated .git suffixes. Inspect Gerrit logs for unauthorized access attempts or unusual project name patterns. Verify if private repositories are accessible via crafted project names with multiple .git suffixes.

Impact Analysis

An attacker could access private repository data or regain administrative privileges they no longer have. This could result in data breaches, unauthorized changes, or loss of control over projects.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating compliance requirements for data protection and privacy such as GDPR or HIPAA. It may result in legal penalties, loss of certification, or reputational damage.

Mitigation Strategies

Upgrade Gerrit Code Review to versions 3.12.10, 3.13.9, or 3.14.3 or later. Review and revoke access for any project names with repeated .git suffixes. Audit ProjectCache for unauthorized entries and remove any aliases pointing to private repositories.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-87720. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart