Improper access control in Gitea - CVE-2026-58437
Published: July 14, 2026
Vulnerability details
The vulnerability allows a remote user to modify repository visibility or template status without triggering normal repository change controls.
The vulnerability exists due to improper access control in HookPostReceive() in routers/private/hook_post_receive.go when processing git push options on existing repositories. A remote user can send a git push with the undocumented repo.private or repo.template option to modify repository visibility or template status without triggering normal repository change controls.
The issue bypasses audit and activity logging, webhook delivery, owner notifications, team permission recalculation, and updated_at timestamp changes.