Incorrect authorization in Gitea - CVE-2026-26231
Published: June 8, 2026
Gitea
Detailed vulnerability description
The vulnerability allows a remote user to push arbitrary commits to a repository without write access.
The vulnerability exists due to incorrect authorization in the pull request creation and pre-receive authorization logic when creating a reverse-fork pull request with "Allow edits from maintainers" enabled and then pushing over HTTP or SSH. A remote user can create a crafted reverse-fork pull request and push commits to bypass write-access checks and push arbitrary commits to a repository without write access.
Exploitation requires read access to the target repository and the vulnerable authorization path is triggered when the proc-receive support is enabled.