Incorrect authorization in Gitea - CVE-2026-58416
Published: July 14, 2026
Vulnerability details
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to incorrect authorization in GetActionsUserRepoPermission in models/perm/access/repo_permission.go when handling fork pull-request Actions task access to a collaborative-owner private repository. A remote user can submit a specially crafted fork pull request workflow to disclose sensitive information.
Exploitation requires the target private repository to trust the base repository owner as a collaborative owner, the base repository to be private, and the fork pull-request workflow to run.