Gitea pre-receive hook permission cache allows full repository write access
Summary
| CVE | CVE-2026-27775 |
|---|---|
| State | PUBLISHED |
| Assigner | Gitea |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-03 21:16:59 UTC |
| Updated | 2026-07-03 21:16:59 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-863 | CWE-863 CWE-863
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Gitea | Gitea Open Source Git Server | affected 1.25.5 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| blog.gitea.com/release-of-1.26.3-and-1.26.4 | 88ee5874-cf24-4952-aea0-31affedb7ff2 | blog.gitea.com | |
| github.com/go-gitea/gitea/security/advisories/GHSA-649p-mmhf-85c7 | 88ee5874-cf24-4952-aea0-31affedb7ff2 | github.com | |
| github.com/go-gitea/gitea/pull/38151 | 88ee5874-cf24-4952-aea0-31affedb7ff2 | github.com | |
| github.com/go-gitea/gitea/releases/tag/v1.26.3 | 88ee5874-cf24-4952-aea0-31affedb7ff2 | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: adrian-doyensec (en)
There are currently no legacy QID mappings associated with this CVE.