CVE-2026-27775
published 2026-07-03CVE-2026-27775: Gitea 1.25.5 caches a branch-specific write-permission result across multiple refs in one pre-receive hook session, allowing a per-branch maintainer-edit grant…
PriorityP355high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
0.57%
44.6th percentile
Gitea 1.25.5 caches a branch-specific write-permission result across multiple refs in one pre-receive hook session, allowing a per-branch maintainer-edit grant to be reused for other refs and escalate to full repository write access.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| code.gitea.io | gitea | >= 0 < 1.26.3 | 1.26.3 |
| gitea | gitea_open_source_git_server | — | — |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Gitea: Cached Per-Branch Permission Check in Pre-Receive Hook Allows Full Repository Write
ghsa·2026-07-21
CVE-2026-27775 [HIGH] CWE-863 Gitea: Cached Per-Branch Permission Check in Pre-Receive Hook Allows Full Repository Write
Gitea: Cached Per-Branch Permission Check in Pre-Receive Hook Allows Full Repository Write
## Vulnerability Header
| Field | Value |
| ------------------- | ----------------------------------------------------------------------------------- |
| Vulnerability Title | Cached Per-Branch Permission Check in Pre-Receive Hook Allows Full Repository Write |
| Severity Rating | High |
| Bug Category | Authorization Bypass |
| Location | `routers/private/hook_pre_receive.go:55-64`, `CanWriteCode()` |
| Affected Versions | 1.25.5 |
## Executive Summary
The pre-receive hook in Gitea evaluates the `CanMaintainerWriteToBranch` permission only once per `git push` session and caches the result for all subsequent refs in the same batch. An attacker who has a legitimate per-branch write grant (e.g., vi
VulDB
Gitea 1.25.5 authorization (GHSA-649p-mmhf-85c7)
vuldb·2026-07-04
CVE-2026-27775 [LOW] Gitea 1.25.5 authorization (GHSA-649p-mmhf-85c7)
A vulnerability classified as problematic has been found in Gitea 1.25.5. This affects an unknown function. Performing a manipulation results in incorrect authorization.
This vulnerability was named CVE-2026-27775. The attack may be initiated remotely. There is no available exploit.
It is recommended to upgrade the affected component.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2026-07-03
Published