Vulnerability · Published Jul 3, 2026 · Assigned by Gitea

CVE-2026-27775Gitea pre-receive hook permission cache allows full repository write access

High 8.8

In plain English

A high-severity incorrect authorization in Gitea Open Source Git Server from Gitea. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.9%top 39.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gocode.gitea.io/gitea1.26.3GHSA-649p-mmhf-85c7
Gocode.gitea.io/gitea1.26.3GO-2026-6043

Affected products (as reported)

VendorProductVersions
Gitea Gitea Open Source Git Server 1.25.5

Weakness: CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References