Improper access control in Gitea - CVE-2026-56654
Published: July 14, 2026
Vulnerability details
The vulnerability allows a remote user to escalate privileges.
The vulnerability exists due to improper access control in the personal access token creation API endpoint when processing a token supplied in the Authorization Basic :x-oauth-basic format. A remote user can send a specially crafted API request to escalate privileges.
The issue arises because token-based authentication is misclassified as basic authentication, allowing the password-authentication guard to be bypassed, and the created token is not restricted to the caller's existing token scope.