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.
Published: 2026-09-24
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation and Data Exposure
Action: Patch ASAP
AI Analysis

Impact

The flaw lies in Gerrit Code Review’s handling of project name normalization and its cache eviction logic. When a project name is passed through the stripGitSuffix routine, only a single trailing .git suffix is removed, while the underlying cache key remains tied to the first occurrence of the name. An attacker can craft a request with a repeatedly suffixed name such as project.git.git, drive the system to use a cached alias, and gain read access to private repository content or re‑establish administrative privileges that had been revoked. This unauthorized disclosure and privilege restoration is enabled by the mismatch between Gerrit’s key construction and JGit’s handling of repository aliases.

Affected Systems

The vulnerability affects Gerrit Code Review deployments running versions 2.16.0 through 3.12.9, 3.13.0 through 3.13.8, and 3.14.0 through 3.14.2. The issue is specific to the Gerrit product and the project cache subsystem; any installation within these version ranges that exposes REST APIs, Gitiles, or SSH Git access is potentially impacted.

Risk and Exploitability

With a CVSS score of 7.6 the flaw is considered high risk. The EPSS score is not available, and it is not listed in CISA’s KEV catalog. The likely attack vector involves an authenticated user or one who can connect to a previously public repository, making multiple requests that include repeated .git suffixes against REST endpoints, Gitiles listings, or SSH Git commands. Because the cache validity window permits the stale key to remain in use, an attacker can read or modify data that should remain restricted until the patch is applied.

Generated by OpenCVE AI on September 25, 2026 at 03:04 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gerrit to version 3.12.10, 3.13.9, 3.14.3, or any newer release that includes the fix.
  • Restrict REST API, Gitiles, and SSH access to trusted users only, and enforce strict ACLs for private repositories until the patch is applied.
  • Monitor Gerrit logs for requests containing repeated .git suffixes and investigate any unauthorized access attempts.

Generated by OpenCVE AI on September 25, 2026 at 03:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 26 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 25 Sep 2026 07:15:00 +0000

Type Values Removed Values Added
First Time appeared Gerrit
Gerrit gerrit
Vendors & Products Gerrit
Gerrit gerrit

Thu, 24 Sep 2026 22:15:00 +0000

Type Values Removed Values Added
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.
Title Incorrect Authorization via Stale ProjectCache Eviction and Repeated .git Suffixes in Gerrit Code Review
Weaknesses CWE-613
CWE-706
CWE-863
References
Metrics cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Google

Published:

Updated: 2026-09-25T16:55:03.232Z

Reserved: 2026-09-09T01:03:15.231Z

Link: CVE-2026-87720

cve-icon Vulnrichment

Updated: 2026-09-25T16:54:10.370Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-24T22:17:02.170

Modified: 2026-09-25T17:17:16.687

Link: CVE-2026-87720

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T07:00:02Z

Weaknesses
  • CWE-613

    Insufficient Session Expiration

  • CWE-706

    Use of Incorrectly-Resolved Name or Reference

  • CWE-863

    Incorrect Authorization