Authorization bypass through user-controlled key in Gitea - CVE-2026-105268
Published: October 19, 2026
Vulnerability details
The vulnerability allows a remote user to delete or rename other users' comment attachments on issues they opened.
The vulnerability exists due to improper authorization in Gitea's attachmentBelongsToRepoOrIssue function when validating attachments for issue-scoped API requests without checking CommentID. A remote user can supply the identifier of another user's comment attachment to an issue-scoped attachment route to delete or rename that attachment on an issue they opened.
Renaming changes only the attachment filename, not its contents.