CVE-2026-27775 Gitea pre-receive hook permission cache allows full repository write access
Attackers can exploit a permission cache flaw in Gitea to gain full repository write access from limited branch permissions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-27775?
CVE-2026-27775 is a high-severity vulnerability in Gitea Open Source Git Server, published on 3 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
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.
Weakness: CWE-863
Which versions are affected by CVE-2026-27775?
3 open source packages ship an affected version, including code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.26.3 |
code.gitea.io/gitea Go | All versions | 1.26.3 |
code.gitea.io/gitea Go | All versions | 1.26.3 |
How do I fix CVE-2026-27775?
Upgrade code.gitea.io/gitea to 1.26.3 or later.
Is CVE-2026-27775 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-27775 exists.
Sources
Also known as GHSA-649p-mmhf-85c7, GO-2026-6043.