Incorrect authorization in Gitea - CVE-2026-89182
Published: October 19, 2026
Vulnerability details
The vulnerability allows a remote user to bypass the server's private-repository policy and make their own repository and its contents publicly accessible.
The vulnerability exists due to incorrect authorization in Gitea's hookPostReceiveUpdateRepoByOptions function when processing push options on the first push to an empty repository. A remote user can submit git push -o repo.private=false to a repository they administer to change its visibility to public without enforcement of the server-level visibility policy.
Only instances configured with FORCE_PRIVATE = true are affected; this setting is disabled by default.