Incorrect authorization in Gitea - CVE-2026-27775

 

Incorrect authorization in Gitea - CVE-2026-27775

Published: June 22, 2026


Vulnerability identifier: #VU135008
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-27775
CWE-ID: CWE-863
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: The Gitea Authors
Affected software:
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.


How to mitigate CVE-2026-27775

Install security update from vendor's website.

Sources