Incorrect authorization in Gitea - CVE-2026-27775
Published: June 22, 2026
Gitea
Detailed vulnerability description
The vulnerability allows a remote user to gain full repository write access.
The vulnerability exists due to incorrect authorization in the pre-receive hook permission check in routers/private/hook_pre_receive.go when processing a multi-ref git push. A remote user can push a branch with a legitimate per-branch write grant together with additional refs in one batch to gain full repository write access.
User interaction is required because the victim must enable "Allow edits from maintainers" on a pull request.