---
id: CVE-2026-87720
title: >-
  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 throu…
summary: >-
  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 throu…
severity: high
cvss: 7.6
cvssVector: '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'
cwe:
  - CWE-613
  - CWE-706
  - CWE-863
vendor: Gerrit
product: Gerrit
affected:
  - Gerrit >= 2.16.0 < 3.12.10
  - Gerrit >= 3.13.0 < 3.13.9
  - Gerrit >= 3.14.0 < 3.14.3
published: '2026-09-24'
updated: '2026-09-25'
sourceUpdated: '2026-09-25T17:17:16.687'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-87720'
references:
  - url: 'https://issues.gerritcodereview.com/issues/538883789'
    label: cve-coordination@google.com
  - url: 'https://issues.gerritcodereview.com/issues/538883789'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-25T16:51:27.457102Z'
cvssSource: cna
ingestedAt: '2026-09-24T22:54:36.880Z'
epss: 0.00251
epssPercentile: 0.1468
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
