---
id: CVE-2026-27775
title: >-
  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.
summary: >-
  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.
severity: none
cwe:
  - CWE-863
published: '2026-07-03'
updated: '2026-07-03'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-27775'
references:
  - url: 'https://blog.gitea.com/release-of-1.26.3-and-1.26.4/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/38151'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v1.26.3'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-649p-mmhf-85c7'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
tags:
  - nvd
epss: 0.00523
epssPercentile: 0.4188
ingestedAt: '2026-07-04T14:56:14.495Z'
---

## Overview

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.

## Remediation

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