Authorization bypass through user-controlled key in Gitea - CVE-2026-105268

 

Authorization bypass through user-controlled key in Gitea - CVE-2026-105268

Published: October 19, 2026


Vulnerability identifier: #VU156108
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-105268
CWE-ID: CWE-639
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Gitea

How to mitigate CVE-2026-105268

Install security update from vendor's website.

Gitea - update to 28.1.0

External References

Related Security Bulletins